标签:failed tmp uname ase linux c 错误 hup div java.net
[root@centos_6 ~]# cat /etc/system-release CentOS release 6.5 (Final) [root@centos_6 ~]# uname -a Linux centos_6 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz
tar -xf apache-activemq-5.9.0-bin.tar.gz.tar.gz -C /opt
/opt/apache-activemq-5.9.0/bin/activemq setup ~/.activemqrc
cd /opt/apache-activemq-5.9.0; bin/activemq start
nohup /opt/apache-activemq-5.9.0/bin/activemq start &>/dev/null &
注意,这里 &>/dev/null 也可以指定一个日志文件,例如: & > /tmp/activeMQ.log
activeMQ 启动后会有2个端口:
8161:activeMQ的后台管理端口,可以通过访问:http://activeMQ所在的服务器ip:8161/admin/index.jsp 默认用户名、密码都是:admin
61616:activeMQ是服务处理端口,你的服务连接activeMQ需要填写的端口
后台示例:
如果出现启动后,过一会儿又停止的话,首先去看日志,如果是类似如下错误,就需要把主机名的下划线改成别的,然后再启动就可以了
2018-04-17 17:03:11,109 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:centos_6-51713-1523955790831-0:1], java.net.URISyntaxException: Illegal character in hostname at index 8: ws://centos_6:6161 4?maximumConnections=1000&wireFormat.maxFrameSize=104857600) | org.apache.activemq.broker.BrokerService | main
标签:failed tmp uname ase linux c 错误 hup div java.net
原文地址:https://www.cnblogs.com/chenjinxi/p/8868290.html