Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对netbeans 7 有一个非常奇怪的问题。我正在使用JSF2.2 和Tomcat7.0.34 服务器开发一个应用程序。到目前为止一切正常,但是今天当我从 netbeans IDE 启动 tomcat 时,它在日志中显示成功启动,但在状态栏中继续说启动 tomcat。我可以从 "loclhost:8080" 访问 tomcat,如果我手动启动 tomcat 然后转到 IDE 并启动服务,它说端口 8080 已在使用中。
当尝试启动服务并且另一个任务使用相同的端口时,这是一个常见问题。确保您没有安装另一个 Tomcat 或任何其他侦听此端口 (8080) 的服务器。
如果在 Windows 中发出该命令,netstat -a -b -o则会为您提供 PC 上打开的端口列表。检查并查找端口以及哪个程序正在使用它
netstat -a -b -o