centos 6 7 检测配置文件 /usr/local/nginx/sbin/nginx -t
出现以下错误:
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory
解决方案:
yum -y install lua*
centos7 可能会不生效报以下错。
1 下载安装LuaJIT
[root@iZuf6679bcuj0vciz1vaicZ mysql3306]# cd /usr/local/src
[root@iZuf6679bcuj0vciz1vaicZ src]# wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
[root@iZuf6679bcuj0vciz1vaicZ src]# tar -xvf LuaJIT-2.0.5.tar.gz
[root@iZuf6679bcuj0vciz1vaicZ src]# cd LuaJIT-2.0.5
[root@iZuf6679bcuj0vciz1vaicZ LuaJIT-2.0.5]# make && make install
- 重新检测,成功。
来源:CSDN
作者:Agile_Dong
链接:https://blog.csdn.net/weixin_45093060/article/details/104037482