@zoand
2019-07-08T06:08:29.000000Z
字数 1657
阅读 874
linux
> apt-get install python-pip> pip install shadowsocks
在ubuntu16.04下可以直接用apt,而不用apt-get这是一项改进:
> apt install shadowsocks
CentOS6.4 64bit:
> yum install python-setuptools && easy_install pip> pip install shadowsocks
这时会提示要求更新pip版本:
You are using pip version 8.1.1,however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
> pip install --upgrade pip
> sudo vi /etc/config.json
内容如下:
{"server":"0.0.0.0","server_port":8388,"local_address": "127.0.0.1","local_port": 1080,"password": "你设置的密码","timeout": 300,"method": "aes-256-cfb","http_proxy": false,"auth": false}
#前台运行的命令> ssserver -c /etc/config.json#后台运行> ssserver -c /etc/config.json -d start#后台停止> ssserver -c /etc/config.json -d stop#停止> ssserver -d stop#重启> ssserver -d restart
#打开rc.local文件> sudo vi /etc/rc.local#然后在exit前面加入下面这一行> ssserver -c /etc/config.json -d start
新建启动脚本文件/etc/systemd/system/shadowsocks.service,内容如下:
[Unit]Description=ssk[Service]TimeoutStartSec=0ExecStart=/usr/bin/ssserver -c /etc/config.json -d start[Install]WantedBy=multi-user.target
执行以下命令启动 ssk 服务:
systemctl enable ssksystemctl start ssk
为了检查 shadowsocks 服务是否已成功启动,可以执行以下命令查看服务的状态:
systemctl status ssk -l
{"server": "服务器IP","server_port": [服务器商品],"password": "你设置的密码","method": "aes-256-cfb","remarks": "别名","auth": false}
{"server":"0.0.0.0","local_address":"127.0.0.1","local_port":1080,"port_password":{"端口号1":"密码1","端口号2":"密码2","端口号3":"密码3"},"timeout":300,"method":"aes-256-cfb","fast_open": false}
ubuntu16.04下载安装shadowsocks+配置chrome的过程记录
http://www.jianshu.com/p/9b7725d50f4c
在 CentOS 7 下安装配置 shadowsocks
https://morning.work/page/2015-12/install-shadowsocks-on-centos-7.html