Giter VIP home page Giter VIP logo

snell.sh's Introduction

Snell安装脚本

  • 端口:12312 可自定义:[1-65535]
  • Obfs:tls 可自定义:[tls/http/off]
  • PSK:随机生成的16位字符
  • 若已安装 Snell,直接输出配置

安装

Debian & Ubuntu 用户请运行

wget --no-check-certificate -O snell.sh https://raw.githubusercontent.com/ydzydzydz/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/ydzydzydz/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/ydzydzydz/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

snell.sh's People

Contributors

ydzydzydz avatar primovist avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.