mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
commit
3ab784dd80
23
README.md
23
README.md
@ -223,11 +223,22 @@ tproxy-port: 9898
|
|||||||
tun:
|
tun:
|
||||||
enable: false
|
enable: false
|
||||||
```
|
```
|
||||||
Create user given name `meta`.
|
|
||||||
|
|
||||||
Run Meta Kernel by user `meta` as a daemon.
|
|
||||||
|
|
||||||
Create the systemd configuration file at /etc/systemd/system/Clash-Meta.service:
|
### General installation guide for Linux
|
||||||
|
+ Create user given name `Clash-Meta`
|
||||||
|
|
||||||
|
+ Download and decompress pre-built binaries from [releases](https://github.com/MetaCubeX/Clash.Meta/releases)
|
||||||
|
|
||||||
|
+ Rename executable file to `Clash-Meta` and move to `/usr/local/bin/`
|
||||||
|
|
||||||
|
+ Create folder `/etc/Clash-Meta/` as working directory
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Run Meta Kernel by user `Clash-Meta` as a daemon.
|
||||||
|
|
||||||
|
Create the systemd configuration file at `/etc/systemd/system/Clash-Meta.service`:
|
||||||
|
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
@ -236,12 +247,12 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=meta
|
User=Clash-Meta
|
||||||
Group=meta
|
Group=Clash-Meta
|
||||||
CapabilityBoundingSet=cap_net_admin
|
CapabilityBoundingSet=cap_net_admin
|
||||||
AmbientCapabilities=cap_net_admin
|
AmbientCapabilities=cap_net_admin
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/usr/local/bin/Clash.Meta -d /etc/Clash.Meta
|
ExecStart=/usr/local/bin/Clash-Meta -d /etc/Clash-Meta
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user