Xuchengen / rocketmq-docker-build

RocketMQ Docker Build
34 stars 11 forks source link

xuchengen/rocketmq:5.1.3镜像里启动脚本有误,导致配置broker.conf不生效 #12

Open perfumescent opened 7 months ago

perfumescent commented 7 months ago

当前镜像里

[app@rocketmq ~]$ cat ${USER_HOME}/.run.sh
#!/bin/bash

# start mqnamesrv service
nohup $ROCKETMQ_HOME/bin/mqnamesrv > /dev/null 2>&1 &
echo "启动:mqnamesrv"

# start mqbroker service
nohup $ROCKETMQ_HOME/bin/mqbroker -n localhost:9876 > /dev/null 2>&1 &
echo "启动:mqbroker"

# start console service
cd $CONSOLE_HOME
nohup  java -jar rocketmq-console.jar > /dev/null 2>&1 &
echo "启动:console"
echo ""
echo "Console帐号以及密码"
echo "帐号:admin   密码:admin"
echo "帐号:normalt 密码:normal"

echo ''
echo ' _____            _        _     __  __  ____  '
echo '|  __ \          | |      | |   |  \/  |/ __ \ '
echo '| |__) |___   ___| | _____| |_  | \  / | |  | |'
echo '|  _  // _ \ / __| |/ / _ \ __| | |\/| | |  | |'
echo '| | \ \ (_) | (__|   <  __/ |_  | |  | | |__| |'
echo '|_|  \_\___/ \___|_|\_\___|\__| |_|  |_|\___\_\'
echo ''
echo "🚀版本:$ROCKETMQ_VERSION"
echo "🦄作者:徐承恩"
echo "📧邮箱:xuchengen@gmail.com"
echo "🐵github:https://github.com/Xuchengen/rocketmq-docker-build"
echo ""

# foreground process

启动broker命令应该为 nohup $ROCKETMQ_HOME/bin/mqbroker -n localhost:9876 -c $ROCKETMQ_HOME/conf/broker.conf > /dev/null 2>&1 &

haol666 commented 5 months ago

感谢,我测试了5.1.2和5.1.3 命令调整之前外网都无法发送消息,调整后问题解决。