RocketMQ启动mqnamesrv报:java.net.BindException: 地址已在使用

分享知识 传递快乐

启动 RocketMQ 的 mqnamesrv 时日志中报 “地址已经使用”,如下:

Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
java.net.BindException: 地址已在使用

检查端口是否占用

netstat -anp | grep 9876
# 或
lsof -i:9876

修改端口号或杀掉端口占用就可以了。

—————————
如有不足请留言指正
相互学习,共同进步

你可能感兴趣的:(Linux,BindException,地址已在使用,rocketmq)