nginx failed to start

1. Common problems when nginx fails to start

Unsuccessful startup of port occupation, pass

netstat -aon|findstr "8080" 
TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448

Check and close the port 

taskkill /f /im notepad.exe   名称关闭
taskkill /f /pid 2152         通过pid强行关 

This time is still the port occupied. It is very likely that the system is occupied. To find the specific name, it is best to turn it off in the task manager. If you can’t turn it off, find the name and the relevant port. Baidu query: Let me talk about the bypass I encountered. Question, 80

80 is occupied, can’t get up, find the process can’t be shut down, the system is occupied

taskkill /f /im notepad.exe
taskkill /f /pid 2152

Is occupied by this program

It turns out that the report service of sql server 2008 r2 occupies this port.

The sqlserver configuration manager found that the sqlserver reporting services service stopped,

Re netstat -ano 

Port 80 inside is gone

 

The second problem: Port 80 cannot be started

Enter the registration form

turn up

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP

modify

Start registration item of REG_DWORD type:

The original value of 3 is changed to 0

The problem is solved

Guess you like

Origin blog.csdn.net/qq_41358110/article/details/103215182