本文將通過Zerotier嘗試搭建nfs來給因爲沒錢硬盤空間不足的雲服務器提供後端存儲以滿足TPOT的安裝需求。
Zerotier部分
略
NFS部分
服務端
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| ~] ~]
Domain = madebug.net
~]
/home 10.9.8.167/32(rw,no_root_squash) <--- 雲服務器的zerotier ip,一碌柒
~] ~] ~] ~]
|
客戶端
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| ~ ~
10.9.8.166 storage1.madebug.net
~
Domain = madebug.net
~ ~ Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 4.1G 0 4.1G 0% /dev tmpfs tmpfs 824M 8.9M 815M 2% /run /dev/vda1 ext4 53G 2.5G 49G 5% / tmpfs tmpfs 4.2G 25k 4.2G 1% /dev/shm tmpfs tmpfs 5.3M 0 5.3M 0% /run/lock tmpfs tmpfs 4.2G 0 4.2G 0% /sys/fs/cgroup tmpfs tmpfs 824M 0 824M 0% /run/user/0 storage1.madebug.net:/home nfs4 169G 35M 169G 1% /data ~
storage1.madebug.net:/home /data nfs defaults 0 0
~
|
TPOT部分
設置好所需的代理。不知道怎麽設置的可以等我以後水一篇再補上。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| ~ deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main deb http://security.debian.org/debian-security buster/updates main deb-src http://security.debian.org/debian-security buster/updates main deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main ~ ~ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common ~ ~ "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release -cs) \ stable" ~ ~ ~ ~ ~ ~ ~
~
|
訪問 https://IP:64297/
結語