Solve the problem of port 80 occupancy

Many friends will have port 80 or 443 conflict when configuring the Apache WEB server, then

Below I will share my approach to my friends, of course masters, Daniel ignore it!

method one:

First, check whether you have configured the IIS server software, and check whether it is enabled. This server generally defaults to port 80.

To view the method, right-click on this computer under win10, select Manage, and the following picture will appear.


Double-click IIS in the picture above, there will be options, and then click Content View.

Here my IIS service is turned off, so if the partner is on, set it to off, and then click on one of the services, change

Port, directly above.

Click Edit Binding, not editing permission.

Here I have modified it to 81. Exit at last. If the 80 conflict is caused by IIS, it will be resolved.

Method 2: Sometimes it is not necessarily caused by IIS, but it may also be caused by other products of WIN, so use the cmd command to view the port directly

Occupancy can be.

WIN+R to start, netsh, enter in the DOS command window http show servicestate. Check what process port 80 is used by,

Make a note of this pid, open the task manager and close it. As shown in the figure:

Then the task manager finds the PID process of 4212 and closes it.

and then enter on the command line

netstat -ano | findstr 0.0 . 0.0 : 80
Check if port 80 is occupied, if not, you can use port 80, no content is no occupancy

Guess you like

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