參考
從事成都西云數(shù)據(jù)中心,服務(wù)器租用,云主機(jī),雅安服務(wù)器托管,域名注冊,CDN,網(wǎng)絡(luò)代維等服務(wù)。
http://www.linuxidc.com/Linux/2015-10/124112.htm
192.168.1.201
vi /usr/local/tomcat/webapps/appServer/WEB-INF/classes/properties/rocketMQ.properties
mq.host=192.168.1.188
mq.port=9876
查看到MQ服務(wù)器在1.188上。
然后Xshell到1.188上,執(zhí)行
cd ../bin/ nohup sh mqnamesrv >/var/log/ns.log & nohup sh mqbroker -c ../conf/2m-noslave/broker-a.properties > /var/log/mq.log 2>&1 &
或
sh mqnamesrv sh mqbroker -c ../conf/2m-noslave/broker-a.properties
修改./startdeploy.sh文件,自動修改rocketMQ.properties文件
cp rocketMQ.properties rocketMQ.properties.bak
sed -i -e "s/mq.host=192.168.1.125/mq.host=192.168.1.188/g" /root/properties/rocketMQ.properties