今天使用centos运行springboot的时候报错了,说8080端口号被占用
提示
APPLICATION FAILED TO START
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
发现原来是开着tomcat,占用了8080这个端口号
如何关闭某个应用程序,释放他的端口号呢
先输入netstat -lnp|grep 8080 找到该应用程序
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 28937/java
然后执行kill杀死该应用程序
kill -9 28937
搞定