rocketmq Environment construction and configuration :

One .   Build three main clusters , Environmental Science :centos-64 7.4 + RocketMQ-4.3.2

Master01: 192.168.102.68

Master02: 192.168.102.69

Master03: 192.168.102.70

To configure hosts analysis , And at the same time to ensure that the three machines are interconnected :

# vim  /etc/hosts

192.168.102.68  rocket-nameserver-01

192.168.102.69  rocket-nameserver-02

192.168.102.70  rocket-nameserver-03

Two . Download and install

http://mirrors.shu.edu.cn/apache/rocketmq/4.3.2/rocketmq-all-4.3.2-bin-release.zip

  1. Unzip and put it in the specified directory , The catalog can be customized :

# unzip rocketmq-all-4.3.2-bin-release

# mv rocketmq-all-4.3.2-bin-release  /opt/rocketmq432

# cd /opt/rocketmq432

2. stay rocketmq432 Create the required folder

#mkdir store

#mkdir store/commitlog

#mkidr store/consumequeue

#mkdir store/index

  1. Modify the configuration file , All three machines need to be configured separately :

# /opt/rocketmq432/conf/2m-noslave

#pwd

# ls

broker-a.properties  broker-b.properties  broker-c.properties

To configure broker-a.properties

broker-b.properties and broker-c.properties It's the same with our configuration , The only difference is

 

brokerName=broker-b and brokerName=broker-c

 

Go to /opt/rocketmq432/bin Execute under directory :

 

start-up a:

1. nohup sh mqnamesrv &

 

2. nohup sh mqbroker -c /opt/rocketmq432/conf/2m-noslave/broker-a.properties autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &

 

 

 

start-up b:

1. nohup sh mqnamesrv &

 

2. nohup sh mqbroker -c /opt/rocketmq432/conf/2m-noslave/broker-b.properties autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &

 

start-up c:

 

1. nohup sh mqnamesrv &

 

2. nohup sh mqbroker -c /opt/rocketmq432/conf/2m-noslave/broker-c.properties autoCreateTopicEnable=true >/tmp/logs/mq.log 2>&1 &

 

 

 

 

Out of Service :

Execute first : sh mqshutdown broker

 

Re execution : sh mqshutdown namesrv

 

 

 

Message queue sample test import :

 

export NAMESRV_ADDR=localhost:9876

sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer

 

sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer

You can also install  RockeyMq-console Yes MQ Check the status of :

