linux开发板安装mosquitto broker 服务器运行提示 Warning: Permission denied
在/etc/mosquitto/mosquitto.conf中把 user root 这个选项打开,使用root用户去运行mosquitto就可以了。
目前这种方式能跑起来,但是为什么这样还没研究明白
可能是Mosquitto需要访问某些文件或目录,但这些文件或目录的权限设置不允许Mosquitto所使用的用户访问
也可能在某些情况下,Mosquitto可能需要访问特定的系统资源,比如某些设备文件或系统级的配置,这通常需要root权限