问题
I am using XAMPP1.8.1 but while starting it, the apache service is not starting because of port 8080 being used by Tomcat 7,
when used: netstat -aon | findstr "8080" to find the process it showed Apache Tomcat Tomcat7 is using 8080.
for last 1 month the apache was working fine.
The error shown in XAMPP control panel is :
4:20:14 PM [main] Initializing Modules
4:20:14 PM [Apache] **Problem detected!**
4:20:14 PM [Apache] **Port 80 in use by "system"!**
4:20:14 PM [Apache] **Apache WILL NOT start without the configured ports free!**
4:20:14 PM [Apache] **You need to uninstall/disable/reconfigure the blocking application**
4:20:14 PM [Apache] or reconfigure Apache to listen on a different port
4:20:14 PM [mysql] XAMPP MySQL Service is already running on port 3306
4:20:14 PM [filezilla] XAMPP FileZilla FTP Server Service is already running on port 21
4:20:14 PM [filezilla] XAMPP FileZilla FTP Server Service is already running on port 14147
4:20:14 PM [Tomcat] XAMPP Tomcat Service is already running on port 8005
4:20:14 PM [Tomcat] **XAMPP Tomcat Service is already running on port 8080**
4:20:14 PM [Tomcat] XAMPP Tomcat Service is already running on port 8009
回答1:
You have two options over here. 1.You probably need to kill the process which is using the 8080 port[apache tomcat]if you want 8080 port only. 2.Assign a new port address to XAMPP server.
回答2:
stop the tomcat7 and try to restart the apache server, sometimes system services like skype may also use the same port number. disable all other programs first and run the apache.
来源:https://stackoverflow.com/questions/22477400/xampp-1-8-1-apache-cannot-start-in-port-8080-which-is-being-used-by-tomcat-7