Modify the problem that the configuration file of nginx-1.9 does not take effect

Just installed nginx-1.9.14 and modified it to modify the nginx.conf under conf, life and death do not take effect

Various tests

nginx -s stop: Close nginx
nginx -s reload: Reload configuration
nginx -s reopen: Reopen
nginx -t: Check whether the configuration file is normal

Finally, tm found out that the configuration file was wrong

The specified configuration file takes effect after startup

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

 

Look at the nginx.conf under the nginx-1.9.14 folder again

It turns out that the default configuration file after nginx-1.9.14 is installed is under nginx-1.9.14 . nn, just modify this configuration file

 

 


 

Guess you like

Origin blog.csdn.net/zhaofuqiangmycomm/article/details/114363693