zhuyeshen

步骤如下
先利用/usr/local/nginx/sbin/nginx -t测试配置文件修改是否正常
/usr/local/nginx/sbin/nginx -s reload重新加载

 

 

nginx 更改配置文件后需要重启生效。
  1、更改配置重启nginx:  
  kill -HUP 主进程号或进程号文件路径
  或者使用
  cd /usr/local/nginx/sbin
  ./nginx -s reload
  2、判断配置文件是否正确:  
  nginx -t -c /usr/local/nginx/conf/nginx.conf
  或者
  cd /usr/local/nginx/sbin
  ./nginx -t

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-20
猜你喜欢
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案