zhoupeng-php

首先检查nginx能否正常启动

cd /usr/local/nginx/sbin
./nginx -s reload //热更新

出现以下报错

nginx: [emerg] "tcp_nodelay" directive is duplicate in /usr/local/nginx/conf/nginx.conf:41
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

打开nginx配置文件

vi /usr/local/nginx/conf/nginx.conf

注释以下出错行

41行报错  #tcp_nodelay on;

然后指定nginx配置文件目录

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

再次热更新nginx 查看有无报错

分类:

技术点:

相关文章:

  • 2021-05-16
  • 2021-10-07
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-07-08
猜你喜欢
  • 2021-10-30
  • 2021-11-30
  • 2022-01-25
  • 2021-11-09
  • 2022-03-10
  • 2022-12-23
相关资源
相似解决方案