Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .vitepress/config/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ export const cn = defineConfig({
{ text: '多节点', link: '/guide/network/multi-node-networking' },
{ text: '子网代理(点对网)', link: '/guide/network/point-to-networking' },
{ text: '网对网', link: '/guide/network/network-to-network' },
{ text: '无公网IP', link: '/guide/network/networking-without-public-ip' },
{ text: '使用 WireGuard 客户端接入', link: '/guide/network/use-easytier-with-wirefuard-client' },
{ text: '无公网 IP', link: '/guide/network/networking-without-public-ip' },
{ text: '使用 WireGuard 客户端接入', link: '/guide/network/use-easytier-with-wireguard-client' },
{ text: 'SOCKS5', link: '/guide/network/socks5' },
{ text: '无 TUN 模式 (免 Root 权限)', link: '/guide/network/no-root' },
{ text: '无 TUN 模式(免 Root 权限)', link: '/guide/network/no-root' },
{ text: '自建公共服务器', link: '/guide/network/host-public-server' },
{ text: '注册为windows服务(开机自启)', link: '/guide/network/install-as-a-windows-service' },
{ text: '将服务安装为 Linux Systemd 服务', link: '/guide/network/install-as-a-systemd-service' },
{ text: '安装为 Windows 服务(开机自启)', link: '/guide/network/install-as-a-windows-service' },
{ text: '安装为 Linux systemd 服务', link: '/guide/network/install-as-a-systemd-service' },
{ text: '安装为 macOS 服务', link: '/guide/network/install-as-a-macos-service' },
{ text: '其他配置', link: '/guide/network/configurations' },
{ text: '配置文件', link: '/guide/network/config-file' },
],
Expand Down
19 changes: 10 additions & 9 deletions .vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,33 @@ import { defineConfig } from 'vitepress'

export const en = defineConfig({
lang: 'en',
description: 'a simple, safe and decentralized VPN networking solution implemented with the Rust language and Tokio framework.',
description: 'A simple, safe and decentralized VPN networking solution implemented with the Rust language and Tokio framework',

themeConfig: {
sidebar: [
{
text: 'Getting Started',
text: 'Getting started',
items: [
{ text: 'Introduction', link: '/en/guide/introduction' },
{ text: 'installation', link: '/en/guide/installation' },
{ text: 'Installation', link: '/en/guide/installation' },
],
},
{
text: 'Networking',
link: '/en/guide/networking',
items: [
{ text: 'Two Node', link: '/en/guide/network/two-node-networking' },
{ text: 'Multi Node', link: '/en/guide/network/multi-node-networking' },
{ text: 'Peer to Peer Networking', link: '/en/guide/network/two-node-networking' },
{ text: 'Multi Peers Networking', link: '/en/guide/network/multi-node-networking' },
{ text: 'Subnet Proxy', link: '/en/guide/network/point-to-networking' },
{ text: 'Network to Network', link: '/en/guide/network/network-to-network' },
{ text: 'Without Public IP', link: '/en/guide/network/networking-without-public-ip' },
{ text: 'Use WireGuard Client', link: '/en/guide/network/use-easytier-with-wirefuard-client' },
{ text: 'Use WireGuard Client', link: '/en/guide/network/use-easytier-with-wireguard-client' },
{ text: 'SOCKS5', link: '/en/guide/network/socks5' },
{ text: 'No TUN Mode (No Root Permission Required', link: '/en/guide/network/no-root' },
{ text: 'Self-Hosted Public Server', link: '/en/guide/network/host-public-server' },
{ text: 'Installing as a Windows Service (Auto-Start on Boot)', link: '/en/guide/network/install-as-a-windows-service' },
{ text: 'Rootless mode (no TUN)', link: '/en/guide/network/no-root' },
{ text: 'Self-hosted Public Server', link: '/en/guide/network/host-public-server' },
{ text: 'Installing as a Windows Service (Auto start on boot)', link: '/en/guide/network/install-as-a-windows-service' },
{ text: 'Installing as a Linux Systemd Service', link: '/en/guide/network/install-as-a-systemd-service' },
{ text: 'Installing as a macOS Service', link: '/en/guide/network/install-as-a-macos-service' },
{ text: 'Other Configurations', link: '/en/guide/network/configurations' },
{ text: 'Configuration File', link: '/en/guide/network/config-file' },
],
Expand Down
33 changes: 33 additions & 0 deletions en/guide/network/install-as-a-macos-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Installing as macOS service

Download and install [serviceman](https://webinstall.dev/serviceman)

Open terminal and run the following commands to register easytier service:

```bash
# Start easytier with configuration file
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core -c ~/.config/easytier.toml

# or you can register easytier service without configuration
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core --ipv4 x.x.x.x --network-name xxx --network-secret yyy --peers tcp://peer_host:11010
```

Start easytier service:

```bash
sudo serviceman start easytier
```

Stop easytier service:

```bash
sudo serviceman stop easytier
```
33 changes: 33 additions & 0 deletions guide/network/install-as-a-macos-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 安装为 macOS 服务

下载并安装 [serviceman](https://webinstall.dev/serviceman)。

打开终端,运行如下命令注册服务:

```bash
# 使用配置文件注册 easytier 服务
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core -c ~/.config/easytier.toml

# 不使用配置文件注册 easytier 服务
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core --ipv4 x.x.x.x --network-name xxx --network-secret yyy --peers tcp://peer_host:11010
```

启动 easytier 服务:

```bash
sudo serviceman start easytier
```

关闭 easytier 服务:

```bash
sudo serviceman stop easytier
```
Loading