error while loading shared libraries: libluajit-5.1.so.2

错误详细信息:

1
2
./sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: 
cannot open shared object file: No such file or directory

错误背景:
搭建nginx+lua环境,启动nginx遇到这样的错误。

错误原因:
nginx中有lua相关库需要有lua环境才能运行起来。

解决错误,核心代码(安装lua环境即可):

1
yum -y install lua*

参考解决问题链接:
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open

文章目录