rocketmq More related articles on cluster environment construction and configuration

  1. RocketMQ A third :RocketMQ Cluster environment construction

    1. Preliminary understanding Producer/Consumer Group In the installation RocketMQ Before we understand Group Concept , stay RocketMQ in Group It's important . adopt Group Mechanism , Give Way RocketMQ natural ...

  2. hadoop Installation and configuration of cluster environment hadoop colony

    In the installation hadoop The cluster before , It needs to be done first zookeeper Installation , Please refer to hadoop The construction of cluster environment zookeeper Installation and deployment of cluster 1 take hadoop Extract the installation package to /itcast/  ( If you don't have this catalog ...

  3. Hadoop+Spark: Cluster environment construction

    Environmental preparation : Under the virtual machine , All three Linux ubuntu 14.04 server x64 System ( Download address :http://releases.ubuntu.com/14.04.2/ubuntu-14.0 ...

  4. Project advancement And Cluster environment construction ( 3、 ... and ) Multiple management nodes MySQL colony

    Last blog project advanced And Cluster environment construction ( Two )MySQL In the cluster , We built a foundation for MySQL colony , Let's continue with this blog MySQL Cluster related content , At the same time, it puts forward a solution to the problem left over in the previous article . 1. Single management node ...

  5. Spark 1.6.1 Build a distributed cluster environment

    One . Software preparation scala-2.11.8.tgz spark-1.6.1-bin-hadoop2.6.tgz Two .Scala install 1.master machine (1) download  scala-2.11.8.tgz, ...

  6. hadoop The construction of cluster environment zookeeper Installation and deployment of cluster

    About hadoop There are some preparatory work to be done for cluster construction , Please refer to hadoop The preparatory work of building cluster environment ( I successfully follow this step to deploy successfully , It has been verified in practice , This method is feasible ) One . install zookeeper 1 take zookeeper ...

  7. hadoop The preparatory work of building cluster environment

    Be sure to pay attention to hadoop and linux The number of digits in the system must be the same , That is to say, if hadoop yes 32 Bit ,linux The system must also be installed 32 Bit . preparation : 1 First, in the VMware To establish 6 Virtual machines ( Configure the default ). This is a ...

  8. Ningx Cluster environment construction

    Ningx Cluster environment construction Nginx What is it? ? Nginx ("engine x") yes ⼀ individual ⾼ The performance of the HTTP and Reverse proxy The server , It's also ⼀ individual IMAP/ POP3/SMTP Agency service ...

  9. hadoop2 Cluster environment construction

    After looking up a lot of information , I found that there is no article about hadoop2 Cluster environment to build the detailed steps of the article . therefore , I want to share what I know with you , It's convenient for everyone to communicate . Here is the outline of this article : 1. stay windows7 Next, install the virtual machine 2 ...

Random recommendation

  1. Html Space character code :

    Html Space character code :   by html Space character code , from “&+n+b+s+p+;” form , Remember the last semicolon and don't forget .

  2. var Usage of

    var The usage of is equivalent to defining a variable as local , If you use the var Define a variable , After the result of function execution , The variable disappears , If you don't use it inside a function var Statement , Then the variable is global , You can also use the variable outside the function . var a ...

  3. Android Open source projects find --- Tool class dependency injection DI piece ( Continuous updating )

    Reduce... By dependency injection View. service . Resource simplification initialization , Event binding and so on 1. AndroidAnnotations(Code Diet) android Rapid development framework Project address :https://gith ...

  4. C# Delete a read-only file or folder ( solve File.Delete Can't delete file )

    quote : http://www.jb51.net/article/72181.htm   C# How to delete a read-only file : if (File.GetAttributes(FFName).ToString().I ...

  5. Cyclone IV FPGA Device notes

    LE( Logical unit ) Operation mode 1) Normal mode 2) arithmetic mode You can see that for Cy4 The difference between normal mode and arithmetic mode is that normal mode has a 4 Input LUT No, cout Carry output , And there are two patterns of arithmetic 3 Input LUT Yes cout Carry output ...

  6. The official account of WeChat web Page keyboard bounce problem

    In the process of development today , There's a little problem , That's true ,  UI There is a button at the bottom of the design that is positioned relative to the screen , But this page also has an input box : Please see the figure below for details : That's what happens when we get the focus in the input box , The keyboard bounced up , Below ...

  7. POJ 2513 Colored Sticks ( Euler circuit + Dictionary tree + Union checking set )

    Colored Sticks Time Limit: 5000MS   Memory Limit: 128000K Total Submissions: 27097   Accepted: 7175 ...

  8. 2018 In the fall c The first assignment of basic language course

    1) The biggest difference between college and high school is that no one looks at you every day , The ideal teacher-student relationship in a university is ? How do you feel ? answer : Teacher Zou Xin mentioned many kinds of relationships , No, there are two kinds of outbound calls : Equality or inequality . An equal teacher-student relationship is no different from a stranger , But since ancient times, respecting teachers and respecting morality has been recognized by the world ...

  9. 【NLP_Stanford Classroom 】 Language model 3

    One . Produce sentences Method :Shannon Visualization Method The process : According to the probability , One at a time bigram, To produce a sentence such as : It's marked by the beginning of the sentence bigram Start , We have one first ( ...

  10. ( turn )C# Feature details

    Reprinted from :http://www.cnblogs.com/rohelm/archive/2012/04/19/2456088.html Features provide powerful methods , To connect metadata or declaration information with code ( Assembly . class ...