赞
踩
1.添加EPEL软件包安装源:yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2.安装mosquitto:yum install mosquitto
3.配置mosquitto
#创建密码文件 touch /etc/mosquitto/pwfile #创建策略文件 touch /etc/mosquitto/aclfile #创建日志目录 mkdir /var/log/mosquitto #创建日志文件 touch /var/log/mosquitto/mosquitto.log #创建本地持久化文件目录 mkdir /var/lib/mosquitto #创建chirp用户 mosquitto_passwd /etc/mosquitto/pwfile chirp #输入chirp用户的密码 vi /etc/mosquitto/mosquitto.conf # 修改以下项 #持久化配置 persistence true persistence_location /var/lib/mosquitto/ #日志文件配置 log_dest file /var/log/mosquitto/mosquitto.log #用户名密码认证配置 allow_anonymous false password_file /etc/mosquitto/pwfile acl_file /etc/mosquitto/aclfile
vi /etc/mosquitto/aclfile
user chirp #用户chirp
topic chirpstack #可对主题chirpstack读写
mosquitto_sub -t <topic> -u <user> -P <password>
mosquitto_pub -t <topic> -m <message> -u <user> -P <password>
tail -f /var/log/mosquitto/mosquitto.log
1.新建一个目录,下载redhat安装包到该目录 wget https://artifacts.chirpstack.io/downloads/chirpstack-gateway-bridge/chirpstack-gateway-bridge_3.9.2_linux_386.rpm
2.安装rpm:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。