Debian12安装ZeroTier
·
李光春
使用 官方 一键脚本 https://www.zerotier.com/download/#entry-5
curl -s https://install.zerotier.com | sudo bash
使用 官方
echo 'deb [signed-by=/usr/share/keyrings/zerotier-debian-package-key.gpg] http://download.zerotier.com/debian/bookworm bookworm main' | tee /etc/apt/sources.list.d/zerotier.list
使用 CF 加速
echo 'deb [signed-by=/usr/share/keyrings/zerotier-debian-package-key.gpg] https://asw-mirror.dtapp.top/zerotier/debian/bookworm bookworm main' | tee /etc/apt/sources.list.d/zerotier.list
检查是否使用了加速
cat /etc/apt/sources.list.d/zerotier.list
更新
apt update
apt install zerotier-one
卸载
systemctl stop zerotier-one
apt remove zerotier-one
apt purge zerotier-one
查看信息
zerotier-cli info
查看状态
zerotier-cli status
查看全部设备
zerotier-cli listpeers
zerotier-cli peers
查看全部网络
zerotier-cli listnetworks
加入网络
zerotier-cli join <NetworkID>
离开网络
zerotier-cli leave <NetworkID>
查看全部moon
zerotier-cli listmoons
加入moon
zerotier-cli orbit <WorldID> <WorldID>
离开moon
zerotier-cli deorbit <WorldID>
禁用 (停止服务和禁自启)
systemctl stop zerotier-one.service && systemctl disable zerotier-one.service
恢复 (启动服务和自启)
systemctl start zerotier-one.service && systemctl enable zerotier-one.service