Windows 7 中的 XAMPP 端口 80 错误
Posted
技术标签:
【中文标题】Windows 7 中的 XAMPP 端口 80 错误【英文标题】:XAMPP Port 80 Error In Windows 7 【发布时间】:2013-01-17 08:06:38 【问题描述】:XAMPP 3.1.0 无法工作,因为端口 80 正在使用中。我环顾四周,这似乎是一个常见问题。我已经停止了 IIS,Skype 没有运行,Web 部署代理服务正在运行,我已经更改了 Apache 的 httpd.conf 的配置,以根据这个问题的第二个答案监听端口 80:XAMPP PORT 80 is Busy / Easyphp error in Apache configuration file: 但仍然没有运气。以下是 XAMPP 控制面板中的错误消息:
2:03:49 PM [Apache] Problem detected!
2:03:49 PM [Apache] Port 80 in use by "system"!
2:03:49 PM [Apache] Apache WILL NOT start without the configured ports free!
2:03:49 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
2:03:49 PM [Apache] or reconfigure Apache to listen on a different port
2:03:49 PM [Apache] XAMPP Apache is already running on port 443
2:03:49 PM [mysql] MySQL Service detected with wrong path
2:03:49 PM [mysql] Change XAMPP MySQL settings or
2:03:49 PM [mysql] Uninstall/disable the other service manually first
2:03:49 PM [mysql] Found Path: ERROR: Not Able To Open Service Manager
2:03:49 PM [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
2:03:49 PM [mysql] Problem detected!
2:03:49 PM [mysql] Port 3306 in use by "mysqld.exe"!
2:03:49 PM [mysql] MySQL WILL NOT start without the configured ports free!
2:03:49 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
2:03:49 PM [mysql] or reconfigure MySQL to listen on a different port
2:03:49 PM [Tomcat] Problem detected!
2:03:49 PM [Tomcat] Port 8080 in use by "c:\xampp\apache\bin\httpd.exe"!
2:03:49 PM [Tomcat] Tomcat WILL NOT start without the configured ports free!
2:03:49 PM [Tomcat] You need to uninstall/disable/reconfigure the blocking application
2:03:49 PM [Tomcat] or reconfigure Tomcat to listen on a different port
当我转到 localhost 时,即使该服务在控制面板中停止,它也会将我带到 IIS7 屏幕。
【问题讨论】:
【参考方案1】:在提升的命令提示符中使用 netstat -bano
查看哪些应用正在侦听哪些端口。
但通常,以下应用程序在 Windows 中使用端口 80:
IIS
World Wide Web Publishing service
IIS Admin Service
SQL Server Reporting services
Web Deployment Agent Service
停止上述任何正在运行的应用程序。您可以在任务管理器的“服务”选项卡上执行此操作。
【讨论】:
【参考方案2】:在此链接上查看 The Computer Hugger 的答案(希望对您有所帮助) work by Apache and port 80
如果没有,请尝试以下操作,因为它对我的情况有所帮助: 错误的原因是 SQL 报告服务正在使用 Apache 使用的 PORT 80。禁用 SQL Reporting Services 自动启动肯定会解决问题。
停止SQL Reporting Service,开始,然后输入Administrative Tools,点击名称,选择计算机管理,然后选择Services and applications> SQL Server Configuration> Services & Look for SQL Reporting Servicves,将其设置为Manual start,然后停止。
重新启动您的 XAMPP 服务器,希望您一切顺利:)
【讨论】:
【参考方案3】:我在 Windows 8 上安装 XAMPP 后也遇到了这个错误:
[Apache] You need to uninstall/disable/reconfigure the blocking application
[Apache] or reconfigure Apache to listen on a different port
这是我修复它的方法:
转到 Windows 更新并确保所有 Windows 更新都已处理。
重新启动计算机。并启动 XAMPP 控制面板。然后错误消失并显示:
[main] Windows Version: Windows 8 Pro 64-bit
[main] XAMPP Version: 1.8.3
[main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
[main] You are not running with administrator rights! This will work for
[main] most application stuff but whenever you do something with services
[main] there will be a security dialogue or things will break! So think
[main] about running this application with administrator rights!
[main] XAMPP Installation Directory: "c:\xampp\"
[main] Checking for prerequisites
[main] All prerequisites found
[main] Initializing Modules
[main] Starting Check-Timer
[main] Control Panel Ready
所以一些警告,但它启动正常。
【讨论】:
以上是关于Windows 7 中的 XAMPP 端口 80 错误的主要内容,如果未能解决你的问题,请参考以下文章
Apache Server (xampp) 无法在 Windows 10(端口 80)上运行
Windows 10、Xampp、Apache 无法启动,端口 80 正在使用中
Windows 10 上的 XAMPP 和 Skype 端口冲突