你瞅啥呢

2025-02-7 80端口被占用,导致wamp服务一直启动不起来,处于橙色状态==》要不把占用80端口的程序给终结掉,要么就改apache的端口

前言:启动wamp,发现图标一直处于橙色状态,一看原来是有1个服务没起起来

右击wamp图标,找到Tools,再点击check state of services

 弹出一个窗口,内容为:

State of services:

 The service 'wampapache64' is started
 Start type : DEMAND_START
 Service Session : LocalSystem

 The service 'wampmysqld64' is NOT started
 EXIT error code:0
 Help message for error code 0 is:The operation completed successfully.

 The service 'wampmariadb64' is started
 Start type : DEMAND_START
 Service Session : LocalSystem

WampServer (Apache, PHP and MySQL) will not function properly if any service
'wampapache64'
'wampmysqld64'
'wampmariadb64'
 is not started.

        all services BINARY_PATH_NAME are OK
        all services START_TYPE are OK

--- Do you want to copy the results into Clipboard?
--- Press the Y key to confirm - Press ENTER to continue...

大意为wampmysqld64服务没启用,而这个服务对应的端口就是80,所以我们下一步需要查看该端口状态

打开cmd,输入netstat -aon|findstr "80"

由此可见80端口已被占用,所以wampmysqld64服务没能启用,最终导致wamp图标一直为橙色

解决方案一:关掉占用该80端口的程序(不推荐,关键是这个程序我也要启用,我也不想改)

解决方案二:改apache端口,左击图标,找到Apache,点击,然后找到httpd.conf,点击打开

 搜索listen,找到下面图中圈中的80,把它改成你想要的端口,比如8001

 修改后:

 保存,关掉,右击wamp图标,点击Restart from zero,重新启用

 成功启动,图标变绿了

 

posted @ 2025-02-07 11:25  叶乘风  阅读(29)  评论(0编辑  收藏  举报