mirror of
https://github.com/xubiaolin/docker-zerotier-planet.git
synced 2025-01-22 20:58:14 -05:00
Merge pull request #21 from pescn/master
MacOS客户端教程补充及mkworld编译失败Bug的修复
This commit is contained in:
commit
e66d109846
@ -152,6 +152,15 @@ PS C:\Windows\system32>
|
|||||||
## 4.3 安卓客户端配置
|
## 4.3 安卓客户端配置
|
||||||
[Zerotier 非官方安卓客户端发布:支持自建 Moon 节点 - V2EX](https://www.v2ex.com/t/768628)
|
[Zerotier 非官方安卓客户端发布:支持自建 Moon 节点 - V2EX](https://www.v2ex.com/t/768628)
|
||||||
|
|
||||||
|
## 4.4 MacOS 客户端配置
|
||||||
|
步骤如下:
|
||||||
|
|
||||||
|
1. 进入 `/Library/Application\ Support/ZeroTier/One/` 目录,并替换目录下的 `planet` 文件
|
||||||
|
2. 重启 ZeroTier-One:`cat /Library/Application\ Support/ZeroTier/One/zerotier-one.pid | sudo xargs kill`
|
||||||
|
3. 加入网络 `zerotier-cli join` 网络 `id`
|
||||||
|
4. 管理后台同意加入请求
|
||||||
|
5. `zerotier-cli peers` 可以看到` planet` 角色
|
||||||
|
|
||||||
# 参考链接
|
# 参考链接
|
||||||
[zerotier-虚拟局域网详解](https://www.glimmer.ltd/2021/3299983056/)
|
[zerotier-虚拟局域网详解](https://www.glimmer.ltd/2021/3299983056/)
|
||||||
|
|
||||||
|
6
init.sh
6
init.sh
@ -19,7 +19,11 @@ dpkg-reconfigure --frontend noninteractive tzdata
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt install git python3 npm make curl -y
|
apt install git python3 npm make curl wget -y
|
||||||
|
|
||||||
|
mkdir /usr/include/nlohmann/
|
||||||
|
cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp
|
||||||
|
|
||||||
npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp
|
npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp
|
||||||
curl -s https://install.zerotier.com | bash
|
curl -s https://install.zerotier.com | bash
|
||||||
cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git
|
cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git
|
||||||
|
Loading…
Reference in New Issue
Block a user