Skip to content

Commit d24d492

Browse files
authored
Problem with modifying system configuration page (#464)
1 parent 9d6e46f commit d24d492

6 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/UserGuide/Master/Tree/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ systemctl start sshd # Enable port 22
150150

151151
### Other Configuration
152152

153-
1. Disable the system swap memory
153+
1. Reduce the system swap priority to the lowest level
154154

155155
```Bash
156156
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -159,9 +159,10 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
159159
swapoff -a && swapon -a
160160
# Make the configuration take effect without restarting.
161161
sysctl -p
162-
# Check memory allocation, expecting swap to be 0
162+
# Swap's used memory has become 0
163163
free -m
164164
```
165+
165166
2. Set the maximum number of open files to 65535 to avoid the error of "too many open files".
166167

167168
```Bash

src/UserGuide/V1.3.0-2/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ systemctl start sshd # Enable port 22
150150

151151
### Other Configuration
152152

153-
1. Disable the system swap memory
153+
1. Reduce the system swap priority to the lowest level
154154

155155
```Bash
156156
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -159,9 +159,10 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
159159
swapoff -a && swapon -a
160160
# Make the configuration take effect without restarting.
161161
sysctl -p
162-
# Check memory allocation, expecting swap to be 0
162+
# Swap's used memory has become 0
163163
free -m
164164
```
165+
165166
2. Set the maximum number of open files to 65535 to avoid the error of "too many open files".
166167

167168
```Bash

src/UserGuide/latest/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ systemctl start sshd # Enable port 22
150150

151151
### Other Configuration
152152

153-
1. Disable the system swap memory
153+
1. Reduce the system swap priority to the lowest level
154154

155155
```Bash
156156
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -159,7 +159,7 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
159159
swapoff -a && swapon -a
160160
# Make the configuration take effect without restarting.
161161
sysctl -p
162-
# Check memory allocation, expecting swap to be 0
162+
# Swap's used memory has become 0
163163
free -m
164164
```
165165
2. Set the maximum number of open files to 65535 to avoid the error of "too many open files".

src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ systemctl start sshd #启用22号端口
162162

163163
### 其他配置
164164

165-
1. 关闭系统 swap 内存
165+
1. 将系统 swap 优先级降至最低
166166

167167
```Bash
168168
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -171,7 +171,7 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
171171
swapoff -a && swapon -a
172172
# 在不重启的情况下使配置生效。
173173
sysctl -p
174-
# 检查内存分配,预期 swap 为 0
174+
# swap的已使用内存变为0
175175
free -m
176176
```
177177

src/zh/UserGuide/V1.3.0-2/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ systemctl start sshd #启用22号端口
162162

163163
### 其他配置
164164

165-
1. 关闭系统 swap 内存
165+
1. 将系统 swap 优先级降至最低
166166

167167
```Bash
168168
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -171,7 +171,7 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
171171
swapoff -a && swapon -a
172172
# 在不重启的情况下使配置生效。
173173
sysctl -p
174-
# 检查内存分配,预期 swap 为 0
174+
# swap的已使用内存变为0
175175
free -m
176176
```
177177

src/zh/UserGuide/latest/Deployment-and-Maintenance/Environment-Requirements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ systemctl start sshd #启用22号端口
162162

163163
### 其他配置
164164

165-
1. 关闭系统 swap 内存
165+
1. 将系统 swap 优先级降至最低
166166

167167
```Bash
168168
echo "vm.swappiness = 0">> /etc/sysctl.conf
@@ -171,7 +171,7 @@ echo "vm.swappiness = 0">> /etc/sysctl.conf
171171
swapoff -a && swapon -a
172172
# 在不重启的情况下使配置生效。
173173
sysctl -p
174-
# 检查内存分配,预期 swap 为 0
174+
# swap的已使用内存变为0
175175
free -m
176176
```
177177

0 commit comments

Comments
 (0)