From feb3e78eb0c99a6c592c74acc10b72ac3fe929f1 Mon Sep 17 00:00:00 2001 From: travelliu Date: Mon, 14 Feb 2022 11:04:26 +0800 Subject: [PATCH] fix: modify mogila --- README.md | 9 +++---- .../en/docs-mogdb/v2.1/quick-start/mogila.md | 25 ++++++++++--------- .../zh/docs-mogdb/v2.1/quick-start/mogila.md | 17 +++++++------ 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 351a0f31..b4ff1902 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -# MogDB 文档网站 v1.0 +# MogDB 文档网站 v2.1 ## 🧐 参考资料 -1. [GatsbyJS参考文档](https://www.gatsbyjs.cn/tutorial/part-six/#transformer-plugins) -2. [文档风格参考](https://docs.pingcap.com/zh/tidb/stable/overview) +- [GatsbyJS参考文档](https://www.gatsbyjs.cn/tutorial/part-six/#transformer-plugins) ## 🚀 快速开始 -node 版本 v12.22.1 +node 版本 v15.14.0 1. **安装依赖包** @@ -29,7 +28,7 @@ node 版本 v12.22.1 ```bash npm run build - # 使用rsync 同步到nginx 部署目录 + # 使用 rsync 同步到 nginx 部署目录 rsync -rltgoD --delete public/ /data/mogdb-docs ``` diff --git a/product/en/docs-mogdb/v2.1/quick-start/mogila.md b/product/en/docs-mogdb/v2.1/quick-start/mogila.md index ae9edfac..678da5ad 100644 --- a/product/en/docs-mogdb/v2.1/quick-start/mogila.md +++ b/product/en/docs-mogdb/v2.1/quick-start/mogila.md @@ -26,19 +26,19 @@ The image below shows an overview of the Mogila database tables and views. Here ## Use Mogila on MogDB Container Edition 1. On terminal pull the latest mogdb image: - + - amd - + ``` docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` - + - arm - + ``` docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_arm ``` - + 2. Run image: ``` @@ -53,10 +53,10 @@ The image below shows an overview of the Mogila database tables and views. Here gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + mogila=# \dt List of relations - Schema | Name | Type | Owner | Storage + Schema | Name | Type | Owner | Storage --------+---------------+-------+-------+---------------------------------- public | actor | table | mogdb | {orientation=row,compression=no} public | address | table | mogdb | {orientation=row,compression=no} @@ -74,7 +74,7 @@ The image below shows an overview of the Mogila database tables and views. Here public | staff | table | mogdb | {orientation=row,compression=no} public | store | table | mogdb | {orientation=row,compression=no} (15 rows) - + mogila=# ``` @@ -99,7 +99,7 @@ The image below shows an overview of the Mogila database tables and views. Here MogDB=#create user mogdb password 'Enmo@123'; CREATE ROLE MogDB=#\q - [omm@test ~]$ + [omm@test ~]$ ``` 3. [Download mogila](https://gitee.com/enmotech/mogila), and upload the files to the server and enter the directory where mogila files are located. @@ -133,10 +133,10 @@ The image below shows an overview of the Mogila database tables and views. Here gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + mogila=# \dt List of relations - Schema | Name | Type | Owner | Storage + Schema | Name | Type | Owner | Storage --------+---------------+-------+-------+---------------------------------- public | actor | table | mogdb | {orientation=row,compression=no} public | address | table | mogdb | {orientation=row,compression=no} @@ -154,8 +154,9 @@ The image below shows an overview of the Mogila database tables and views. Here public | staff | table | mogdb | {orientation=row,compression=no} public | store | table | mogdb | {orientation=row,compression=no} (15 rows) - + mogila=# + ```
diff --git a/product/zh/docs-mogdb/v2.1/quick-start/mogila.md b/product/zh/docs-mogdb/v2.1/quick-start/mogila.md index ac953957..62990570 100644 --- a/product/zh/docs-mogdb/v2.1/quick-start/mogila.md +++ b/product/zh/docs-mogdb/v2.1/quick-start/mogila.md @@ -31,7 +31,7 @@ Mogila适用于MogDB 2.1.0及更高版本。 ``` docker pull swr.cn-north-4.myhuaweicloud.com/mogdb/mogdb:2.1.0_amd ``` - + - arm ``` @@ -52,10 +52,10 @@ Mogila适用于MogDB 2.1.0及更高版本。 gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + mogila=# \dt List of relations - Schema | Name | Type | Owner | Storage + Schema | Name | Type | Owner | Storage --------+---------------+-------+-------+---------------------------------- public | actor | table | mogdb | {orientation=row,compression=no} public | address | table | mogdb | {orientation=row,compression=no} @@ -73,7 +73,7 @@ Mogila适用于MogDB 2.1.0及更高版本。 public | staff | table | mogdb | {orientation=row,compression=no} public | store | table | mogdb | {orientation=row,compression=no} (15 rows) - + mogila=# ``` @@ -98,7 +98,7 @@ Mogila适用于MogDB 2.1.0及更高版本。 MogDB=#create user mogdb password 'Enmo@123'; CREATE ROLE MogDB=#\q - [omm@test ~]$ + [omm@test ~]$ ``` 3. [下载mogila](https://gitee.com/enmotech/mogila),并上传至服务器中,进入mogila所在目录。 @@ -132,10 +132,10 @@ Mogila适用于MogDB 2.1.0及更高版本。 gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. - + mogila=# \dt List of relations - Schema | Name | Type | Owner | Storage + Schema | Name | Type | Owner | Storage --------+---------------+-------+-------+---------------------------------- public | actor | table | mogdb | {orientation=row,compression=no} public | address | table | mogdb | {orientation=row,compression=no} @@ -153,8 +153,9 @@ Mogila适用于MogDB 2.1.0及更高版本。 public | staff | table | mogdb | {orientation=row,compression=no} public | store | table | mogdb | {orientation=row,compression=no} (15 rows) - + mogila=# + ```
-- Gitee