In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Source code of this article: GitHub click here | | GitEE click here |
I. Environmental construction
Environment version
Centos7jdk1.8 has set up rocketmq4.31 and downloaded the installation package
Web site
Https://www.apache.org/dyn/closer.cgi?path=rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip# We suggest the following mirror site for your download: officially recommended download address: http://mirrors.tuna.tsinghua.edu.cn/apache/rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip2, Upload file [root@localhost mysoft] # pwd/usr/local/mysoft [root@localhost mysoft] # unzip rocketmq-all-4.3.2-bin-release.zip [root@localhost mysoft] # mv rocketmq-all-4.3.2-bin-release rocket4.3 [root@localhost mysoft] # rm-f rocketmq-all-4.3.2-bin-release.zip3, and modify relevant configuration
The default configuration of rocketmq is extremely memory-intensive and needs to be modified.
1) modify runserver.sh configuration
Comment out the original and add a new configuration
[root@localhost bin] # vim runserver.sh#JAVA_OPT= "${JAVA_OPT}-server-Xms4g-Xmx4g-Xmn2g-XX:MetaspaceSize=128m-XX:MaxMetaspaceSize=320m" JAVA_OPT= "${JAVA_OPT}-server-Xms256m-Xmx256m-Xmn512m-XX:MetaspaceSize=128m-XX:MaxMetaspaceSize=320m"
2) modify runbroker.sh configuration
Comment out the original and add a new configuration
[root@localhost bin] # vim runbroker.sh#JAVA_OPT= "${JAVA_OPT}-server-Xms8g-Xmx8g-Xmn4g" JAVA_OPT= "${JAVA_OPT}-server-Xms256m-Xmx256m-Xmn128m"
3) modify tools.sh configuration
Comment out the original and add a new configuration
[root@localhost bin] # vim tools.sh#JAVA_OPT= "${JAVA_OPT}-server-Xms1g-Xmx1g-Xmn256m-XX:PermSize=128m-XX:MaxPermSize=128m" JAVA_OPT= "${JAVA_OPT}-server-Xms256m-Xmx256m-Xmn256m-XX:PermSize=128m-XX:MaxPermSize=128m" 4. Start the service
To start in order
Nohup sh / usr/local/mysoft/rocket4.3/bin/mqnamesrv# designated port nohup sh / usr/local/mysoft/rocket4.3/bin/mqbroker-n localhost:9876 II, monitor console build 1, git package download configuration (Win10 system) address: after https://github.com/apache/rocketmq-externals.git download is complete, enter the rocketmq-externals\ rocketmq-console\ src\ main\ resources folder Open application.properties to modify the configuration as follows: server.port=8089rocketmq.config.namesrvAddr=192.168.72.129:98762, execute the packaging operation (Win10 system) into the following directory, open the command line rocketmq-externals\ rocketmq-console to execute the packaging command mvn clean package-Dmaven.test.skip=true compilation. Rocketmq-console-ng-1.0.0.jar3, upload jar package to Linux service [root@localhost myjar] # pwd/usr/local/myjar [root@localhost myjar] # ll-rw-r--r--. 1 root root 33231510 May 16 11:11 rocketmq-console-ng-1.0.0.jar4, launch monitoring console [root@localhost myjar] # java-jar rocketmq-console-ng-1.0.0.jar5, test installation results
Browser access
Http://192.168.72.129:8089
Source code address GitHub address https://github.com/cicadasmile/linux-system-baseGitEE address https://gitee.com/cicadasmile/linux-system-base
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.