宝塔nginx提示报错error while loading shared libraries

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*

宝塔nginx提示报错error while loading shared libraries

完美解决

centos7 可能会不生效报以下错。

宝塔nginx提示报错error while loading shared libraries

解决办法:

1 下载安装LuaJIT
[[email protected] mysql3306]# cd /usr/local/src
[[email protected] src]# wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
[[email protected] src]# tar -xvf LuaJIT-2.0.5.tar.gz
[[email protected] src]# cd LuaJIT-2.0.5

[[email protected] LuaJIT-2.0.5]# make && make install

重新检测,成功。

宝塔nginx提示报错error while loading shared libraries

本文作者:一一网络  转载保留原文链接来源:https://layfjr.com/whfl

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享