端口 地址被占用

ubuntu:

Failed to initialize end point associated with ProtocolHandler ["ajp-bio-8009"]
java.net.BindException: Address already in use (Bind failed)
Failed to initialize connector
Failed to initialize end point associated with ProtocolHandler

1、在普通用户下 ps -aux | grep tomcat 然后 sudo kill -9 杀掉pid
2、sudo su 在超级用户下做再执行 1、
3、重启云主机
4、cd /opt/tomcat/bin 然后 ./catalina.sh run

macbook:
打开终端:
lsof -i:(冒号后面不能有空格)端口号
kill 对应的PID

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。