nginx: [error] CreateFile() "E:\nginx\nginx-1.9.3/logs/nginx.pid" failed

nginx: [error] CreateFile() "E:\nginx\nginx-1.9.3/logs/nginx.pid" failed

nginx: [error] Open() "E:\nginx\nginx-1.9.3/logs/nginx.pid" failed

解决方法:

使用命令创建/logs/nginx.pid文件:

nginx -c conf/nginx.conf

 

 

nginx常用命令:

 

验证配置是否正确: nginx -t

 

查看Nginx的版本号:nginx -V

 

启动Nginx:start nginx

 

快速停止或关闭Nginx:nginx -s stop

 

正常停止或关闭Nginx:nginx -s quit

 

配置文件修改重装载命令:nginx -s reload

 

posted @ 2016-08-09 12:14  大空白纸  阅读(40544)  评论(0编辑  收藏  举报