XAMPP 端口80被占用的解决方法

方法一:把80改为8000

1.找到xampp的安装目录按以下顺序依次打开:appche->conf 找到httpd.conf使用笔记本打开,使用笔记本查找功能找到Listen 把后面的值改为8000(或其他没被使用的端口号),保存。

2.在xampp安装目录下找到properties.ini和xampp-control.ini,打开properties.ini把apache_server_port改为8000(和Listen的值一样);打开xampp-control.ini把ServicePorts下的Apache改为8000(和Listen的值一样),保存。

3.运行XAMPP

点击config:

XAMPP 端口80被占用的解决方法

点击Service and Port Settings:

XAMPP 端口80被占用的解决方法

将Main Port改为8000(和Listen的值一样),保存。

XAMPP 端口80被占用的解决方法

4.重启XAMPP,appche成功启动

XAMPP 端口80被占用的解决方法

方法二:关闭IIS

开始->运行->services.msc

关闭World wide web publishing service服务

方法三:关闭占用端口的程序