nginx使用过程中遇到的问题及基本使用总结

问题:

1、出现这个问题nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
解决办法:先nginx -c /etc/nginx/nginx.conf,然后nginx -s reload
 2、如果重启nginx时出错提示command not found
用./nginx -s reload
nginx客户端命令行脚本在这个下面
 
Nginx安装目录
/usr/local/nginx/sbin
 
 

猜你喜欢

转载自www.cnblogs.com/aiyumo/p/11763923.html