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.
——Then find the corresponding 4 in the details of the task manager. It is indeed occupied and is the default of the system.
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.