錯誤詳細信息:
./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環境即可):
yum -y install lua*
參考解決問題鏈接:
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open