Skip to content

Latest commit

 

History

History
57 lines (54 loc) · 1.21 KB

snell.md

File metadata and controls

57 lines (54 loc) · 1.21 KB
  • 1. 下载 Snell Server 安装包
wget https://dl.nssurge.com/snell/snell-server-v4.0.1-linux-aarch64.zip
  • 2. 解压 Snell Server 到指定目录
unzip snell-server-v4.0.1-linux-aarch64.zip -d /usr/local/bin/ && rm ~/snell-server-v4.0.1-linux-aarch64.zip
  • 3. 赋予服务器权限
chmod +x /usr/local/bin/snell-server
  • 4. 创建配置文件
mkdir /etc/snell && vim /etc/snell/snell-server.conf

写入下面内容

[snell-server]
listen = 0.0.0.0:12321
psk = a1T48yGmETVZytQGBoec
ipv6 = false
  • 5. 配置systemctl 文件
vim /etc/systemd/system/snell-server.service

写入下面内容

[Unit]
Description=Snell Proxy Service
After=network.target

[Service]
Type=simple
User=root
Group=nogroup
LimitNOFILE=32768
ExecStart=/usr/local/bin/snell-server -c /etc/snell/snell-server.conf
AmbientCapabilities=CAP_NET_BIND_SERVICE
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=snell-server

[Install]
WantedBy=multi-user.target
  • 6. 开启 snell 服务
systemctl enable --now snell-server
  • 7. 查看 Snell 运行状态
systemctl status snell-server