标签:
1. 失败提示信息
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
2. 解决方法
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 使用nginx -c的参数指定nginx.conf文件的位置 提示:nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) killall -9 nginx 杀掉nginx 进程 然后重启就行了。 service nginx restart
标签:
原文地址:http://www.cnblogs.com/hubing/p/5064833.html