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

댓글 없음:

댓글 쓰기

[springboot]실제 JWT 발급 및 검증 구현

실제 JWT 발급 및 검증 구현 이전 단계에서 만든 임시 토큰을 실제 암호화된 JWT(JSON Web Token)로 대체하고, Spring Security 필터를 통해 API 요청을 보호하는 방법을 구현합니다. Part 1: 백엔드 (Spring ...