In win7 to add nginx to the system variables caused the tragedy

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

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.

Reference resources:

nginx for Windows

Windows ngnix is not in the EXE directory operation error

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Pete at March 21, 2014 - 12:49 PM