mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
add HowTo install via snap
This commit is contained in:
30
README.md
30
README.md
@@ -89,6 +89,36 @@ For macOS and Linux, you can install it using [Homebrew](https://brew.sh/):
|
||||
brew install shadowsocks-rust
|
||||
```
|
||||
|
||||
### **Install using snap**
|
||||
|
||||
```bash
|
||||
# Install from snapstore
|
||||
snap install shadowsocks-rust
|
||||
|
||||
# List services
|
||||
snap services shadowsocks-rust
|
||||
|
||||
# Enable and start shadowsocks-rust.sslocal-daemon snap service
|
||||
snap start --enable shadowsocks-rust.sslocal-daemon
|
||||
|
||||
# Show generated systemd service status
|
||||
systemctl status snap.shadowsocks-rust.sslocal-daemon.service
|
||||
|
||||
# Override generated systemd service (configure startup options)
|
||||
systemctl edit snap.shadowsocks-rust.sslocal-daemon.service
|
||||
|
||||
## NOTE: you can pass args to sslocal:
|
||||
## [Service]
|
||||
## ExecStart=
|
||||
## ExecStart=/usr/bin/snap run shadowsocks-rust.sslocal-daemon -b "127.0.0.1:1080" --server-url "ss://...."
|
||||
|
||||
# Restart generated systemd service to apply changes
|
||||
systemctl restart snap.shadowsocks-rust.sslocal-daemon.service
|
||||
|
||||
# ... and show service status
|
||||
systemctl status snap.shadowsocks-rust.sslocal-daemon.service
|
||||
```
|
||||
|
||||
### **Download release**
|
||||
|
||||
Download static-linked build [here](https://github.com/shadowsocks/shadowsocks-rust/releases).
|
||||
|
||||
Reference in New Issue
Block a user