记录装禅道XAMPP过程中 遇到的端口问题(1)

问题描述

这里碰到了三个问题

一是Apache启动失败:

20:23:28 [Apache] Error: Apache shutdown unexpectedly.
20:23:28 [Apache] This may be due to a blocked port, missing dependencies,
20:23:28 [Apache] improper privileges, a crash, or a shutdown by another method.
20:23:28 [Apache] Press the Logs button to view error logs and check
20:23:28 [Apache] the Windows Event Viewer for more clues
20:23:28 [Apache] If you need more help, copy and post this
20:23:28 [Apache] entire log window on the forums

在这里插入图片描述

二是MySQL启动失败:

20:28:50 [mysql] Error: MySQL shutdown unexpectedly.
20:28:50 [mysql] This may be due to a blocked port, missing dependencies,
20:28:50 [mysql] improper privileges, a crash, or a shutdown by another method.
20:28:50 [mysql] Press the Logs button to view error logs and check
20:28:50 [mysql] the Windows Event Viewer for more clues
20:28:50 [mysql] If you need more help, copy and post this
20:28:50 [mysql] entire log window on the forums
20:30:08 [mysql] Problem detected!
20:30:08 [mysql] Port 3306 in use by ““C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe” --defaults-file=“C:\ProgramData\MySQL\MySQL Server 5.7\my.ini” MySQL57”!
20:30:08 [mysql] MySQL WILL NOT start without the configured ports free!
20:30:08 [mysql] You need to uninstall/disable/reconfigure the blocking application
20:30:08 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
20:30:08 [mysql] Attempting to start MySQL app…

在这里插入图片描述

三是后面Admin Apache时显示空白页

在这里插入图片描述


原因分析:

一和二的问题原因是端口被占用
三的问题原因是localhost未加端口号


解决方案:

一问题的解决方案:

首先点击Config 再点击Apache(httpd.conf)
在这里插入图片描述

然后弹出这个文件,找到端口号并修改,当时我这里默认80端口号,我修改成444这个端口号保存
在这里插入图片描述

二问题的解决方案:

首先点击Config 再点击my.ini
在这里插入图片描述
找到端口号并修改,当时我这里是3306,我改成了3307,然后保存,再启动就成功了
在这里插入图片描述

三问题的解决方案:

在网址这里加上对应Apache这个端口号就成功加载了,我当时Apache修改了端口号是444所以在网址localhost后面加’:444’

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值