Official website
GitHub
https://github.com/apache/rocketmq
Software required:
Directly use the latest source code to compile and install rocketmq
Go to github ( https://github.com/apache/rocketmq ) to download the source code
Upload to Linux server
Unzip the package
unzip rocketmq-master.zip
Enter the main directory and use maven (maven installation, you can set environment variables by yourself) to compile:
mvn -Prelease-all -DskipTests clean install -U
After maven compiles, find distribution->target->rocketmq-4.9.1-SNAPSHOT and move it to /usr/local/rocketmq4.9.1
Start nameserver
Execute in the bin directory:
./mqnamesrv
An error will be reported here:
solve:
vim runbroker.sh
Change JAVA_OPT to JAVA_OPT="${JAVA_OPT} -server -Xms512m -Xmx521m -Xmn128m"
Successful prompt content after modification:
Start broker
./mqbroker -n localhost:9876
Normal tips:
The entire compilation and installation of rocketmq is completed
The next article is to compile and install the console rocketmq-console.