金币2878
积分9960
注册时间2016-12-2
最后登录2025-1-18
|
本脚本适用环境:
系统支持:CentOS 6,7,Debian,Ubuntu
内存要求:≥128M
客户端下载:https://github.com/shadowsocks/shadowsocks-windows/releases
使用方法:
使用root用户登录,运行以下命令:
- wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
复制代码- ./shadowsocks.sh 2>&1 | tee shadowsocks.log
复制代码 卸载方法:
使用root用户登录,运行以下命令:
- ./shadowsocks.sh uninstall
复制代码 单用户配置文件 Sample
配置文件路径:/etc/shadowsocks.json
- {
- "server":"0.0.0.0",
- "server_port":8989,
- "local_address":"127.0.0.1",
- "local_port":1080,
- "password":"yourpassword",
- "timeout":300,
- "method":"aes-256-cfb",
- "fast_open": false
- }
复制代码 多用户多端口配置文件 Sample
配置文件路径:/etc/shadowsocks.json
- {
- "server":"0.0.0.0",
- "local_address":"127.0.0.1",
- "local_port":1080,
- "port_password":{
- "8989":"password0",
- "9001":"password1",
- "9002":"password2",
- "9003":"password3",
- "9004":"password4"
- },
- "timeout":300,
- "method":"aes-256-cfb",
- "fast_open": false
- }
复制代码 使用命令
启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status
|
|