生命之风的低语
Whispers in the Wind of Life.

搭建 ss 翻墙

2025-07-23 22:55:28

搭建 Shadowsocks 科学上网 ss

Shadowsocks官网: https://shadowsocks.org

Shadowsocks官方GitHub: https://github.com/shadowsocks

服务器环境:

系统: CentOS 6,7,Debian,Ubuntu

内存: ≥128M

默认配置

服务器端口: 自己设定(如不设定,默认从 9000-19999 之间随机生成)

密码: 自己设定(如不设定,默认为 teddysun.com)

加密方式: 自己设定(如不设定,默认为 aes-256-gcm)

安装ss

使用 root 用户登录服务器, 运行以下命令

1

wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

1

chmod +x shadowsocks.sh

1

./shadowsocks.sh 2>&1 | tee shadowsocks.log

安装完成示例

卸载ss

使用 root 用户登录服务器, 运行以下命令

1

./shadowsocks.sh uninstall

ss使用命令

启动: /etc/init.d/shadowsocks start

停止: /etc/init.d/shadowsocks stop

重启: /etc/init.d/shadowsocks restart

状态: /etc/init.d/shadowsocks status

查看ss配置信息

使用 root 用户登录服务器, 运行以下命令

1

cat /etc/shadowsocks.json

修改ss配置信息

方法1: 修改文件/etc/shadowsocks.json

方法2: 重新安装./shadowsocks.sh

By https://sphard.com 最后更新: 2018-11-05 18:21:17