How to install ActiveMQ on CentOS 7

1. Official website download

Insert picture description here
Or direct command download in the terminal

mkdir /etc/activemq
cd /etc/activemq
wget http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz

Insert picture description here

Two, unzip

tar -zxvf apache-activemq-5.14.5-bin.tar.gz

View catalog

ls -s

Insert picture description here
Enter /bin/linux-x86-64/ file

cd apache-activemq-5.14.5/bin/linux-x86-64/

Insert picture description here

Three, start the process

./activemq start

Fourth, open the mapping port (8161 and 61616 ports)

 firewall-cmd --zone=public --add-port=6379/tcp --permanent
 firewall-cmd --zone=public --add-port=61616/tcp --permanent

If it appearsFirewallD is not running
The firewall is turned on because the firewall is not turned
on:

systemctl start firewalld.service

Check firewalld status, show running

systemctl status firewalld

Execute again
Insert picture description here
Web visit
Be careful to close the protective wall, otherwise the web page will not load

systemctl stop firewalld.service

Related instructions

  • Turn on the firewall: systemctl start firewalld.service

  • Turn off automatic startup: systemctl disable firewalld.service

  • Turn on boot: systemctl enable firewalld.service

Five, test access (http://ip address: 8161)

Username/password: admin/admin
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44763595/article/details/109902158