빈번하게 사용하는 Mosquitto 명령어
이 사이트에서 시험을 진행하면서 사용한 명령어의 리스트는 다음과 같다. 시험은 나중에 하므로 지금은 그 냥 한번 숙독하고 지나 가도록 하자.
♦ mosquitto -v [-c config filename]
MQTT 브로커/서버 실행하고, -v 옵션으로 실행 중 event 로그를 보여주며, -c 옵션으로 mosquitto의 설정파일을 지정할 수도 있다.
♦ mosquitto_sub -h hostname -t message-topic
hostname 서버에서 message-topic 주제로 발행되는 메시지를 구독(subscribe)한다.
♦ mosquitto_pub -h hostname -t message-topic -m message
hostname 서버로 message-topic 주제에 대한 메시지를 발행(publish)한다.
Mosquitto 명령어 원본 참조
Mosquitto 명령어에 대한 설명 원본은 https://mosquitto.org/ 의 아래 링크에서 참조할 수 있다.
명령 분류 | 참조 링크 | |
동작 내용 | Server/Client | |
Blocker | Server | § https://mosquitto.org/man/mosquitto-8.html |
Publish | client | § https://mosquitto.org/man/mosquitto_pub-1.html |
Subscribe | Client | § https://mosquitto.org/man/mosquitto_sub-1.html |
TLS | Server&Client | § https://mosquitto.org/man/mosquitto-tls-7.html |
password | Client | § https://mosquitto.org/man/mosquitto_passwd-1.html |
Request Response | Clinet | § https://mosquitto.org/man/mosquitto_rr-1.html |