第二种情况,启动nginx报如下错误:
/www/server/nginx/sbin/nginx: error while loading shared libraries: libgd.so.3: cannot open shared object file: No such file or directory
这种出错是缺少依赖的问题,根据自身情况在ssh执行如下命令:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
解决方法:卸载宝塔免费nginx防火墙及网站监控报表