下载ActiveMQ并且解压
wget https://mirrors.bfsu.edu.cn/apache//activemq/5.16.0/apache-activemq-5.16.0-bin.tar.gz
tar zxvf apache-activemq-5.16.0-bin.tar.gz -C /usr/local/
tar zxvf apache-activemq-5.16.0-bin.tar.gz -C /usr/local/ && rm -rf apache-activemq-5.16.0-bin.tar.gz
mv /usr/local/apache-activemq-5.16.0/ /opt/app/activemq
启动ActiveMQ
/opt/app/activemq/bin/activemq start
检查 8161 端口
ss -ntl
配置 nginx
server {
listen 80;
server_name ...; #域名
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header Remote_Addr $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8161;
}
}
重启 Nginx
在浏览器输入 (域名) 即可,用户是 admin 密码是 admin
即成功安装