FQ搭建小计-随时失效
先声明一下,只供学习交流,若自己操作违法请自负法律责任
这个之前说过,不是很难,现在有需求要使用国外服务器,所以顺便搭建一下,这边做个记录
PS:可能明天你就看不到了(你懂得)
过程
以CentOS为例(Ubuntu就把yum 换成 apt,如果权限不够就加上sudo)
安装pip:yum install python-pip
升级python:yum update python
升级pip:pip install --upgrade pip
安装一下shadowsocks:pip install shadowsocks
(有些国外服务器会自带)
查看软件的位置:which ssserver
创建配置文件:sudo vi /usr/bin/ssserver.json
(位置可以自己指定,我一般放在软件同级目录)
{
"server":"0.0.0.0",
"server_port":8888,
"password":"你的密码",
"timeout":600,
"method":"aes-256-cfb",
"fast_open": false
}
启动ss服务:ssserver -c /usr/bin/ssserver.json -d start
(配置文件最好是绝对路径,不然容易出错)
PS:然后说下Ubuntu,很多都是这个路径:sudo /home/用户名/.local/bin/ssserver -c json配置文件 -d start
现在可以xx了
附录
记录:cat /var/log/shadowsocks.log
shadowsocks客户端下载地址:https://shadowsocks.org/en/download/clients.html
Windows
https://github.com/shadowsocks/shadowsocks-windows/releases
Mac OS X
https://github.com/shadowsocks/ShadowsocksX-NG/releases
linux
https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation
https://github.com/shadowsocks/shadowsocks-qt5/releases
iOS
https://itunes.apple.com/app/apple-store/id1070901416?pt=2305194&ct=shadowsocks.org&mt=8
https://github.com/shadowsocks/shadowsocks-iOS/releases
Android
https://play.google.com/store/apps/details?id=com.github.shadowsocks
https://github.com/shadowsocks/shadowsocks-android/releases
推荐:https://github.com/shadowsocks/shadowsocks-android/releases/download/v4.4.5/shadowsocks-nightly-4.4.5.apk
扩展:https://github.com/lotapp/FQ
常见错误
CentOS没遇到一个错误,在使用UbuntuServer的时候遇到了这些问题,大家可以参考:
AttributeError: /usr/lib/x86_64-Linux-gnu/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup
这个是OpenSSL不再支持cleanup了,修改一下即可:/home/ubuntu/.local/lib/python2.7/site-packages/shadowsocks/crypto/openssl.py
题外话
之后有时间可能会研究下再提速和混淆