In win7 to add nginx to the system variables caused the tragedy
Start nginx, If you do not specify a configuration file, Then nginx will automatically to your current directory to the config/nginx.conf configuration file, You configure the system variable nginx, So you can use the nginx command in any place, When you are in the directory without config/nginx.conf, It can't find a configuration file, So we can't start. Nginx installation path down there, so you enter the installation path to start. Of course if you explicitly specify, it does not matter.
nginx for Windows
Windows ngnix is not in the EXE directory operation error
Posted by Pete at March 21, 2014 - 12:49 PM