MQTT服务器再Linux上的搭建
//
安装 mosquito mosquito-clients
ubuntu:
sudo apt install mosquitto mosquitto-clients
centos
yum install mosquitto mosquitto-clients
查看服务状态
sudo systemctl status mosquito
设置参数
sudo nano /etc/mosquitto/mosquitto.conf
设置账号密码
sudo mosquitto_passwd -c /etc/mosquitto/passwd your username
启动服务器
sudo systemctl start mosquito