|
1\.首先确保安装了python2.6或者2.7: 检查当前版本的信息 python –version
2\.安装软件包(这里是两条命令,记得一条一条跑)
apt-get install build-essential python-pip python-m2crypto python-dev
pip install gevent shadowsocks
3\.创建一个配置文件:
touch /etc/shadowsocks.json
4\.编辑配置文件
sudo vim /etc/shadowsocks.json
{
"server":"0.0.0.0",
"server_port":8388,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false,
"workers":1
}
5\.配置完毕后 如果为了让后台程序一直运行,可以用nohup命令
nohup ssserver -c /etc/shadowsocks.json &
单纯运行则是
ssserver -c /etc/shadowsocks.json
6\.服务器已经配置好了
|
|