解决Nginx报error while loading shared libraries: libjemalloc.so.2: cannot open

前言:宝塔面板安装好Nginx后启动报错:Starting nginx... /www/server/nginx/sbin/nginx: error while loading shared libraries: libjemalloc.so.2: cannot open shared object file: No such file or directory
failed,折腾了一下,终于解决了这个问题。或者报错:找不到libluajit-5.1.so.2。