安装shadowshocks客户端
一定要sudo,不然可能后台启动都会有麻烦(亲测
sudo pip install shadowsocks
如果之前用pip安装了可以先卸载
pip uninstall shadowsocks
配置文件
找个地方放shadowsocks的配置文件,一般放到 /etc下面:
sudo gedit /etc/shadowsocks.json
然后在shadowsocks.json修改自己的配置信息,如:
{ "server":"my_server_ip", "local_address": "127.0.0.1", "local_port":1080, "
server_port":my_server_port, "password":"my_password", "timeout":300, "method":
"aes-256-cfb" }
前端启动和后台启动
sslocal -c /etc/shadowsocks.json sslocal -c /etc/shadowsocks.json -d start
设置开机启动
打开rc.local文件,在exit 0前面添加一条sudo sslocal -c /etc/shadowsocks.json命令,然后重启即可
sudo gedit /etc/rc.local
文件内容
sudo sslocal -c /etc/shadowsocks.json exit 0
热门工具 换一换