我的 PC 上安装了 Windows 7。我已下载 XAMPP 服务器并使用默认选项安装它。但是,我注意到 Tomcat 无法工作(而 MySQL、Apache 可以工作!)。我尝试在 XAMPP 中配置 Tomcat,但出现以下错误。
11:47:40 AM [Tomcat] Problem detected!
11:47:40 AM [Tomcat] Port 8080 in use by "C:\oraclexe\app\oracle\product\10.2.0\server\BIN\tnslsnr.exe"!
11:47:40 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!
11:47:40 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application
11:47:40 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port .
如何重新配置 Tomcat 和控制面板以监听不同的端口?
最佳答案
错误消息是不言自明的,Tomcat 默认监听 prot 8080,但目前 tnslsnr.exe 使用端口 8080
转到 $T0MCAT_HOME/conf/server.xml 并更改 <Connector port="8080"
到您想要的任何端口,例如 <Connector port="7070"
并重新启动tomcat
关于mysql - XAMPP中配置tomcat出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34059551/