Created
November 3, 2020 21:10
-
-
Save jahio/98547278f1fc9caafa37bf6d14603712 to your computer and use it in GitHub Desktop.
Start RocketMQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
export NAMESRV_ADDR="localhost:9876" | |
export ROCKETMQ_HOME="/Users/jah/Applications/rocketmq" | |
ORIGINAL_DIR=$(pwd) | |
cd $ROCKETMQ_HOME | |
# Purge nohup.out so we can have a fresh log for each session | |
if [[ -f nohup.out ]] | |
then | |
rm nohup.out | |
fi | |
nohup bin/mqnamesrv & | |
nohup bin/mqbroker -n localhost:9876 & | |
cd $ORIGINAL_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment