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
.form-group.required .control-label:before{ color: red; content: "*"; position: absolute; margin-left: -15px; } 라벨 왼쪽에 * 넣기 bootstrap.css에 추가 폼에 required 추가 class="form-group required"
댓글
댓글 쓰기