shadowsocks服务端部署

基于Ubuntu 16.04的Shadowsocks服务端安装

安装步骤

1,首先检查下Python 版本,要有 2.6 or 2.7.
1
2
python --version
Python 2.7.4
2,安装python包管理器
1
apt-get install python-pip
3,安装shadowsocks
1
pip install shadowsocks
4,修改配置文件
1
vim /etc/shadowsocks/config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"server":"0.0.0.0",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"yourpsw",
"timeout":300,
"method":"bf-cfb",
"fast_open": true,
"workers": 10
}
注意:
server 0,0,0,0(其他可能出问题)
method bf-cfb(其他可能出问题)
5,开启
1
sudo ssserver -c /etc/shadowsocks/config.json
6,设置为开机启动
  • 编辑
1
vim /etc/rc.local
  • 然后在exit 0之前加入
    1
    sudo ssserver -c /etc/shadowsocks/config.json
  • 重启
1
reboot
  • 重启后查看进程
1
ps aux | grep shadowsocks

参考:

参考1

参考2

参考3

文章目录
  1. 1. 安装步骤
    1. 1.0.1. 1,首先检查下Python 版本,要有 2.6 or 2.7.
    2. 1.0.2. 2,安装python包管理器
    3. 1.0.3. 3,安装shadowsocks
    4. 1.0.4. 4,修改配置文件
    5. 1.0.5. 5,开启
    6. 1.0.6. 6,设置为开机启动
      1. 1.0.6.1. 编辑
      2. 1.0.6.2. 然后在exit 0之前加入
      3. 1.0.6.3. 重启
      4. 1.0.6.4. 重启后查看进程
  • 2. 参考: