安装:
1 |
curl <span class="token operator">-</span>s https<span class="token punctuation">:</span><span class="token comment">//install.zerotier.com/ | sudo bash</span> |
如果报错,使用一下方法
使用浏览器下载 https://install.zerotier.com/
文件重命名为 zero, 上传到 linux
1 2 |
chmod <span class="token number">775</span> zero <span class="token punctuation">.</span><span class="token operator">/</span>zero |
加入网络:
1 |
sudo zerotier<span class="token operator">-</span>cli join NetworkID |
查看网络信息:
状态查看
1 2 3 |
<span class="token shell-comment comment"># zerotier-cli listnetworks</span> <span class="token shell-comment comment"># zerotier-cli -v</span> <span class="token shell-comment comment"># zerotier-cli -h</span> |
查看是否在线
1 |
<span class="token shell-comment comment"># zerotier-cli info</span> |
重启服务
1 |
<span class="token shell-comment comment"># systemctl restart zerotier-one</span> |
卸载
1 |
rpm <span class="token operator">-</span>qa<span class="token operator">|</span>grep zerotier |
查询到结果 zerotier-one-1.2.12-1.el7.centos.x86_64
执行命令
1 |
rpm <span class="token operator">-</span>e zerotier<span class="token operator">-</span>one<span class="token number">-1.2</span><span class="token punctuation">.</span><span class="token number">12</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">.</span>el7<span class="token punctuation">.</span>centos<span class="token punctuation">.</span>x86_64 |