Centos7 部署rocketmq
1.服务器先创建java环境
Centos7 安装JDK21、配置环境变量_centos7安装jdk21-CSDN博客
2.下载mq
下载的是5.1.4:wget https://dist.apache.org/repos/dist/release/rocketmq/5.1.4/rocketmq-all-5.1.4-bin-release.zip
下载后用unzip解压就行了
3.启动name server
nohup sh bin/mqnamesrv -n "你的ip地址:9876" &
4. 启动Broker
修改conf/broker.conf,加入:brokerIP1=你的ip地址
进入bin的上层目录执行代码
nohup sh bin/mqbroker -n localhost:9876 -c conf/broker.conf autoCreateTopicEnable=true &
5.安装dashboard
安装dashboard:
docker pull apacherocketmq/rocketmq-dashboard:latest
启动:docker run -d --name rocketmq-dashboard -e "JAVA_OPTS=-Drocketmq.namesrv.addr=59.153.165.90:9876" -p 8080:8080 -t apacherocketmq/rocketmq-dashboard:latest