rockerMq单机搭建
1、安装JDK
2、安装maven
3、下载安装包
wget http://mirror.bit.edu.cn/apache/rocketmq/4.4.0/rocketmq-all-4.4.0-source-release.zip
##4 没有unzip 先安装 yum install unzip
unzip rocketmq-all-4.4.0-source-release.zip
## 5、进入rockermq目录,编译
mvn -Prelease-all -DskipTests clean install -U
## 6、编译生成的mq目录ocketmq-all-4.4.0/distribution/target/apache-rocketmq
cd distribution/target/apache-rocketmq
## 7、启动nameserver
nohup sh bin/mqnamesrv &
##查看日志 tail -f nohup.out (结尾以The Name Server boot success. serializeType=JSON表示启动成功)
在这里我们可能看到这个错误:
OpenJDK 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
OpenJDK 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006ec8