Tag Archives: 80

Enable nginx and report an error. Port 80 is occupied

Recently, nginx was running on the local computer, and an error was reported after startup. It is suspected that port 80 is occupied

netstat -ano|findstr 0.0.0.0:80

Try 1: after checking, it is found that the port is occupied by a program with system PID 4. I tried to end the system in Explorer, and then the blue screen

I use it later http://localhost After accessing, it is found that it jumps to the IIS interface

Try 2: disable IIS: right click “my computer” – & gt“ Management “- & gt“ Services “- & gt“ Services and Applications “- & gt“ “IIS” disables IIS in the IIS panel, and the result still does not work

Now use http://localhost You will not jump to the IIS home page in the future. It is proved that port 80 is no longer used by IIS, but my nginx still can’t start

 

Try 3: I inquired about NT kernel & amp; System, try running the following command to shut down the HTTP service

C:\WINDOWS\system32>net stop http  
C:\WINDOWS\system32>netstat -ano | findstr 0.0.0.0:80  
C:\WINDOWS\system32>sc config http start=disabled  

Go to “services” and find world wide   Web publishing service, select disable

Restart the computer and start nginx. This time it succeeded, but I can still see the system program running in the task manager. It has not been turned off, but 80 is no longer occupied, and nginx has been started successfully

 

In fact, I don’t think this is so simple. Later, I found that 80 is no longer occupied. It is automatically changed to port 445. Run the following command to query port 445

netstat -ano|findstr 0.0.0.0:445

It turns out that 445 has been occupied

 

Later, if I want to restart IIS on port 80, I think there will be a problem. I didn’t try, but I think so. Some reference links are attached

http://blog.csdn.net/u010792238/article/details/22661767

 

The solution of port 80 occupied by Microsoft HTTP API / 2.0

A super detailed tutorial: springboot integrates mybatis plus>>>

Where we are now: Manon wants to say > Development > Solution of Wamp 80 port occupied by Microsoft HTTP API/2.0

After running Wamp, it is found that Apache is not started. Is port 80 occupied?Use “test port 80” to prompt that the port is “s” erver:Microsoft-HTTPAPI/2.0 “It’s really taken up

First of all, I want to stop all the sites of IIS, because one of them occupies port 80. After opening IIS, I found that the website did not start at all. After modifying the website port to 8081, Apache still could not start. After checking the 80 port, it was still occupied. Then I decided to stop the whole IIS service and run the following command to stop IIS

iisreset /stop

Prompt IIS to be stopped. I’m still a little worried. I’ll use it again

iisreset /status

This command checks the status and prompts

IIS admin service (iisadmin) status: stopped windows process activation service (was) status: stopped

It is estimated that IIS has been stopped completely, and then Apache is started with confidence, but it still fails. Yesterday was good! Recalling what I did today, I want to update the patch of Visual Studio 2010. Is this the reason

Open the windows service, try to shut down the Web deployment agent service , try again, Apache finally started successfully. Well, the operation process is as follows:

1. Enter windows service management: enter control panel → management tools → services

2. Find “ Web deployment agent service “, and then stop

3. In order to prevent this thing from starting after the next boot, change the startup property from “automatic” to “disable” or “manual”

Call it a day

Solution of 80 port occupied by system (PID = 4) in win10

1. Find out who is using port 80

Enter the command prompt line (start running, input CMD), enter the command netstat – ano, you can see the usage of all ports of the machine. Generally, port 80 is in the first line. The screenshot shows that the port has been occupied, and Listing 4 is written in the PID

Which program is PID = 4?Then, at the command prompt and enter the command tasklist to list all the currently running processes

It is found that the process with PID = 4 is actually system

2. Cancel the occupation of port 80 by system process

After query, it is found that port 80 is indeed a component of SQL Server 2012 – SQL Server Reporting Services (SQL Server 2012). It’s the log system of SQL server. It’s the good end that suddenly occupies port 80. Moreover, for ordinary people, the function of this component is useless. Turning it off is also a way to save resources

The closing method is very simple. Enter services. MSc in the run box to enter the service window. Or directly enter “service” in the search box in the start menu to open it. Then find SQL Server Reporting Services (SQL Server 2012) and stop it. The occupied port 80 is released. You can also set its startup mode to “disable”