mosquitto在liunx中安装问题

guoshatao 2013-11-27 03:03:14
我下载了mosquitto-1.2.2.tar.gz ,然后解压安装,安装完成后,执行 mosquitto -c /etc/mosquitto/mosquitto.conf -d 命令, 提示: [root@localhost ~]# 1363320577: Error: Invalid user 'mosquitto'.而且在etc/mosquitto目录中的mosquitto.conf配置文件上的配置信息也不是很全,请大侠们指教!
...全文
298 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
kekuk 2015-08-25
  • 打赏
  • 举报
回复
编译安装后/etc/mosquitto/mosquitto.conf.example模板重命名,修改“user root”;启动的时候指定新的配置文件:mosquitto -d -c /etc/mosquitto/mosquitto.conf
truckys 2014-01-07
  • 打赏
  • 举报
回复
原因找到了, Error: Invalid user 'mosquitto'. The reason is simple, user is not configured. As user is root we have to declare root user un mosquitto configuration. So edit /etc/mosquitto/mosquitto.conf file and add at user section user root 需要配置当前用户名。
truckys 2014-01-07
  • 打赏
  • 举报
回复
这个问题解决了吗,我也遇到了一样的问题!!!?

80,360

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