Skip to content

Instantly share code, notes, and snippets.

@jahio
Created November 3, 2020 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jahio/98547278f1fc9caafa37bf6d14603712 to your computer and use it in GitHub Desktop.
Save jahio/98547278f1fc9caafa37bf6d14603712 to your computer and use it in GitHub Desktop.
Start RocketMQ
#!/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