Linn-cn opened a new issue, #316:
URL: https://github.com/apache/rocketmq-mqtt/issues/316

   场景:我尝试使用 mqttx 客户端可以连接 rocket-mqtt,并可以自发自收,我使用同事的电脑同时连接,他发送我也能收到
   
   疑问
   1. 我发现我不输入用户名和密码也可以连接,我在 service.conf 中已经配置如下并初始化了 topic,这是为什么?
   
   ```
   username=allin
   secretKey=allin
   
   NAMESRV_ADDR=192.168.77.116:9876
   eventNotifyRetryTopic=eventNotifyRetryTopic
   clientRetryTopic=clientRetryTopic
   
   metaAddr=192.168.77.116:9878
   
   执行了以下命令
   
   # 创建一级 Topic
   sh mqadmin updatetopic -c DefaultCluster -t eventNotifyRetryTopic -n 
192.168.77.116:9876
   sh mqadmin updatetopic -c DefaultCluster -t clientRetryTopic -n 
192.168.77.116:9876
   sh mqadmin updatetopic -c DefaultCluster -t mqtt_test -n 192.168.77.116:9876
   # 配置 mqtt 网关节点
   sh mqadmin updateKvConfig -s LMQ -k LMQ_CONNECT_NODES -v 192.168.77.116 -n 
192.168.77.116:9876
   # 配置一级 Topic 列表
   sh mqadmin updateKvConfig -s LMQ -k ALL_FIRST_TOPICS -v mqtt_test -n 
192.168.77.116:9876
   # 配置该一级 Topic 的通配订阅
   sh mqadmin updateKvConfig -s LMQ -k mqtt_test -v mqtt_test/# -n 
192.168.77.116:9876
   ```
   
   2. 我成功启动了 rocket-dashboard 5.1.0 版本,可以正常连接到 rocketmq,但是上述我成功发送的消息,我无法在 
dashboard 中的消息中看到痕迹,请问是不支持吗?
   
   下面附上 rocketmq 的配置文件
   
   ```
   allin@allin:~/rocketmq/rocketmq/conf$ cat broker.conf 
   
   brokerClusterName = DefaultCluster
   brokerName = broker-a
   brokerId = 0
   deleteWhen = 04
   fileReservedTime = 48
   brokerRole = ASYNC_MASTER
   flushDiskType = ASYNC_FLUSH
   aclEnable=true
   enableLmq=true
   enableMultiDispatch=true
   allin@allin:~/rocketmq/rocketmq/conf$ cat plain_acl.yml 
   
   globalWhiteRemoteAddresses:
     - 192.168.*.* 
   accounts:
     - accessKey: RocketMQ
       secretKey: 12345678
       whiteRemoteAddress:
       admin: false
       defaultTopicPerm: DENY
       defaultGroupPerm: SUB
       topicPerms:
         - topicA=DENY
         - topicB=PUB|SUB
         - topicC=SUB
       groupPerms:
         # the group should convert to retry topic
         - groupA=DENY
         - groupB=PUB|SUB
         - groupC=SUB
   
     - accessKey: rocketmq2
       secretKey: 12345678
       # if it is admin, it could access all resources
       admin: true
   ```
   
   望解答


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to