mqtt服务器本地搭建
安装客户端测试emqx//配置文件//服务器的web界面//添加一个账户//emqx的手册,安装和使用打开grafana的web界面,配置如下:emqx比较强大,支持大并发,可级联,如测试使用,可使用轻量级mqtt服务器:mosquitto。
·
//emp服务器deb安装
https://www.emqx.com/en/downloads/broker/v5.8.6
sudo dpkg -i emqx-5.8.6-ubuntu22.04-amd64.deb
sudo systemctl start emqx
sudo systemctl status emqx
安装客户端测试emqx
sudo apt-get install mosquitto-clients
//订阅主题
mosquitto_sub -h localhost -t "test/topic" -v
//发布主题
mosquitto_pub -h localhost -t "test/topic" -m "Hello, EMQX!"
//配置文件
cat /etc/emqx/emqx.conf
//服务器的web界面
http://localhost:18083
//添加一个账户
sudo emqx ctl admins add Admin123 Admin123
//emqx的手册,安装和使用
https://docs.emqx.com/zh/emqx/v5.8/deploy/install-enterprise.html
打开grafana的web界面,配置如下:
参考:Grafana部署
emqx比较强大,支持大并发,可级联,如测试使用,可使用轻量级mqtt服务器:mosquitto
sudo apt-get install mosquitto
sudo systemctl enable mosquitto
sudo systemctl start mosquitto
附录:
更多推荐
所有评论(0)