Solution to the problem that Nginx cannot be started in Win10 system

1. Answers

Is it because the default port 80 of Win10 is occupied, by whom?

——First check the pid of the process corresponding to this port, which is 4. 
write picture description here

——Then find the corresponding 4 in the details of the task manager. It is indeed occupied and is the default of the system. 
write picture description here

Second, the solution

- The first way is to change the default configuration of the system. Open the registry regedit, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP, find the Start item on the right, change it to 0, and restart.

——The second method is to change the default port number of Nginx, for example, we change it to 8088. Then start Nginx, open the browser and enter localhost:8088 to see the welcome page.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324814632&siteId=291194637