rocketmq单机版快速安装

  sre

5ff2ad3b67d6f681.jpg_fo742.jpg

下载

下载RocketMQ:http://rocketmq.apache.org/release_notes/
解压到目录:/usr/local/rocketmq

修改内存

先改rocketmq/bin/runserver.sh,我这里改为如下:

JAVA_OPT=“${JAVA_OPT} -server -Xms256m -Xmx512m -Xmn256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m”

接下来改rocketmq/bin/runbroker.sh,如下:

JAVA_OPT=“${JAVA_OPT} -server -Xms256m -Xmx512m -Xmn256m”

修改ip

修改rocketmq/conf/broker.conf配置,增加如下配置项:

namesrvAddr=172.16.0.3:9876
brokerIP1=172.16.0.3
#10.252.116.3是外网访问的IP

启动

cd /data
setsid rocketmq/bin/mqnamesrv
setsid rocketmq/bin/mqbroker -n 172.16.0.3:9876 -c rocketmq/conf/broker.conf

LEAVE A COMMENT

Captcha Code