2020년 10월 12일 월요일

[IOT] CentOs 7 MQTT 브로커 설치 (Mosquitto)


1. EPEL을 설치하자
    yum install -y epel-release

2. mosquitto 설치
    yum install -y mosquitto

3. 서비스를 시작
    systemctl start mosquitto

4. 자동 재시작 등록
    systemctl enable mosquitto

5. 잘 실행되고 있는지 확인
    systemctl status mosquitto

6. 상태가 active 라면, 테스트를 진행하자
    mosquitto_sub -h localhost -t topic

7. 터미널을 새로 열고 pub 을 해보자
   mosquitto_pub -h localhost -t topic -m "hello world"

8. 기본로그 확인

  tail -f /var/log/messages


참고 http://blog.parkheesung.com/2018/03/mosquittomqtt-on-centos7-default.html

댓글 없음:

댓글 쓰기

[lunux]리눅스 폴더별 용량 확인

리눅스 폴더별 용량 확인 조회 하고자 하는 디렉토리 리스트가있는 경로로 이동후 du -h --max-depth=1