Linux重启后nginx服务启动报错nginx: [emerg] open() 怎么解决

问题:

  linux重启后,启动nginx服务器报错

解决:

  1.使用命令  cd /usr/local/nginx/conf  进入指定目录

  2.使用命令  vi nginx.conf修改配置文件  去掉图示处的  #  号

Linux重启后nginx服务启动报错nginx: [emerg] open() 怎么解决

      3.改为   pid /usr/local/nginx/logs/nginx.pid;

Linux重启后nginx服务启动报错nginx: [emerg] open() 怎么解决

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享