CentOS 7 安裝 shadowsocks 客戶端
熱度1 評論 78
www.BkJia.Com 網友分享於:
2017-02-28 06:02:43 浏覽數36088次
CentOS 7 安裝 shadowsocks 客戶端
1、CentOS 7 安裝 shadowsocks 客戶端
yum install -y gcc automake autoconf libtool make build-essential curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel git asciidoc xmlto
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
./configure --prefix=/use/local/shadowsocks
make && make install
2、寫入配置文件
mkdir -p /etc/shadowsocks
vim /use/local/shadowsocks/etc/config.json
寫入
{
"server":"0.0.0.0",
"server_port":1234,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"password",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 1
}
把相應的信息修改為自己服務器信息
3、創建start.sh
#=========================================
#!/usr/bin/sh
ss-local -c /usr/local/shadowsocks/etc/config.json >/usr/local/shadowsocks/run.log 2>&1 &
4、執行./start.sh即可
5、查看後台進程
ps aux|grep ss-local |grep -v grep
注意:socks5代理不能轉發http請求,需要privoxy將http轉發給socks5方可使用。
http://www.bkjia.com/Linuxjc/1196012.htmlwww.bkjia.comtrue