aws安装shadow socks
申请免费EC2一年(每月在线不要超过750小时,流量15G):
1、安装pip:
yum list | grep python-pip (没有这个包,需要更新EPEL,yum -y install epel-release)
2、安装shadowsocks:
pip install -y shadowsocks
3、编辑shadowsocks配置文件:
vi /etc/shadowsocks.json
1 { 2 "server":"0.0.0.0", 3 "server_port":4000, 4 "local_address":"127.0.0.1", 5 "local_port":1080, 6 "password":"C0snEo2+y2", 7 "timeout":300, 8 "method":"aes-256-cfb", 9 "fast_open":false 10 }
4、启动服务:
ssserver -c /etc/shadowsocks.json -d start
5、编辑EC2入站规则,开放4000端口: