# 安装和使用

## 安装和使用

### With Docker

* 获取Docker镜像

```bash
mvn clean package -Dmaven.test.skip=true docker:build
```

or

```bash
docker pull styletang/rocketmq-console-ng
```

* 运行

```bash
docker run -e "JAVA_OPTS=-Drocketmq.namesrv.addr=127.0.0.1:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false" -p 8080:8080 -t styletang/rocketmq-console-ng
```

### Without Docker

require java 1.7

```bash
mvn spring-boot:run
```

or

```bash
mvn clean package -Dmaven.test.skip=true
java -jar target/rocketmq-console-ng-1.0.1.jar
```

**Tips**

* 如果下载包很慢，可以更改maven的镜像(maven's settings.xml)

  ```
  <mirrors>
      <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>        
      </mirror>
  </mirrors>
  ```
* 如果您使用rocketmq<3.5.8，请在启动rocketmq-console-ng时添加参数 `Dcom.rocketmq.sendMessageWithVIPChannel=false`（也可以在ops页面中更改）
* 在`resource/application.properties`中更改`rocketmq.config.namesrvAddr`。（也可以在ops页中更改）


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rocketmq-1.gitbook.io/rocketmq-connector/rocketmq-connect/rocketmq-console/an-zhuang-shi-yong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
