- 端口:
12312
可自定义:[1-65535] - Obfs:
tls
可自定义:[tls/http/off] - PSK:随机生成的16位字符
- 若已安装 Snell,直接输出配置
Debian & Ubuntu 用户请运行
wget --no-check-certificate -O snell.sh https://raw.githubusercontent.com/CookieJaySJ/snell.sh/master/snell-port.sh
chmod +x snell.sh
./snell.sh
Centos & RedHat 用户请运行
wget --no-check-certificate -O snell.sh https://raw.githubusercontent.com/CookieJaySJ/snell.sh/master/snell.centos-port.sh
chmod +x snell.sh
./snell.sh
卸载方法:
wget --no-check-certificate -O uninstall-snell.sh https://raw.githubusercontent.com/CookieJaySJ/snell.sh/master/uninstall-snell.sh
chmod +x uninstall-snell.sh
./uninstall-snell.sh
运行状态
systemctl status snell
重启 Snell
systemctl restart snell
启动 Snell
systemctl start snell
停止 Snell
systemctl stop snell
查看 Snell 配置文件
cat /etc/snell/snell-server.conf
修改 Snell 配置文件
vi /etc/snell/snell-server.conf
vi 编辑如下配置即可
[snell-server]
listen = 0.0.0.0:12312
psk = x3IBaVj9K6a6PAzF
obfs = tls
或者将编辑好的snell-server.conf,通过 ftp 软件上传到对应路径
照着大佬的脚本撸了个捷径,直接运行即可安装&卸载&查看&管理状态
但是不能安装时自定义端口,默认端口为13254
,安装结束后会将 Snell 配置导出到备忘录,复制到 Surge 中即可使用
Forked from:primovist/snell.sh