activemq在linux上运行失败

  在linux上安装运行后,

cd [activemq_install_dir]/bin
./activemq start

之后

[ec2-user@ip-172-31-44-210 bin]$ sudo ./activemq start
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)


INFO: Invoke the following command to create a configuration file
./activemq setup [ /etc/default/activemq | /root/.activemqrc ]


INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/home/ec2-user/apache-activemq-5.10.0/data/activemq-ip-172-31-44-210.pid' (pid '8591')




activemq不能使用

采用

cd [activemq_install_dir]/bin
./activemq console

运行后发现

activemq不能使用,
ERROR | Failed to start Apache ActiveMQ ([localhost, ID:ip-172-31-44-210-44960-1480258703387-0:1], java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: Address already in use (Bind failed))

发现1883端口被占用


通过

netstat -tlnp

查找掉占用pid号

kill pid号


重新启动activemq可以使用


apollo运行失败原因也是如此


由于之前运行了
mosquitto

占用了1883



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值