preface:
use nginx in the project, start back, check the error log, the error is given as follows:
nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access
a socket in a way forbidden by its access permissions)
analysis:
, the default port of nginx is 80. The error log shows that port 80 is occupied, which causes nginx to fail to start.
solution:
1. Press win+R to open the interface, enter CMD to enter the console interface
2, type netstat -ano | findstr “:80 “ span>
through the command above to check the 80 port occupation, the value of pid is 4.
3, type tasklist /fi “PID eq 4”
through the command above to see 4 corresponding service name, is System
4, enter regedit during run to open registry editor.
5, find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP
6. Find Start, right-click and change it to 4.
7. Restart the System, the System process will not occupy port 80, and nginx can start normally.
can be viewed through step 2 for 80 port occupancy
8. Start nginx again, it can start normally, and the process of nginx can be viewed in the task manager.
summary:
this nginx startup flash is caused by the fact that port 80 is occupied by System. The port 80 occupied by System is released by changing the value corresponding to Start under HTTP in the registry editor. Thus nginx starts normally.
Read More:
- Visual studio 2012, a complete collection of solutions to flash back windows after running
- Solution to the flash back, error report and unexpected exit of idea MAC windows
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- Flash back record of vs2017 installation process
- Solution for flash back of vs2015 running interface
- Solution for iPhone wechat flash back with mysterious code
- Flash back of running program in Visual Studio 2017
- Solution to flash back of MacBook Pro open software of M1 chip
- Eclipse flash back does not open the problem
- Solve the problem of flash back in VS2010
- Flash back problem of Python running
- Coppelia sim (vrep) turns on the solution of flash back
- Flash back when compiling Visual Studio
- 2、 Solutions to the problem of flash back in vs2017
- Tomcat — failed to start, flash back
- Solve the problem of Nacos double click flash back
- Solution to flash back of visual studio 2017 running program
- Flash back after vs compiler running, processing method
- Three solutions to flash back of program running result box under vs
- Make DOS window wait and not flash back in VS