nginx install

./configure --prefix=/home/allen.mh/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_rea
lip_module --with-pcre=/home/allen.mh/soft/pcre-8.36 --add-module=/home/allen.mh/soft/lua/ngx_devel_kit-0.2.19 --add-module=/home/allen.mh/soft/lua/lua-nginx-module-0.9.17r
c1 --add-module=/home/allen.mh/soft/lua/rds-json-nginx-module-0.13 --add-module=/home/allen.mh/soft/lua/redis2-nginx-module-master 
#

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



sudo
echo "/home/allen.mh/local/luajit/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf
原文地址:https://www.cnblogs.com/allenhaozi/p/4895261.html