Several Situations and Solutions of Port 80 Being Occupied

Title: Several Situations and Solutions of Port 80 being Occupied

Port 80 is generally used as the default port of the web server, but it is often encountered that port 80 is occupied by unknown programs. The following will introduce several situations and handling methods if port 80 is occupied

When the webpage to be opened cannot be displayed normally, check whether port 80 is occupied
netstat -ano|findstr "80"

1. Port 80 is occupied by IIS
If IIS is installed, it is likely that it will occupy port 80, resulting in the page accessed after entering the IP is the page of IIS
Solution:
1. Enter services.msc in the run to find the service starting with IIS, Right-click the property and select [Manual], and then click Apply to confirm.
Note: I tried to select [Disable], but after the computer restarts, the IIS service still runs.
2. If the manual mode still occupies port 80, then uninstall the IIS service, tutorial The connection is as follows:
https://jingyan.baidu.com/article/63acb44acd415761fcc17ee2.html

2. Port 80 is occupied by the SQL Server Reporting Services service. This service is the log system of SQL Server and will also occupy port 80. Just right-click and disable it in the service

3. Port 80 is occupied by the system process

1、有时查看80端口占用情况,会发现被PID=4的进程占用



2、任务管理器中查找PID=4的进程,发现进程名为system,这个进程不能直接禁用
3、需按以下方法操作
	1、使用管理员运行cmd
	2、输入 net stop http (停止系统http服务),下图是需要停止的服务

insert image description here

	3、输入 sc config http start= disabled (禁用服务的自启动,等号后要加空格)
	4、这个时候80端口已经被释放了 可以正常进入网页

Guess you like

Origin blog.csdn.net/qq_33999977/article/details/108198670