“rocketmq 5.0的broker监听端口还是通过listenPort来设置么?为什么我在配置文件中更改了端口号,在启动broker后,还是默认的10911啊?
root@test:/usr/local/rocketmq/rocketmq-all-5.0.0-source-release/distribution/target/rocketmq-5.0.0/rocketmq-5.0.0# sh bin/mqbroker -c /usr/local/rocketmq/rocketmq-all-5.0.0-source-release/distribution/ta rget/rocketmq-5.0.0/rocketmq-5.0.0/conf/2m-noslave/broker-a.properties –enable-proxy bin/mqbroker: 48: [[: not found The broker[test, 192.168.64.8:10911] boot success. serializeType=JSON and name server is localhost:9876″
可以看下启动的时候指定配置文件了没——此答案整理自钉群“群2-Apache RocketMQ 中国开发者钉钉群”
在RocketMQ中,可以通过broker.conf配置文件中指定listenPort配置项来指定Broker监听客户端请求的端口,如果不指定,默认监听10911端口。listenPort=10911