github: https://github.com/apache/rocketmq-externals
解壓后,直接用idea打開rocketmq-console項目。
修改配置:
刪除pom.xml中的:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.17</version> <executions> <execution> <id>validate</id> <phase>validate</phase> <configuration> <excludes>src/main/resources</excludes> <configLocation>style/rmq_checkstyle.xml</configLocation> <encoding>UTF-8</encoding> <consoleOutput>true</consoleOutput> <failsOnError>true</failsOnError> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin>
然后點擊package。
然后扔到mq服務器上,運行相應的jar。
出錯:
ERROR Can not found the file users.properties in Spring Boot jar
Can not found file users.properties in Spring Boot jar or /tmp/rocketmq-console/data, stop the console starting
這個是因為需要在rocketmq.config.dataPath配置的目錄下新建一個users.properties文件即可。