centos安装单机rocketmq

官网下载

curl -O http://tar.matosiki.site/zip/rocketmq-all-4.3.0-bin-release.zip
unzip rocketmq-all-4.3.0-bin-release.zip

mv rocketmq-all-4.3.0-bin-release rocketmq-all-4.3.0

vi /etc/profile
export NAMESRV_ADDR=0.0.0.0:9876

source /etc/profile

cd /opt/rocketmq-all-4.3.0/bin/

nohup sh mqnamesrv &

nohup sh mqbroker -n localhost:9876 &

清理缓存:

echo "" > /proc/sys/vm/drop_cache

查看日志

tail -f ~/logs/rocketmqlogs/namesrv.log

tail -f ~/logs/rocketmqlogs/broker.log

关闭服务

sh mqshutdown namesrv

sh mqshutdown broker
本文总阅读量