This commit is contained in:
spiritlhl
2023-10-19 05:10:47 +00:00
parent 941e68de08
commit 0e910d6cb2
2 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ curl -L https://raw.githubusercontent.com/spiritLHLS/lxd/main/scripts/buildone.s
### How it's used
```
. /buildone.sh Chick name Memory size Hard disk size SSH port Extranet start port Extranet stop port Download speed Upload speed Whether IPV6 is enabled (Y or N) System (leave blank for debian11)
. /buildone.sh name Cpu_num Memory_size Hard_disk_size SSH_port Extranet_start_port Extranet_stop_port Download_speed Upload_speed Whether_IPV6_is_enabled(Y or N) System(leave blank for debian11)
```
Memory size is calculated in MB, hard disk size is calculated in GB, download speed upload speed is calculated in Mbit, whether to enable IPV6 does not have to fill in Y or N, no this parameter can also be left blank default does not enable IPV6
@@ -60,7 +60,7 @@ Here is the information about the example chick that is being raised:
| Operating System | Debian 11 |
```
./buildone.sh test 256 2 20001 20002 20025 500 500 N
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N
```
If you need to see the information, run

View File

@@ -25,10 +25,10 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/mai
### 使用方法
```
./buildone.sh 服务器名称 内存大小 硬盘大小 SSH端口 外网起端口 外网止端口 下载速度 上传速度 是否启用IPV6(Y or N) 系统(留空则为debian11)
./buildone.sh 服务器名称 CPU核数 内存大小 硬盘大小 SSH端口 外网起端口 外网止端口 下载速度 上传速度 是否启用IPV6(Y or N) 系统(留空则为debian11)
```
内存大小以MB计算硬盘大小以GB计算下载速度上传速度以Mbit计算是否启用IPV6不一定要填Y或者N没有这个参数也行留空默认不开启IPV6
CPU核数需要小于或等于宿主机的核数内存大小以MB计算硬盘大小以GB计算下载速度上传速度以Mbit计算是否启用IPV6不一定要填Y或者N没有这个参数也行留空默认不开启IPV6
如果```外网起端口```和```外网止端口```都设置为0则不做区间外网端口映射了只映射基础的SSH端口注意```不能为空```不进行映射需要设置为0
@@ -67,7 +67,7 @@ curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/lxd/mai
```
./buildone.sh test 256 2 20001 20002 20025 500 500 N
./buildone.sh test 1 256 2 20001 20002 20025 500 500 N
```
需要查看信息则执行