centos7-MQTT Server搭建(apache-apollo)搭建和配置

发布时间 2023-11-30 17:08:37作者: 豆汤

#############################安装apache-apollo###############################################

####官方的安装文档:http://activemq.apache.org/apollo/documentation/getting-started.html

http://www.apache.org/dyn/closer.cgi?path=activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz

 

[root@internetofthings-01 apache-apollo-1.7.1]# tar xvf apache-apollo-1.7.1-unix-distro.tar.gz -C /data/application/

 

[root@internetofthings-01 bin]# pwd

/data/application/apache-apollo-1.7.1/bin

 

##创建 jm_ifms_broker实例

[root@internetofthings-01 bin]# ./apollo create jm_ifms_broker

 

[root@internetofthings-01 etc]# pwd

/data/application/apache-apollo-1.7.1/bin/jm_ifms_broker/etc

 

##允许所有网段访问

##vim /data/application/apache-apollo-1.7.1/bin/jm_ifms_broker/etc/apollo.xml

修改成

<web_admin bind="http://0.0.0.0:61680"/>

 <web_admin bind="https://0.0.0.0:61681"/>

 

###修改用户名和密码

vim /data/application/apache-apollo-1.7.1/bin/jm_ifms_broker/etc/users.properties

admin=bee@123456@

##########

四、启动apollo

进入到实例目录下的bin目录下

执行

 

./apollo-broker run

 

############################

[root@internetofthings-01 bin]# pwd

/data/application/apache-apollo-1.7.1/bin/jm_ifms_broker/bin

[root@internetofthings-01 bin]# nohup ./apollo-broker run &