ActiveMQ 是Apache出品,最流行的,能力强劲的开源消息总线。
ActiveMQ
[root@node1 bin]# uname -a Linux node1 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 tar -xf apache-activemq-5.8.0-bin.tar.gz # mv apache-activemq-5.8.0 /opt/activemq # cd /opt/activemq/bin/ # ./activemq start
JAVA 环境:
# export JAVA_HOME=/opt/java/jre1.8.0_91/ # export PATH=$JAVA_HOME/bin:$PATH # export CLASSPATH=.:$java_home/lib/dt.jar:$JAVA_HOME/lib/tools.jar
# java -version
检测访问:
# netstat -an|grep 8161 URL :
http://172.16.2.20:8161/admin/ USER/PWD : admin/admin
Iptable 添加8161端口
# vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT # service iptables restart