摘要: mosquitto的acl规则及用户配置信息真让人头疼啊.折腾了半天才搞明白,随手记下来,省的下次又忘了.首先mosquitto.conf中设置acl配置文件及用户配置文件:password_file pwfile.exampleacl_file aclfile.examplepwfile.example为用户列表aclfile.example为访问规则列表在pwfile.example中需要以usernme/password格式添加相关用户#发布信息用户pub/pub#接收信息用户sub/sub然后在aclfile.example文件中配置用户可访问的topic信息#用户信息user pub 阅读全文
posted @ 2012-03-29 00:54 relinson 阅读(4572) 评论(0) 推荐(1) 编辑