hadoop14---centos 安装activemq
创建activemq目录
[root@node1 ~]# mkdir -p /usr/local/activemq
狐火下载activemq,从用户/download目录把文件cp到/usr/local/activemq,
解压:tar -zxvf apache-activemq-5.14.3-bin.tar.gz
查看目录
[root@node1 activemq]# ll total 53012 drwxr-xr-x 10 root root 4096 Dec 19 2016 apache-activemq-5.14.3 -rw-r--r-- 1 root root 54277759 Oct 18 2017 apache-activemq-5.14.3-bin.tar.gz
查看bin目录
[root@node1 activemq]# cd apache-activemq-5.14.3/bin/ [root@node1 bin]# ll total 140 -rwxr-xr-x 1 root root 21446 Dec 19 2016 activemq -rwxr-xr-x 1 root root 6189 Dec 19 2016 activemq-diag -rw-r--r-- 1 root root 15986 Dec 19 2016 activemq.jar -rw-r--r-- 1 root root 4884 Dec 19 2016 env drwxr-xr-x 2 root root 74 Sep 1 05:16 linux-x86-32 drwxr-xr-x 2 root root 93 Sep 1 05:16 linux-x86-64 drwxr-xr-x 2 root root 78 Sep 1 05:16 macosx -rw-r--r-- 1 root root 83820 Dec 19 2016 wrapper.jar
在linux-x86-64 目录下启动activemq 并查看进程
[root@node1 bin]# cd linux-x86-64/ [root@node1 linux-x86-64]# ./activemq start
[root@node1 linux-x86-64]# ps -ef | grep activemq root 2940 1 0 05:16 ? 00:00:01 /usr/local/activemq/apache-activemq-5.14.3/bin/linux-x86-64/wrapper /usr/local/activemq/apache-activemq-5.14.3/bin/linux-x86-64/wrapper.conf wrapper.syslog.ident=ActiveMQ wrapper.pidfile=/usr/local/activemq/apache-activemq-5.14.3/bin/linux-x86-64/./ActiveMQ.pid wrapper.daemonize=TRUE wrapper.lockfile=/var/lock/subsys/ActiveMQ root 2942 2940 0 05:16 ? 00:00:13 java -Dactivemq.home=../.. -Dactivemq.base=../.. -Djavax.net.ssl.keyStorePassword=password -Djavax.net.ssl.trustStorePassword=password -Djavax.net.ssl.keyStore=../../conf/broker.ks -Djavax.net.ssl.trustStore=../../conf/broker.ts -Dcom.sun.management.jmxremote -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dactivemq.conf=../../conf -Dactivemq.data=../../data -Djava.security.auth.login.config=../../conf/login.config -Xmx1024m -Djava.library.path=../../bin/linux-x86-64/ -classpath ../../bin/wrapper.jar:../../bin/activemq.jar -Dwrapper.key=hhmTPupfiMoDGbve -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2940 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.apache.activemq.console.Main start root 3009 2252 0 05:51 pts/1 00:00:00 grep --color=auto activemq
查看8161和61616端口
[root@node1 linux-x86-64]# netstat -lnutp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1055/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2180/master tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 2942/java tcp6 0 0 :::8161 :::* LISTEN 2942/java tcp6 0 0 :::5672 :::* LISTEN 2942/java tcp6 0 0 :::61613 :::* LISTEN 2942/java tcp6 0 0 :::61614 :::* LISTEN 2942/java tcp6 0 0 :::61616 :::* LISTEN 2942/java tcp6 0 0 :::60753 :::* LISTEN 2942/java tcp6 0 0 :::22 :::* LISTEN 1055/sshd tcp6 0 0 ::1:25 :::* LISTEN 2180/master tcp6 0 0 :::1883 :::* LISTEN 2942/java
Web测试访问: http://ip地址:8161 用户名:admin 密码:admin