标签:style qname 说明 color ble java blog amp 常用命令
1.安装测试RecketMq
https://www.cnblogs.com/fly-piglet/p/7594488.html
发行说明 - Apache RocketMQ - 版本4.2.0
1>启动mqnamesrv服务:nohup sh bin/mqnamesrv & 查看日志:tailf ~/logs/rocketmqlogs/namesrv.log
2>启动broker服务:nohup sh bin/mqbroker & 查看日志:tailf ~/logs/rocketmqlogs/broker.log
3>若想通过外网连接到服务器,需要修改文件broker.conf文件新增两行:
namesrvAddr=111.230.209.233:9876
brokerIP1=111.230.209.233
IP为服务器外网IP
4>使用nohup sh bin/mqbroker -c conf/broker.conf autoCreateTopicEnable=true & 命令启动broker 即可
1>关闭namesrv服务:sh bin/mqshutdown namesrv
2>关闭broker服务:sh bin/mqshutdown broker
修改bin下的
runbroker.sh
JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g -Xmn1024m"
runserver.sh
JAVA_OPT="${JAVA_OPT} -server -Xms2g -Xmx2g -Xmn1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m"
标签:style qname 说明 color ble java blog amp 常用命令
原文地址:https://www.cnblogs.com/virtulreal/p/9749814.html