You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/09/10 06:22:52 UTC

[GitHub] [rocketmq] odbozhou commented on a change in pull request #3336: Update RocketMQ_Example.md

odbozhou commented on a change in pull request #3336:
URL: https://github.com/apache/rocketmq/pull/3336#discussion_r705924685



##########
File path: docs/cn/RocketMQ_Example.md
##########
@@ -438,6 +438,7 @@ public class ScheduledMessageConsumer {
    public static void main(String[] args) throws Exception {
       // 实例化消费者
       DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("ExampleConsumer");
+      consumer.setNamesrvAddr("127.0.0.1:9876");

Review comment:
       NamesrvAddr is not necessary for the sample code, you can look at the official website sample ( https://rocketmq.apache.org/docs/quick-start/ ), export NAMESRV_ADDR=localhost:9876




-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org