I use centos7X64 minimal installation CentOS-7-x86_64-Minimal-1708activemq5.15.10
Students who have not installed jdk, please move to the article of [centos7 correct posture for installing jdk8**]
Generally, it cannot be used because it is affected by the monitoring address. For example, the host name will be 192_168_50_86 for Ucloud and VM_0_9_centos for Tencent Cloud, which may cause problems. For specific errors, see the activemq.log log file in the MQ data directory.
two ways to solve the problem, respectively:In the activemq.xml under the MQ conf directory, change the default
0.0.0.0to127.0.0.1(a total of5locations)

Start MQ,
activemq statusto view the status, running

Visit the background address: http://192.168.50.85:8161 Everything is normal, (ip should be changed to the address of your server)
hostnameview hostname
hostname

We changed the hostname to
192-168-50-85
hostnamectl set-hostname 192-168-50-85
View the host name:
hostname
We see that the host name has been modified, but it is not fully effective, let’s restart

shutdown -r now

View the host name:
hostname
We see that the hostname modification has been fully effective
Start MQ,activemq statusto view the status, running

Visit the background address: http://192.168.50.85:8161 Everything is normal, (ip should be changed to the address of your server)
Recommended Posts