Skip to content

Commit 025efa7

Browse files
authored
Revise LXD installation documentation
Updated LXD installation guide with additional instructions and clarifications.
1 parent 817f158 commit 025efa7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/guide/lxd/lxd_install.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ sudo snap install lxdmosaic
109109

110110
不推荐,只是为了一些奇葩环境一键脚本跑不动的时候进行安装,或则你想要了解最基础的LXD安装流程。
111111

112-
#### 关闭防火墙
112+
### 关闭防火墙
113113

114114
```bash
115115
apt update
116116
apt install curl wget sudo dos2unix ufw jq -y
117117
ufw disable
118118
```
119119

120-
#### 开设虚拟内存SWAP
120+
### 开设虚拟内存SWAP
121121

122122
内存看你开多少服务器,这里如果要开8个,换算需要2G内存,实际内存如果是512MB内存,还需要开1.5G,保守点开2G虚拟内存即可
123123

@@ -135,7 +135,7 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/lxd/main/scripts/swap.sh
135135
curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/lxd/main/scripts/swap.sh -o swap.sh && chmod +x swap.sh && bash swap.sh
136136
```
137137

138-
#### 安装LXD
138+
### 安装LXD
139139

140140
实际swap开的虚拟内存应该是实际内存的2倍,也就是开1G是合理的,上面我描述的情况属于超开了
141141

@@ -181,3 +181,4 @@ export PATH=$PATH:/snap/bin
181181
连接后再测试lxc命令是否有报错找不到
182182

183183

184+

0 commit comments

Comments
 (0)