diff --git a/content/en/docs/Toolreference/faqs.md b/content/en/docs/Toolreference/faqs.md
index adbffbba4119ca962767028d978c408435221f98..bd6a5c1575c34f8c8531adc48eae99e01bbe6534 100644
--- a/content/en/docs/Toolreference/faqs.md
+++ b/content/en/docs/Toolreference/faqs.md
@@ -119,7 +119,7 @@
>gsql: FATAL: database "postgres" does not exist
>gsql -d postgres -U user1 -W gauss@789 -p 8000
>gsql: FATAL: Invalid username/password,login denied.
- >```
+ >```
- gsql: FATAL: sorry, too many clients already, active/non-active: 197/3.
@@ -181,8 +181,7 @@
Run the following command to view the number of session connections that have been used by USER1. 1 indicates the number of session connections that have been used by USER1.
SELECT COUNT(*) FROM V$SESSION WHERE USERNAME='user1';
- count
- -------
+ ###### count
1
(1 row)
|
@@ -212,16 +211,15 @@
Run the following command to view the number of session connections that have been used by all users:
SELECT COUNT(*) FROM V$SESSION;
-
- count
- -------
+
+ ###### count
10
(1 row)
|
-
+
- gsql: wait xxx.xxx.xxx.xxx:xxxx timeout expired
When **gsql** initiates a connection request to the database, a 5-minute timeout period is used. If the database cannot correctly authenticate the client request and client identity within this period, **gsql** will exit the connection process for the current session, and will report the above error.
diff --git a/content/en/docs/installation/establishing-mutual-trust-manually.md b/content/en/docs/installation/establishing-mutual-trust-manually.md
index f9390f613fad74417d8bc61be9b996e2960608e3..62546c1328b15df6dcca0b7a53b10d3b8dfb387b 100644
--- a/content/en/docs/installation/establishing-mutual-trust-manually.md
+++ b/content/en/docs/installation/establishing-mutual-trust-manually.md
@@ -42,7 +42,7 @@ During the openGauss installation, you need to perform operations such as runnin
1. Create the file for executing the mutual trust script, and add the IP addresses of all the hosts in the openGauss to the file.
```
- plat1:/opt/software/openGauss> vim hostfile
+ plat1:/opt/software/hostfile> vim hostfile
192.168.0.1
192.168.0.2
192.168.0.3
@@ -52,7 +52,7 @@ During the openGauss installation, you need to perform operations such as runnin
3. Execute the following script to establish mutual trust:
```
- plat1:/opt/software/openGauss/script# gs_sshexkey -f /opt/software/hostfile
+ plat1:/opt/software/openGauss/script# ./gs_sshexkey -f /opt/software/hostfile
```
The **/opt/software/hostfile** file contains a list of the hosts. The list provides the IP addresses of all the hosts among which mutual trust needs to be established.
@@ -104,13 +104,13 @@ The procedure of manually establishing mutual trust is as follows \(**plat1**,
2. Generate the licensed file.
```
- cat .ssh/id_rsa.pub >> .ssh/authorized_keys
+ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
```
The following is an example:
```
- plat1:~ # cat .ssh/id_rsa.pub >> .ssh/authorized_keys
+ plat1:~ # cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
```
2. Obtain the public keys of all the hosts among which mutual trust needs to be established, and write the public keys into the **known\_hosts** file on the local host. This step needs to be performed on the host where Step 1 is performed. You need to obtain the public keys of the **plat1**, **plat2**, and **plat3** hosts.
@@ -163,13 +163,13 @@ The procedure of manually establishing mutual trust is as follows \(**plat1**,
1. Send the **known\_hosts** file to host **plat2**. When **Password:** is displayed, enter the password for logging in to host **plat2**.
```
- scp -r .ssh plat2:~
+ scp -r ~/.ssh plat2:~
```
The following is an example:
```
- plat1:~ # scp -r .ssh plat2:~
+ plat1:~ # scp -r ~/.ssh plat2:~
Password:
authorized_keys 100% 796 0.8KB/s 00:00
id_rsa 100% 1675 1.6KB/s 00:00
@@ -180,13 +180,13 @@ The procedure of manually establishing mutual trust is as follows \(**plat1**,
2. Send the **known\_hosts** file to host **plat3**. When **Password:** is displayed, enter the password for logging in to host **plat3**.
```
- scp -r .ssh plat3:~
+ scp -r ~/.ssh plat3:~
```
The following is an example:
```
- plat1:~ # scp -r .ssh plat3:~
+ plat1:~ # scp -r ~/.ssh plat3:~
Password:
authorized_keys 100% 796 0.8KB/s 00:00
id_rsa 100% 1675 1.6KB/s 00:00
diff --git "a/content/zh/docs/installation/\346\211\213\345\267\245\345\273\272\347\253\213\344\272\222\344\277\241.md" "b/content/zh/docs/installation/\346\211\213\345\267\245\345\273\272\347\253\213\344\272\222\344\277\241.md"
index 7364cfeff59267baf41e30c04e906317dc43128a..8eea5df88dae08932e144450ff308889e8b7a7a8 100644
--- "a/content/zh/docs/installation/\346\211\213\345\267\245\345\273\272\347\253\213\344\272\222\344\277\241.md"
+++ "b/content/zh/docs/installation/\346\211\213\345\267\245\345\273\272\347\253\213\344\272\222\344\277\241.md"
@@ -42,7 +42,7 @@ openGauss在安装过程中,需要在openGauss中的主机间执行命令,
1. 创建一个执行互信脚本所需要的输入文本,并在此文件中添加openGauss中所有主机IP。
```
- plat1:/opt/software/openGauss> vim hostfile
+ plat1:/opt/software/hostfile> vim hostfile
192.168.0.1
192.168.0.2
192.168.0.3
@@ -52,7 +52,7 @@ openGauss在安装过程中,需要在openGauss中的主机间执行命令,
3. 执行下面脚本建立互信。
```
- plat1:/opt/software/openGauss/script# gs_sshexkey -f /opt/software/hostfile
+ plat1:/opt/software/openGauss/script# ./gs_sshexkey -f /opt/software/hostfile
```
/opt/software/hostfile为主机列表,列出所有需要建立互信机器的主机IP。
@@ -104,13 +104,13 @@ openGauss在安装过程中,需要在openGauss中的主机间执行命令,
2. 生成本机授权文件。
```
- cat .ssh/id_rsa.pub >> .ssh/authorized_keys
+ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
```
示例如下:
```
- plat1:~ # cat .ssh/id_rsa.pub >> .ssh/authorized_keys
+ plat1:~ # cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
```
2. 收集所有的待建互信主机的公钥,写入到本机的known\_hosts文件中。此步骤需要在步骤1执行的主机上执行。需要收集plat1、plat2、plat3三个主机的公钥。
@@ -163,13 +163,13 @@ openGauss在安装过程中,需要在openGauss中的主机间执行命令,
1、将互信文件分发到plat2上。Password输入拷贝目标主机的密码。
```
- scp -r .ssh plat2:~
+ scp -r ~/.ssh plat2:~
```
示例如下:
```
- plat1:~ # scp -r .ssh plat2:~
+ plat1:~ # scp -r ~/.ssh plat2:~
Password:
authorized_keys 100% 796 0.8KB/s 00:00
id_rsa 100% 1675 1.6KB/s 00:00
@@ -180,13 +180,13 @@ openGauss在安装过程中,需要在openGauss中的主机间执行命令,
2、将互信文件分发到plat3上。Password输入拷贝目标主机的密码。
```
- scp -r .ssh plat3:~
+ scp -r ~/.ssh plat3:~
```
示例如下:
```
- plat1:~ # scp -r .ssh plat3:~
+ plat1:~ # scp -r ~/.ssh plat3:~
Password:
authorized_keys 100% 796 0.8KB/s 00:00
id_rsa 100% 1675 1.6KB/s 00:00