创建网桥时出错:权限被拒绝Mosquitto

时间:2016-08-25 20:33:34

标签: mqtt mosquitto

我尝试在嵌入式Linux设备上运行mosquitto,并配置(如下所示)作为root用户和cmd:mosquitto -c /etc/mosquitto/mosquitto.conf

### /etc/mosquitto/mosquitto.conf ###

log_dest stdout
#mosquitto user
user mosquitto 
#bridge Config
connection 1234567890
address 192.168.0.101:1883
start_type automatic

topic # both 0

topic # both 1
#cleansession false
bridge_protocol_version mqttv311
#need to be false otherwise error on hivemq-side
notifications false

### end of conf file ###

mosquitto无法创建桥梁,我抓住了这个日志:

1472052730: mosquitto version 1.4.8 (build date 2016-07-05 08:47:49+0200) starting
1472052731: Config loaded from /etc/mosquitto/mosquitto.conf.
1472052731: Opening ipv4 listen socket on port 1883.
1472052731: Opening ipv6 listen socket on port 1883.
1472052731: Connecting bridge 1234567890 (localhost:1883)
1472052731: Error creating bridge: Permission denied.
1472052731: Warning: Unable to connect to bridge 1234567890.
1472052761: Connecting bridge 1234567890 (localhost:1883)

然而,当我将conf文件中的用户从mosquitto更改为root(但我知道它不正确)时,一切正常。 你能帮我解决这个问题吗?

0 个答案:

没有答案