解说CentOS 7下ActiveMQ安装配置
下载安装
wget 'http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.15.8/apache-activemq-5.15.8-bin.tar.gz&action=download' -O apache-activemq-5.15.8-bin.tar.gz tar xzf apache-activemq-5.15.8-bin.tar.gz mv apache-activemq-5.15.8 /usr/local/activemq
修改配置
指定JAVA_HOME位置,修改/usr/local/activemq/bin/env
JAVA_HOME="/usr/java/jdk1.8.0_202"
修改密码,修改/usr/local/activemq/conf/jetty-realm.properties
# Defines users that can access the web (console, demo, etc.) # username: password [,rolename ...] admin: admin, admin user: user, user
systemd自启动脚本
cat > /lib/systemd/system/activemq.service < < EOF [Unit] Description=ActiveMQ service After=network.target [Service] Type=forking WorkingDirectory=/usr/local/activemq/data ExecStart=/usr/local/activemq/bin/activemq start ExecStop=/usr/local/activemq/bin/activemq stop User=root Group=root [Install] WantedBy=multi-user.target EOF systemctl enable activemq #开机自启动 systemctl start activemq #启动
管理页面
相关推荐
胡献根 2020-07-18
胡献根 2020-07-05
jiangtie 2020-06-10
onlylixiaobei 2020-06-09
xinglun 2020-06-02
方新德 2020-05-31
Java高知 2020-05-20
Java高知 2020-05-08
Java高知 2020-05-03
onlylixiaobei 2020-05-02
Java高知 2020-04-22
胡献根 2020-04-22
heweiyabeijing 2020-04-21
方新德 2020-04-20
胡献根 2020-04-10
onlylixiaobei 2020-04-10
方新德 2020-04-08
xuedabao 2020-03-30