Specify the configuration file when nginx start

Download the source files installed nginx nginx will install a virtual machine system at this time there will be two nginx under / usr / local directory

If you start when there is no location profile is specified, the default configuration file is read /usr/local/nginx/conf/nginx.conf

Is one such pit themselves ,,,

If you want to specify the location of the configuration file: add parameters -c nginx.conf path

Guess you like

Origin www.cnblogs.com/yang-xiansen/p/12171393.html