我使用 Eclipse 设置了 Tomcat Server 7,但似乎另一个应用程序正在使用端口 80?我从 Tomcat 服务器收到这条消息:
Port 80 required by Tomcat v7.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s)
如何在 Mac OS X 上关闭端口 80 上的任何内容?
最佳答案
您可以使用 lsof -p :80 来了解哪个进程正在端口 80 上运行。可能是 Apache。 kill -9 pid 列出。
例如:
sudo kill -9 `lsof -t -i:80`
关于eclipse - Tomcat 80 端口不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21666581/