AWS-EC2安装SS及配置自启动
作者:互联网
1. 安装
yum install python-setuptools && easy_install pip pip install shadowsocks
pip install shadowsocks
参考:
https://www.cnblogs.com/darknoll/p/8921096.html
2.
vi /etc/shadowsocks.json
3.配置自启动
sudo vim /etc/init.d/shadowsocks
内容:
#!/bin/sh # # shadowsocks start/restart/stop shadowsocks # # chkconfig: 2345 85 15 # description: start shadowsocks/ssserver at boot time start(){ ssserver -c /etc/shadowsocks.json -d start } stop(){ ssserver -c /etc/shadowsocks.json -d stop } restart(){ ssserver -c /etc/shadowsocks.json -d restart } case "$1" in start) start ;; stop) stop ;; restart) restart ;; *) echo "Usage: $0 {start|restart|stop}" exit 1 ;; esac
增加这个文件的可执行权限:
sudo chmod +x /etc/init.d/shadowsocks
启动:
sudo service shadowsocks start
sudo chkconfig shadowsocks on
查看:
chkconfig --list
4. windows ss客户端下载及连接
https://github.com/shadowsocks/shadowsocks-windows/releases
这个样子:
连接配置:
勾选:启动系统代理
勾选:系统代理模式->全局
编辑服务器:
结束,去Google吧
标签:etc,SS,AWS,ssserver,stop,start,自启动,shadowsocks,restart 来源: https://www.cnblogs.com/bloodthirsty/p/11283758.html