使用 Ubuntu 16.04 x64 搭建 ss

来源:互联网 发布:阿里云是基于openstack 编辑:程序博客网 时间:2024/06/05 23:48
Debian / Ubuntu:apt-get install python-pippip install shadowsocksCentOS6.4 64bit:yum install python-setuptools && easy_install pippip install shadowsocks

配置

sudo vi /etc/shadowsocks.json

配置文件的内容大致如下:

{    "server":"你的服务器的ip",    "server_port":8388,    "local_address": "127.0.0.1",    "local_port":1080,    "password":"你设置的密码",    "timeout":300,    "method":"aes-256-cfb",    "fast_open": false}

运行

前台运行的命令
ssserver -c /etc/shadowsocks.json
后台运行
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

自启动

sudo vi /etc/rc.local  //打开rc.local文件//然后在exit前面加入下面这一行ssserver -c /etc/shadowsocks.json -d start

ps http://stackoverflow.com/questions/28917534/pip-broken-on-ubuntu-14-4-after-package-upgrade

0 0
原创粉丝点击