[关闭]
@daaoling 2016-12-06T13:57:34.000000Z 字数 1310 阅读 2600

Vps Linux

Centos 7 Shadowsocks

Source Install

https://github.com/shadowsocks/shadowsocks-libev

sudo yum install gcc autoconf libtool automake make zlib-devel openssl-devel asciidoc xmlto
./configure && make
sudo make install

shadowsocks的配置文件

mkdir -p /etc/shadowsocks
vi /etc/shadowsocks/config.json

输入以下内容:

{
 "server":"vps.ip",
 "server_port":8888,
 "password":"mypassword",
 "timeout":300,
 "method":"aes-256-cfb",
}

create shadowsocks.service

vi /etc/systemd/system/shadowsocks-server.service

输入以下内容:

[Unit]
Description=Shadowsocks service
After=network.target

[Service]
Type=simple
User=nobody
ExecStart=/usr/local/bin/ss-server -c /etc/shadowsocks/config.json
ExecReload=/bin/kill -HUP $MAINPID
    ExecStop=/bin/kill -s QUIT $MAINPID 
PrivateTmp=true

[Install]
WantedBy=multi-user.target
说明:如果服务端口数值小于1024,把nobody改为root。

运行shadowsocks服务并设置为开机自启:

systemctl start shadowsocks-server.service
systemctl enable shadowsocks-server.service

最后注意一点,防火墙端口开放 8888

参考

https://github.com/shadowsocks/shadowsocks-libev

Centos 7安装配置Shadowsocks

https://blog.linuxeye.com/category/linux/

https://shadowsocks.org/en/download/clients.html
https://segmentfault.com/a/1190000005597923

http://wrfly.kfd.me/SOCKS%E4%BB%A3%E7%90%86%E5%92%8CHTTP%E4%BB%A3%E7%90%86%E7%9A%84%E5%8C%BA%E5%88%AB/
https://github.com/100apps/ipac

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注