日志详细信息:
13:41:13 [main] Initializing Control Panel
13:41:13 [main] Windows Version: Pro 64-bit
13:41:13 [main] XAMPP Version: 7.0.8
13:41:13 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
13:41:13 [main] You are not running with administrator rights! This will work for
13:41:13 [main] most application stuff but whenever you do something with services
13:41:13 [main] there will be a security dialogue or things will break! So think
13:41:13 [main] about running this application with administrator rights!
13:41:13 [main] XAMPP Installation Directory: "d:\xampp\"
13:41:13 [main] Checking for prerequisites
13:41:13 [main] All prerequisites found
13:41:13 [main] Initializing Modules
13:41:13 [Apache] Problem detected!
13:41:13 [Apache] Port 80 in use by "Unable to open process" with PID 4!
13:41:13 [Apache] Apache WILL NOT start without the configured ports free!
13:41:13 [Apache] You need to uninstall/disable/reconfigure the blocking application
13:41:13 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
13:41:13 [Apache] Problem detected!
13:41:13 [Apache] Port 443 in use by "E:\vmware\vmware-hostd.exe -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 4128!
13:41:13 [Apache] Apache WILL NOT start without the configured ports free!
13:41:13 [Apache] You need to uninstall/disable/reconfigure the blocking application
13:41:13 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
13:41:13 [main] Starting Check-Timer
13:41:13 [main] Control Panel Ready
13:41:16 [Apache] Problem detected!
13:41:16 [Apache] Port 80 in use by "Unable to open process" with PID 4!
13:41:16 [Apache] Apache WILL NOT start without the configured ports free!
13:41:16 [Apache] You need to uninstall/disable/reconfigure the blocking application
13:41:16 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
13:41:16 [Apache] Problem detected!
13:41:16 [Apache] Port 443 in use by "E:\vmware\vmware-hostd.exe -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 4128!
13:41:16 [Apache] Apache WILL NOT start without the configured ports free!
13:41:16 [Apache] You need to uninstall/disable/reconfigure the blocking application
13:41:16 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
13:41:16 [Apache] Attempting to start Apache app...
13:41:16 [Apache] Status change detected: running
13:41:18 [Apache] Status change detected: stopped
13:41:18 [Apache] Error: Apache shutdown unexpectedly.
13:41:18 [Apache] This may be due to a blocked port, missing dependencies,
13:41:18 [Apache] improper privileges, a crash, or a shutdown by another method.
13:41:18 [Apache] Press the Logs button to view error logs and check
13:41:18 [Apache] the Windows Event Viewer for more clues
13:41:18 [Apache] If you need more help, copy and post this
13:41:18 [Apache] entire log window on the forums
如果它是系统进程,我该如何修复它?
要关闭使用这些端口的进程,您可以使用 Microsoft 的TCPVIEW工具,它会为您提供正在运行的进程的详细列表以及每个进程正在使用的端口。
在将出现的列表中查找正在使用端口 80 和 443 的进程,然后右键单击该进程并选择结束进程,关闭进程时要小心,因为它们可能正在被系统使用并可能造成一些损坏。
windows中使用80端口可以用于IIS的万维网发布服务(World Wide Web Publishing Service)如果你在IIS中没有运行任何东西你可以毫无问题地禁用它,如果这个服务在windows服务中查看正在运行并停止或禁用它。
我认为Microsoft Answers 的这个答案可能会对您有所帮助。它解释了如何更改 Apache 服务器的端口,使其不会与您 PC 上已使用的端口 80 冲突。
基本上,它说您应该访问 httpd.conf 文件,该文件通常位于directory_where_Apache_is_installed/conf中,并将端口 80 更改为您喜欢的端口(例如,8080)。
当然,要访问你在 Apache 中部署的所有东西,你必须通过 localhost:8080 访问,即你必须明确告诉它你要访问 8080 端口。如果没有指定端口,浏览器会假定你要访问访问 80。
我已经多次遇到这个问题,最后,最好的办法是重新安装所有东西,考虑到一系列因素,我告诉你:
我碰巧有一个进程正在使用该端口,并且无论我如何更改xampp配置它都无法连接,在这种情况下我不得不将xampp保留为其默认端口并转到任务管理器并查看对于那里的服务,目前我不记得名字,我不在我的电脑上,但它是一个 sql 服务,检查,如果你完成它 xampp 工作。
至少它对我有用