First, download: apache-activemq-5.14.0-bin.tar.gzHttp://activemq.apache.org/activemq-5140-release.html
Second, installation Activemq1, gz file copy to/usr/local/src directory 2, decompression start TAR-ZXVF apache-activemq-5.14.0-bin.tar.gz CD APACHE-ACTIVEMQ-5.14.0CD bin./ ACTIVEMQ start Netstat-anp|grep 61616 off./activemq start
Third, open the firewall port1, if the use of the cloud server needs to first open 8161 (Web Management page port), 61616 (ACTIVEMQ Service monitoring port) Two ports 2, open the Linux firewall port/sbin/iptables-i input-p TCP--dport
8161-j accept&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables Status /sbin/iptables-i input-p TCP--dport
61616-j accept&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables Status
iv. Open Web Administration pageHttp://IP:8161/admin Default User name password Admin/admin If you want to modify the login user name password for the console, you can modify it in the Conf/jetty-realm.properties file
Five, security configurationHTTP://ACTIVEMQ.APACHE.ORG/SECURITY.HTML1, activemq.xml New account password (added under Broker tab)
<
simpleAuthenticationPlugin
>
<
users
>
<
authenticationUser username
=
"system" password
=
"manager"
groups
=
"users,admins"
/>
</
users
>
</
simpleAuthenticationPlugin
>
|
2. Add account password in program code
Installation and configuration of Linux under ACTIVEMQ