windows nginx service building

 1, Quguan network address to download the corresponding installation package: http://nginx.org 

Download directory to unzip the file into the directory nginx ( unzipped careful not to have Chinese path into the file, do not double-click nginx.exe )

Once downloaded, decompress, run cmd, use the command to operate, do not double-click nginx.exe, do not double-click nginx.exe, do not double-click nginx.exe

Be sure to start in dos window, do not double-click nginx.exe, this will lead to change the configuration after the restart, stop nginx invalid, nginx needs of all processes in the Task Manager to manually shut down, and then we can start

start nginx.exe

 

Check task process exists, dos or open the Task Manager will do

tasklist /fi "imagename eq nginx.exe"
nginx.conf files under conf file in the directory editor to modify nginx command to check the configuration file is correct
nginx -t -c /nginx-1.15.2/conf/nginx.conf

Tips for success:

Enter the browser HTTP: // localhost / , the display following figure is configured successfully

 

Guess you like

Origin www.cnblogs.com/silent-winter/p/11403929.html