rocketmq the messaging middleware is a maven java project, and then compile it and java project we deploy the same,
The only difference is: ordinary java project compile deploy packaged locally
And he can: After jdk, maven, etc. environment, linux download configuration relies on jar, compile, run operations carried out in the target folder
1. In the official website to download rocketmq: http://rocketmq.apache.org/docs/quick-start/
Abashiri pressing honest official, there is no problem!
2.jdk will be equipped with its own bar, can not say here
3. Configure maven:
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar -zxvf maven- Apache 3.3. 9-bin. tar .gz etc. apache-maven- 3.3. 9 stomach
vim /etc/profile
M2_HOME=/root/maven
export PATH=${M2_HOME}/bin:${PATH}
source / etc / profile
Official website requirement is 3.2, you can change the above 3.3.9 3.2.5
4. Set in the configuration file
export NAMESRV_ADDR=localhost:9876
5. Press a step by step to the official website , at startup broker, get up, and asked the degree of your mother, said: the reason is the lack of memory
scheme:
Use vim xxx.sh command JVM parameters modified:
the first JAVA_OPT runbroker.sh into JAVA_OPT = "$ {JAVA_OPT} -server -Xms256m -Xmx256m -Xmn128m"
the first JAVA_OPT into runserver.sh JAVA_OPT = "$ {JAVA_OPT} -server -Xms128m -Xmx256m -Xmn256m -XX: MetaspaceSize = 128m -XX: MaxMetaspaceSize = 320m"