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 2023/02/28 16:13:05 UTC

[GitHub] [rocketmq] ShadowySpirits added a comment to the discussion: rocketmq broker会占用多个端口?

GitHub user ShadowySpirits added a comment to the discussion: rocketmq broker会占用多个端口?

> 在broker配置了listenPort=30911,启动后发现30909和30912都被rocketmq占用了,这是正常的吗?

30909 被占用是因为启动了 fastRemotingServer

https://github.com/apache/rocketmq/blob/88000dac212a0c721a99ca167132920ce0f45f1b/broker/src/main/java/org/apache/rocketmq/broker/BrokerController.java#L429-L435

30912 被占用是供 HA 使用

https://github.com/apache/rocketmq/blob/88000dac212a0c721a99ca167132920ce0f45f1b/container/src/main/java/org/apache/rocketmq/container/BrokerContainerStartup.java#L140

> 另外想问下mqshutdown broker能指定broker吗?

不能,mqshutdown 是通过 `ps` 来获取 broker pid 的

https://github.com/apache/rocketmq/blob/88000dac212a0c721a99ca167132920ce0f45f1b/distribution/bin/mqshutdown#L19-L30


GitHub link: https://github.com/apache/rocketmq/discussions/6208#discussioncomment-5152947

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@rocketmq.apache.org