CreateFile() logs nginx.pid  failed 2:the system can not find the file specified

我的Nginx没有启动的,启动报的错误信息与执行这个停止的命令的错误是一样的。

nginx启动报错

 参考了网上大佬们的解法:

执行命令:

// 这里的./conf/nginx.conf ,最前面的.代表当前目录,因为我是在nginx安装目录执行的,所以最前面的这个.不能缺少,否则找不到nginx.conf
nginx -c ./conf/nginx.conf

就可以了。

 

相关文章:

  • 2021-08-27
  • 2021-09-10
  • 2021-06-24
  • 2021-06-17
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-01-16
  • 2021-05-18
相关资源
相似解决方案