Reload nginx configuration

前端 未结 2 1084
眼角桃花
眼角桃花 2020-12-09 14:34

I am trying to make modification in the Nginx conf file to remove a \"rewrite\".

Now I have this configuration file:

worker_processes  1;

events {
          


        
相关标签:
2条回答
  • 2020-12-09 15:08

    Maybe you're not doing it as root?

    Try sudo nginx -s reload, if it still doesn't work, you might want to try sudo pkill -HUP nginx.

    0 讨论(0)
  • 2020-12-09 15:09

    If your system has systemctl

    sudo systemctl reload nginx
    

    If your system supports service (using debian/ubuntu) try this

    sudo service nginx reload
    

    If not (using centos/fedora/etc) you can try the init script

    sudo /etc/init.d/nginx reload
    
    0 讨论(0)
提交回复
热议问题