9

在windows上启动rocketmq

 3 years ago
source link: https://blog.csdn.net/KimmKing/article/details/72832774
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

在windows上启动rocketmq

kimmking 2017-06-01 16:50:15 3967
需要cygwin或安装git时带的mingw。
其他:git、jdk1.8、mvn即可。
2、把jdk1.8复制到一个没有空格的路径,设置JAVA_HOME
3、mvn -Prelease-all -DskipTests clean install assembly:assembly -U
4、cd incubator-rocketmq\target\apache-rocketmq-all
5、降低runserver.sh与runbroker.sh、tools.sh中的内存配置,删掉perm与numactl命令:
JAVA_OPT="${JAVA_OPT} -server -Xms64m -Xmx256m -Xmn64m"
6、启动name-server:sh bin/mqnamesrv
7、启动broker:sh bin/mqbroker -n localhost:9876
8、set NAMESRV_ADDR=localhost:9876
9、tools.sh中:JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/lib"
10、生产消息:sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
11、消费消息:sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK