RocketMQ has an open source project incubator-rocketmq-externals that extends it. There is a submodule in this project called "rocketmq-console", which is the management console project.
First pull incubator-rocketmq-externals to the local, because we need to compile, package and run rocketmq-console by ourselves.
Enter the rocketmq-console subdirectory through the command line, compile and package it through maven,
- mvn package
As shown below:
After the packaging is successful, the command line is shown as follows:
At this point, a jar package called rocketmq-console-ng-1.0.0.jar is generated in the rocketmq-console/target directory, as shown below:
Next, to run this jar package, we can run it directly through java -jar, but for convenience, I wrote the java -jar command into a script so that it can be run directly in the future.
I am in the windows environment, create a new rocketmq-console-ng.bat file (in the same directory as the rocketmq-console-ng-1.0.0.jar generated above), the content is as follows:
- @echo off
- java -jar rocketmq-console-ng-1.0.0.jar --server.port=12581 --rocketmq.config.namesrvAddr=10.89.0.64:9876;10.89.0.65:9876
- @pause
Note that two parameters need to be set here: --server.port is the port of the running web application, if not set, the default is 8080; --rocketmq.config.namesrvAddr is the RocketMQ naming service address, if not set, the default is "" ".
After setting, you can directly double-click to run rocketmq-console-ng.bat to start, as shown below:
After the startup is successful, we can access http://localhost:12581 through the browser to enter the console interface, as shown below:
The upper right corner can be switched to Chinese, OVER!
http://blog.csdn.net/jayjjb/article/details/72674738