2017年6月16日 星期五

install mqtt on centos

Ref : https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-centos-7


把   home-oojah-mqtt.repo copy到   /etc/yum.repos.d/

然後執行

sudo yum install mosquitto
 sudo yum install mosquitto-clients


CentOS

Download the repository config file for your CentOS version from below and copy it to /etc/yum.repos.d/ You’ll now be able to install and keep mosquitto up to date using the normal package management tools.
The available packages are: mosquitto, mosquitto-clients, libmosquitto1, libmosquitto-devel, libmosquittopp1, libmosquittopp-devel, python-mosquitto.

sudo yum -y install epel-release

 sudo yum install mosquitto
 sudo yum install mosquitto-clients




mosquitto_pub -h 192.168.0.103 -t test -m "forward"

沒有留言:

張貼留言