问题:环境问题

【部署问题】解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid" failed(2:No such file or directory)

解决方法:

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 使用nginx -c的参数指定nginx.conf文件的位置

  [root@localhost nginx]# cd logs/

  [root@localhost logs]# ll

  总用量 12

  -rw-r--r-- 1 root root 1246 12月 9 18:10 access.log

  -rw-r--r-- 1 root root 516 12月 10 15:39 error.log

  -rw-r--r-- 1 root root 5 12月 10 15:38 nginx.pid

  看nginx.pid文件已经有了。

【部署问题】解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid" failed(2:No such file or directory)

 

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2021-06-19
  • 2022-12-23
猜你喜欢
  • 2021-04-26
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
相关资源
相似解决方案