java.net.BindException:已使用的地址:JVM_Bind< null>:80 [英] java.net.BindException: Address already in use: JVM_Bind <null>:80
问题描述
在启动Tomcat服务器时,我收到绑定异常。
我试图杀死正在使用80的进程,因为一些进程正在使用它。
I am getting binding exception while starting the Tomcat server. I tried to kill the process that which is using '80' as couple of processes are using it.
获取错误,而杀死进程ID为'0 ':
Getting error, while killing process id is '0':
错误:PID 0的进程无法终止。原因:这是
关键系统进程。
ERROR: The process with PID 0 could not be terminated. Reason: This is critical system process. Taskkill cannot end this process.
如何解决这个问题?
不需要使用另一个端口来运行tomcat服务器。
I don't need to use another port to run the tomcat server.
推荐答案
设置Tomcat监听端口80是错误,为了开发,8080是一个很好的使用端口。对于生产使用,只需设置一个apache,将您的请求转发到您的tomcat。 这里是一个如何。
Setting Tomcat to listen to port 80 is WRONG , for development the 8080 is a good port to use. For production use, just set up an apache that shall forward your requests to your tomcat. Here is a how to.
这篇关于java.net.BindException:已使用的地址:JVM_Bind< null>:80的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!