我是靠谱客的博主 羞涩豆芽,这篇文章主要介绍nginx报错[error] CreateFile() failed The system cannot find the file specified,现在分享给大家,希望可以做个参考。
无论是nginx -s stop还是nginx -s reload命令,都会出现这个错误。
解决方法:使用命令创建/logs/nginx.pid文件,命令如下所示:
nginx -c conf/nginx.conf
启动nginx
有很多种方法启动nginx
(1)直接双击nginx.exe,双击后一个黑色的弹窗一闪而过
(2)打开cmd命令窗口,切换到nginx解压目录下,输入命令 nginx.exe 或者 start nginx ,回车即可
检查nginx是否启动成功
(1)直接在浏览器地址栏输入网址 http://localhost:80,回车
(2)可以在cmd命令窗口输入命令 tasklist /fi "imagename eq nginx.exe"
关闭nginx
如果使用cmd命令窗口启动nginx,关闭cmd窗口是不能结束nginx进程的,可使用两种方法关闭nginx
(1)输入nginx命令: nginx -s stop(快速停止nginx) 或 nginx -s quit(完整有序的停止nginx)
(2)使用taskkill: taskkill /f /t /im nginx.exe
转载于:https://www.cnblogs.com/tudou1179006580/p/11124154.html
最后
以上就是羞涩豆芽最近收集整理的关于nginx报错[error] CreateFile() failed The system cannot find the file specified的全部内容,更多相关nginx报错[error]内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复