Ubuntu 16.04
install
#sudo apt-get install mosquitto mosquitto-clients
test (받기)
#mosquitto_sub -h localhost -t test
test (보내기)
mosquitto_pub -h localhost -t test -m "hello world"
Installing Certbot for Let's Encrypt Certificates
#sudo nano /etc/mosquitto/conf.d/default.conf
listener 1883 localhost
listener 8883
certfile /etc/letsencrypt/live/mqtt.example.com/cert.pem
cafile /etc/letsencrypt/live/mqtt.example.com/chain.pem
keyfile /etc/letsencrypt/live/mqtt.example.com/privkey.pem
재시작... (?? 잘안됨) kill -9
sudo systemctl restart mosquitto
참조 사이트 주의 사항.....영어 ???
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-messaging-broker-on-ubuntu-16-04
Step 1: unpack rar archive Step 2: run the setup Step 3: Use the given keygen to activate Add the line 127.0.0.1 licensing.ultraedit.com to your %WINDOWS%\system32\drivers\etc\hosts file Enter any data for license-id and password (license-id must be a number) Choose Offline activation and generate corresponding activation codes for your user codes Step 4: Enjoy and Support Developers, Buy It, They Deserved It!
댓글
댓글 쓰기