XAMPP - 阿帕奇和 MySQL

XAMPP - Apache and MySQL

我正在尝试 运行 ApacheMySQL XAMPP 控制面板 v.3.2.2,但它不想启动。

我用谷歌搜索,主要是因为端口已经被使用(通常是因为 Skype 正在使用它),但我在 Skype 中重新标记了该功能,它仍然是一样的。

我不确定我是否在其他任何地方使用它 - 据我所知我没有 - 或者它是别的东西。

XAMPP安装新鲜,我从来没有安装过。

这是我得到的错误:

11:31:48 [Apache] Attempting to start Apache app... 11:31:48 [Apache] Status change detected: running 11:31:49 [Apache] Status change detected: stopped 11:31:49 [Apache] Error: Apache shutdown unexpectedly. 11:31:49 [Apache] This may be due to a blocked port, missing dependencies,
11:31:49 [Apache] improper privileges, a crash, or a shutdown by another method. 11:31:49 [Apache] Press the Logs button to view error logs and check 11:31:49 [Apache] the Windows Event Viewer for more clues 11:31:49 [Apache] If you need more help, copy and post this 11:31:49 [Apache] entire log window on the forums

改变这些

方法 01 - 更改 XAMPP 端口

在你的httpd.conf

像这样更改端口

#Listen 12.34.56.78:80 
Listen 85

然后使用

访问localhost
localhost:85/


方法 02 - 更改 Skype 端口

转到Tools/Option/Advanced/Connections取消选中框“use port 80 and 443 as alternative”。

您可以在 XAMMP 上单击 netstat 并查看哪些服务正在使用 Apache 和 mysql 所需的端口。 然后转到服务(只需在开始菜单中搜索即可获得)并停止使用必要端口的服务和尝试从 XAMMP 启动 Apache 和 mysql。

在我的情况下,所需的端口被 vmware 阻止,只需停止 vmware 工作站服务就解决了我的问题。