1.进入官网发现以下语句,终端执行
curl -s https://install.zerotier.com | sudo bash
2.安装完成之后执行一下命令启动
-
sudo zerotier-cli join ID
3. 有错误
error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
查看openssl version 3.0.12
4.看到了这篇文章https://blog.csdn.net/weixin_52069830/article/details/132076941
5.经过网上的一顿操作最后在github中找到解决的办法,添加最新的地址
deb http://download.zerotier.com/debian/jammy jammy main #ZeroTier
6.解决问题sudo zerotier-cli join添加网路id
7.后面就是常规操作了
# 加入
zerotier-cli join <NETWORK ID>
# 离开
zerotier-cli leave <NETWORK ID>
# 查看计算机连接的网络列表
zerotier-cli listnetworks
# 查看已连接的对等方(如需要连接其它局域网设备,建议先执行此命令查看IP)
zerotier-cli listpeers
#启动
sudo systemctl start zerotier-one.service
#停止
sudo systemctl stop zerotier-one.service
#打开开机自启
systemctl enable zerotier-one.service
#关闭开机自启
systemctl disable zerotier-one.service