사용 환경 : mac
sudo apt-get install mosquitto mosquitto-clients
‼️ mac은 homebrew 활용해서 다운 : brew install mosquitto
sudo systemctl start mosquitto.service
‼️ mac : brew services start mosquitto
ps -ef | grep mosq
ps : 프로세스 상태 확인 명령어
-ef : e 옵션은 모든 프로세스 의미, f 옵션은 프로세스의 정보를 더 많이 보여주도록
grep : 원하는 키워드 검색

localhost에 test라는 토픽으로 ‘Hi seonmin from mosquitto_publish’ 전송

localhost의 test 구독하여 해당 메시지 확인
