xampp 问题端口 80 或 8080 不工作

xampp issue port 80 or 8080 doesn't work

我已经在 windows 7 上安装了 XAMPP 并尝试启动 Apache 和 MySQL 服务器。它没有用。然后我尝试通过单击与 Apache 在同一行上的 Config 并选择 httpd.config 来将端口 listen 80 更改为 listen 8080,但即使这样也行不通。

当我启动 Apache 并且 MySQL 它在控制台中显示:

15:33:34  [main]    Initializing Control Panel
15:33:34  [main]    Windows Version: Windows 7 Home Premium SP1 64-bit
15:33:34  [main]    XAMPP Version: 5.6.11
15:33:34  [main]    Control Panel Version: 3.2.1  [ Compiled: May 7th 2013 ]
15:33:34  [main]    You are not running with administrator rights! This will work for
15:33:34  [main]    most application stuff but whenever you do something with services
15:33:34  [main]    there will be a security dialogue or things will break! So think 
15:33:34  [main]    about running this application with administrator rights!
15:33:34  [main]    XAMPP Installation Directory: "d:\xampp\"
15:33:34  [main]    Checking for prerequisites
15:33:34  [main]    All prerequisites found
15:33:34  [main]    Initializing Modules
15:33:34  [Apache]  Problem detected!
15:33:34  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:33:34  [Apache]  Apache WILL NOT start without the configured ports free!
15:33:34  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:33:34  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:33:34  [Apache]  Problem detected!
15:33:34  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:33:34  [Apache]  Apache WILL NOT start without the configured ports free!
15:33:34  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:33:34  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:33:34  [mysql]   MySQL Service detected with wrong path
15:33:34  [mysql]   Change XAMPP MySQL and Control Panel settings or
15:33:34  [mysql]   Uninstall/disable the other service manually first
15:33:34  [mysql]   Found Path: "D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL
15:33:34  [mysql]   Expected Path: d:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql
15:33:34  [mysql]   Problem detected!
15:33:34  [mysql]   Port 3306 in use by ""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
15:33:34  [mysql]   MySQL WILL NOT start without the configured ports free!
15:33:34  [mysql]   You need to uninstall/disable/reconfigure the blocking application
15:33:34  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
15:33:34  [main]    The Mercury module is disabled
15:33:34  [main]    The Tomcat module is disabled
15:33:34  [main]    Starting Check-Timer
15:33:34  [main]    Control Panel Ready
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Attempting to start Apache app...
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Attempting to start Apache app...
15:36:36  [Apache]  Status change detected: running
15:36:37  [Apache]  Status change detected: stopped
15:36:37  [Apache]  Error: Apache shutdown unexpectedly.
15:36:37  [Apache]  This may be due to a blocked port, missing dependencies, 
15:36:37  [Apache]  improper privileges, a crash, or a shutdown by another method.
15:36:37  [Apache]  Press the Logs button to view error logs and check
15:36:37  [Apache]  the Windows Event Viewer for more clues
15:36:37  [Apache]  If you need more help, copy and post this
15:36:37  [Apache]  entire log window on the forums
15:36:38  [mysql]   Problem detected!
15:36:38  [mysql]   Port 3306 in use by ""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
15:36:38  [mysql]   MySQL WILL NOT start without the configured ports free!
15:36:38  [mysql]   You need to uninstall/disable/reconfigure the blocking application
15:36:38  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
15:36:38  [mysql]   Attempting to start MySQL service...

我该怎么办?

对我来说,您似乎并没有真正使用端口 8080。Apache 尝试使用端口 80 和 443,这两个端口已被 Skype 阻止。

无论 ""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL" 是什么,它都会阻塞您的端口 3306 mysql。

您应该终止这些进程或再次更改 Apache 和 MySql 的端口。对于 Apache,使用 "config" 按钮然后编辑 httpd.conf 文件。在该文件中,将 Listen 80 行更改为 Listen 8080。之后确保保存更改。

对于MySql和端口3306相同,如果你想使用它(这里是my.ini)。