@daaoling
2016-12-06T13:57:34.000000Z
字数 1310
阅读 2600
Vps
Linux
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
mkdir -p /etc/shadowsocks
vi /etc/shadowsocks/config.json
输入以下内容:
{
"server":"vps.ip",
"server_port":8888,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
}
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。
systemctl start shadowsocks-server.service
systemctl enable shadowsocks-server.service
最后注意一点,防火墙端口开放 8888
https://github.com/shadowsocks/shadowsocks-libev
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