Google云服务器配置 · 音视频/C++/k8s/Docker等等 学习笔记 · 看云
[http://16bing.com/2017/02/19/android-shadowsocks/#toc-1](安卓手机 shodowsocket)
安装
1.更新软件包
yum update
2.安装Python
yum install python-setuptools
3.安装pip
yum install python-pip
4.可能会出现没有找到包的情况。需要先安装扩展源EPEL,之后再安装pip即可。
yum -y install epel-release
5.安装SS
pip install shadowsocks
6.配置SS
mkdir /etc/shadowsocks
vim /etc/shadowsocks/ss.json
1、安装Python和Pip环境:
yum install python-setuptools && easy_install pip
//如果已经安装python
sudo easy_install pip
2、安装Shadowsocks:
pip install shadowsocks
3、json文件配置
```json
//单用户配置
{
"server":"0.0.0.0",
"server_port":443,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"mypwd",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false,
"workers": 1
}
//多用户配置
{
"server": "0.0.0.0",
"port_password": {
"8381": "foobar1",
"8382": "foobar2",
"8383": "foobar3",
"8384": "foobar4"
},
"timeout": 300,
"method": "aes-256-cfb"
}
```
在前台运行:
ssserver -c /etc/ss.json
要在后台运行:
ssserver -c /etc/ss.json -d start
ssserver -c /etc/ss.json -d stop
![](https://box.kancloud.cn/74c80cdb3d41efafd096d3e9493c0c2a_421x387.png)