티스토리 뷰

개발/개발 자료

(Linux) Mosquitto MQTT 설치

시원한물냉 2016. 5. 24. 16:26

INSTALLING MOSQUITTO UNDER CENTOS 7

– 참조: http://ceit.uq.edu.au/content/installing-mosquitto-under-centos

Step 1: Add the CentOS 7 mosquitto repository

  1. $ cd /etc/yum.repos.d
  2. $ wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-5/home:oojah:mqtt.repo
  3. $ sudo yum update

Step 2: Install mosquitto & mosquitto-clients

  1. $ sudo yum install mosquitto
  2. $ sudo yum install mosquitto-clients

Step 3: Run mosquitto

  1. $ sudo su
  2. # /usr/sbin/mosquitto -d -c /etc/mosquitto/mosquitto.conf > /var/log/mosquitto.log 2>&1

Step 4: Test mosquitto_sub & mosquitto_pub

  1. $ mosquitto_sub -h [server_address] -t /[topic]
  2. $ mosquitto_pub -h [server_address] -t /[topic] -m “[message]”


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함