Skip to content

Commit

Permalink
add namingserver.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ggbocoder committed Oct 24, 2024
1 parent 051bba5 commit ad505ec
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ You can choose to run the naming server in the compiler or after packaging it.
### Running the naming server in the compiler
Go to the namingserver directory, set the port number for the naming server in resources/application.yml, and start the naming server.

### Running the naming server after packaging
Execute the packaging command:
```shell
mvn clean install -U -Prelease-seata-namingserver
```
Set the naming server port number in the `conf/application.yml` file located in the `\\distribution\\target\\apache-seata-2.2.0-SNAPSHOT-incubating-bin\\seata-namingserver` directory.
For macOS or Linux, run:
### Running Naming Server
Download the Seata 2.2.0 binary package from the [link](https://seata.apache.org/unversioned/download/seata-server/) and unzip it. Then, enter the seata-namingserver directory.

In the conf/application.yml file, configure the port number for starting the naming server.

For Mac or Linux, run:

```shell
bin\\seata-namingserver.sh
bin/seata-namingserver.sh
```
For Windows, run:

```shell
bin\\seata-namingserver.bat
bin/seata-namingserver.bat
```

## Getting Started Quickly
The process to use the naming server as Seata's registration center is very simple and involves configuring both the client and server sides.

Expand Down Expand Up @@ -77,4 +77,6 @@ http://127.0.0.1:8081/naming/v1/changeGroup?clusterName=cluster2&namespace=publi

Afterward, once Seata-Server is started and the client configuration is complete, you can begin to experience Seata services.

Tips: Ensure that both the client and server are registered under the same namespace; otherwise, the service won't be found.
Tips:
- 1.Please ensure that the client and server are registered under the same namespace; otherwise, the service will not be found.
- 2.Note that the naming server is only allowed to be used in a private network; do not expose it to the public environment.
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,23 @@ You can choose to run the naming server in the compiler or after packaging it.
### Running the naming server in the compiler
Go to the namingserver directory, set the port number for the naming server in resources/application.yml, and start the naming server.

### Running the naming server after packaging
Execute the packaging command:
```shell
mvn clean install -U -Prelease-seata-namingserver
```
Set the naming server port number in the `conf/application.yml` file located in the `\\distribution\\target\\apache-seata-2.2.0-SNAPSHOT-incubating-bin\\seata-namingserver` directory.
For macOS or Linux, run:
### Running the naming server in the compiler
Go to the namingserver directory, set the port number for the naming server in resources/application.yml, and start the naming server.

### Running Naming Server
Download the Seata 2.2.0 binary package from the [link](https://seata.apache.org/unversioned/download/seata-server/) and unzip it. Then, enter the seata-namingserver directory.

In the conf/application.yml file, configure the port number for starting the naming server.

For Mac or Linux, run:

```shell
bin\\seata-namingserver.sh
bin/seata-namingserver.sh
```
For Windows, run:

```shell
bin\\seata-namingserver.bat
bin/seata-namingserver.bat
```
## Getting Started Quickly
The process to use the naming server as Seata's registration center is very simple and involves configuring both the client and server sides.
Expand Down Expand Up @@ -77,4 +79,6 @@ http://127.0.0.1:8081/naming/v1/changeGroup?clusterName=cluster2&namespace=publi

Afterward, once Seata-Server is started and the client configuration is complete, you can begin to experience Seata services.

Tips: Ensure that both the client and server are registered under the same namespace; otherwise, the service won't be found.
Tips:
- 1.Please ensure that the client and server are registered under the same namespace; otherwise, the service will not be found.
- 2.Note that the naming server is only allowed to be used in a private network; do not expose it to the public environment.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ Namingserver 是 Seata 原生的注册中心.

进入`namingsever`目录,在`resources/application.yml`下设置namingserver启动的端口号,启动namingserver

### 打包运行namingserver
### 运行namingserver

执行`mvn clean install -U -Prelease-seata-namingserver`打包命令
```shell
`mvn clean install -U -Prelease-seata-namingserver`
```
`\distribution\target\apache-seata-2.2.0-SNAPSHOT-incubating-bin\seata-namingserver`目录下的`conf/application.yml`中配置namingserver启动的端口号,
[链接](https://seata.apache.org/unversioned/download/seata-server/)下载namingserver的发行包)下载seata2.2.0的二进制压缩包,解压后进入seata-namingserver目录

目录下的conf/application.yml中配置namingserver启动的端口号,
mac或linux运行
``` shell
```shell
bin\seata-namingserver.sh
```
windows环境运行
``` shell
```shell
bin\seata-namingserver.bat
```

## 快速上手

Seata 使用 namingserver 作为注册中心的操作步骤非常简单,分为在client端的配置以及在server端的配置
Expand Down Expand Up @@ -82,4 +79,6 @@ http://127.0.0.1:8081/naming/v1/changeGroup?clusterName=cluster2&namespace=publi

随后,启动 Seata-Server 后,Client 配置完成后启动应用就可以正式体验 Seata 服务。

Tips:请确保client与server的注册处于同一个namespace,不然会找不到服务。
Tips:
- 1.请确保client与server的注册处于同一个namespace,不然会找不到服务。
- 2.注意namingserver只允许在内网使用,切勿暴露到公网环境
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ Namingserver 是 Seata 原生的注册中心.

进入`namingsever`目录,在`resources/application.yml`下设置namingserver启动的端口号,启动namingserver

### 打包运行namingserver
### 运行namingserver

执行`mvn clean install -U -Prelease-seata-namingserver`打包命令
```shell
`mvn clean install -U -Prelease-seata-namingserver`
```
`\distribution\target\apache-seata-2.2.0-SNAPSHOT-incubating-bin\seata-namingserver`目录下的`conf/application.yml`中配置namingserver启动的端口号,
[链接](https://seata.apache.org/unversioned/download/seata-server/)下载namingserver的发行包)下载seata2.2.0的二进制压缩包,解压后进入seata-namingserver目录

目录下的`conf/application.yml`中配置namingserver启动的端口号,
mac或linux运行
``` shell
bin\seata-namingserver.sh
Expand Down Expand Up @@ -82,4 +80,6 @@ http://127.0.0.1:8081/naming/v1/changeGroup?clusterName=cluster2&namespace=publi

随后,启动 Seata-Server 后,Client 配置完成后启动应用就可以正式体验 Seata 服务。

Tips:请确保client与server的注册处于同一个namespace,不然会找不到服务。
Tips:
- 1.请确保client与server的注册处于同一个namespace,不然会找不到服务。
- 2.注意namingserver只允许在内网使用,切勿暴露到公网环境

0 comments on commit ad505ec

Please sign in to comment.