Installation and startup of RocketMQ5.1 console

download

download link

Change setting

src/main/resourcesModify application.ymlthe configuration file in it.
insert image description here

open port number

Server open ports: 9876, 10909, 10911, 10912. None of these four

firewall-cmd --zone=public --add-port=9876/tcp --permanent
firewall-cmd --zone=public --add-port=10909/tcp --permanent
firewall-cmd --zone=public --add-port=10911/tcp --permanent
firewall-cmd --zone=public --add-port=10912/tcp --permanent

restart firewall

systemctl restart firewalld

Finally, log in to the cloud server to open port numbers 9876, 10909, 10911, 10912

add dependencies

Add the following JAXB dependencies to the pom.xml of the decompression directory rocketmq-dashboard-master.

JAXB, Java Architechture for Xml Binding, Java technology for XML binding, is an industry standard and a technology that can generate Java classes based on XML Schema.

<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.3.0</version>
</dependency>
<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-impl</artifactId>
    <version>2.3.0</version>
</dependency>
<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-core</artifactId>
    <version>2.3.0</version>
</dependency>
<dependency>
    <groupId>javax.activation</groupId>
    <artifactId>activation</artifactId>
    <version>1.1.1</version>
</dependency>

compile rocketmq-dashboard

 mvn clean package -Dmaven.test.skip=true

run rocketmq-dashboard

Switch to the root directory of the installation and execute

 java -jar target/rocketmq-dashboard-1.0.1-SNAPSHOT.jar

Tip: Started App in x.xxx seconds (JVM running for x.xxx) started successfully

local access

http://localhost:7000/#/
insert image description here

Rocketmq cannot send message failure problem. connect to <public network ip:10911> failed


conf/broker.conf file in the RocketMQ installation directory . Add two configurations at the bottom.
namesrvAddr=public network ip:9876
brokerIP1=public network ip

Guess you like

Origin blog.csdn.net/Java_Fly1/article/details/129353954