以下のPathにアクセスします。
/etc/mosquitto |
MQTT Brokerの構成Fileを見ます。
cat mosquitto.conf |
# Place your local configuration in /etc/mosquitto/conf.d/ # # A full description of the configuration file is at # /usr/share/doc/mosquitto/examples/mosquitto.conf.example pid_file /run/mosquitto/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ log_dest file /var/log/mosquitto/mosquitto.log include_dir /etc/mosquitto/conf.d |
use nano to edit the file, insert these 2 lines.
そしてNanoをConfiguration file開いて以下の2Line を入れてください。
sudo nano mosquitto.conf listener 1883 allow_anonymous true |
再起動すればOKです。
Reference from: