赞
踩
cd Downloads
mv rocketmq-all-4.3.2-bin-release.zip ../devEnv
cd ../devEnv
unzip rocketmq-all-4.3.2-bin-release.zip
mv rocketmq-all-4.3.2-bin-release rocketmq-4.3.2
cd rocketmq-4.3.2
cd bin
vi runbroker.sh
vi runserver.sh
cd ../
mkdir logs
cd logs
touch namesrv.log
touch broker.log
cd ../../
chmod -R u+x rocketmq-4.3.2
cd ~
vi .zshrc
#RocketMQ环境配置
export ROCKETMQ_HOME=/Users/mxz/devEnv/rocketmq-4.3.2
export PATH=${ROCKETMQ_HOME}/bin:$PATH
alias startRocketMQNamesrv='nohup ${ROCKETMQ_HOME}/bin/mqnamesrv > ${ROCKETMQ_HOME}/logs/namesrv.log &'
alias startRocketMQBroker='nohup ${ROCKETMQ_HOME}/bin/mqbroker -n localhost:9876 > ${ROCKETMQ_HOME}/logs/broker.log &'
alias stopRocketMQNamesrv='sh ${ROCKETMQ_HOME}/bin/mqshutdown namesrv'
alias stopRocketMQBroker='sh ${ROCKETMQ_HOME}/bin/mqshutdown broker'
cd /Users/mxz/devEnv/rocketmq-4.3.2/bin
sh mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t pushMessage
sh mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t xmppMessage
sh mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t userStatusMessage
sh mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t HWPushMessage
sh mqadmin updateTopic -n localhost:9876 -c DefaultCluster -t fullPushMessage
echo `sh mqadmin topicList -n localhost:9876`
alias startRocketMQDashboard='nohup java -jar /Users/xianzhemao/devEnv/rocketmq-dashboard-1.0.1-SNAPSHOT.jar &'
source .zshrc
startRocketMQDashboard
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。