Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify directory names and document names #663

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/00-introduction/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "基本概念",
"position": 1
"position": 0
}
2 changes: 1 addition & 1 deletion docs/01-quickstart/01quickstart.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 快速开始
# 本地部署 RocketMQ

这一节介绍如何快速部署一个单 Master RocketMQ 集群,并完成简单的消息收发。

Expand Down
2 changes: 1 addition & 1 deletion docs/01-quickstart/03quickstartWithDockercompose.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker-compose 部署 RocketMQ
# Docker Compose 部署 RocketMQ

这一节介绍如何使用Docker-compose快速部署一个单节点单副本 RocketMQ 服务,并完成简单的消息收发。

Expand Down
4 changes: 4 additions & 0 deletions docs/01-quickstart/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "快速开始",
"position": 1
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Quickstart
# Run RocketMQ locally

This section will introduce the method of quickly building and deploying a single-Master RocketMQ cluster to complete simple message sending and receiving.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker Deployment of RocketMQ
# Run RocketMQ in Docker

This section introduces how to quickly deploy a single-node, single-replica RocketMQ service using Docker and complete simple message sending and receiving.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker-compose Deployment of RocketMQ
# Run RocketMQ with Docker Compose

This section introduces how to quickly deploy a single-node, single-replica RocketMQ service using Docker-compose and complete simple message sending and receiving.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Quick Start
# Run RocketMQ locally

This section will describe steps to quickly deploy a RocketMQ cluster with a single node; Commands to send and receive messages to/from it are also included as proof of work.

Expand Down Expand Up @@ -164,13 +164,13 @@ We can also try to use the client sdk to send and receive messages, you can see
import org.apache.rocketmq.client.apis.consumer.PushConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PushConsumerExample {
private static final Logger logger = LoggerFactory.getLogger(PushConsumerExample.class);

private PushConsumerExample() {
}

public static void main(String[] args) throws ClientException, IOException, InterruptedException {
final ClientServiceProvider provider = ClientServiceProvider.loadService();
String endpoints = "localhost:8081";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker Deployment of RocketMQ
# Run RocketMQ in Docker

This section introduces how to quickly deploy a single-node, single-replica RocketMQ service using Docker and complete simple message sending and receiving.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker-compose Deployment of RocketMQ
# Run RocketMQ with Docker Compose

This section introduces how to quickly deploy a single-node, single-replica RocketMQ service using Docker-compose and complete simple message sending and receiving.

Expand Down Expand Up @@ -110,10 +110,10 @@ docker-compose -p rockermq_project up -d
import org.apache.rocketmq.client.apis.producer.SendReceipt;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProducerExample {
private static final Logger logger = LoggerFactory.getLogger(ProducerExample.class);

public static void main(String[] args) throws ClientException {
// Endpoint address, set to the Proxy address and port list, usually xxx:8080;xxx:8081
String endpoint = "localhost:8081";
Expand Down Expand Up @@ -149,7 +149,7 @@ docker-compose -p rockermq_project up -d
}
```
3. In the created Java project, create and run a program to subscribe to normal messages. Apache RocketMQ supports both [SimpleConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype) and [PushConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype) types of consumers. You can choose either method to subscribe to messages.

```java
import java.io.IOException;
import java.util.Collections;
Expand Down
12 changes: 6 additions & 6 deletions versioned_docs/version-5.0/02-quickStart/01quickstart.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 快速开始
# 本地部署 RocketMQ

这一节介绍如何快速部署一个单节点单副本 RocketMQ 服务,并完成简单的消息收发。

Expand Down Expand Up @@ -120,10 +120,10 @@ $ sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
import org.apache.rocketmq.client.apis.producer.SendReceipt;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProducerExample {
private static final Logger logger = LoggerFactory.getLogger(ProducerExample.class);

public static void main(String[] args) throws ClientException {
// 接入点地址,需要设置成Proxy的地址和端口列表,一般是xxx:8081;xxx:8081。
String endpoint = "localhost:8081";
Expand Down Expand Up @@ -174,13 +174,13 @@ $ sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
import org.apache.rocketmq.client.apis.consumer.PushConsumer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PushConsumerExample {
private static final Logger logger = LoggerFactory.getLogger(PushConsumerExample.class);

private PushConsumerExample() {
}

public static void main(String[] args) throws ClientException, IOException, InterruptedException {
final ClientServiceProvider provider = ClientServiceProvider.loadService();
// 接入点地址,需要设置成Proxy的地址和端口列表,一般是xxx:8081;xxx:8081。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Docker-compose 部署 RocketMQ
# Docker Compose 部署 RocketMQ

这一节介绍如何使用Docker-compose快速部署一个单节点单副本 RocketMQ 服务,并完成简单的消息收发。

Expand Down Expand Up @@ -108,10 +108,10 @@ docker-compose -p rockermq_project up -d
import org.apache.rocketmq.client.apis.producer.SendReceipt;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ProducerExample {
private static final Logger logger = LoggerFactory.getLogger(ProducerExample.class);

public static void main(String[] args) throws ClientException {
// 接入点地址,需要设置成Proxy的地址和端口列表,一般是xxx:8080;xxx:8081
String endpoint = "localhost:8081";
Expand Down
Loading