系统
在 bwh 上。
使用的是 Centos 6 x86_64 devel。
Ubuntu 16.04 在安装 python-pip 时,可能出现需要交互的界面,导致一直没有结果。而交互式 shell 在浏览器上又用不了(本机 Ubuntu, Firefox 和 Chrome 都试了)。
安装
安装 pip
1 | yum install python-setuptools -y && easy_install pip |
因使用不了交互式 shell,所以需要加 -y
参数,确认安装。
安装服务端
1 | pip install --upgrade https://github.com/shadowsocks/shadowsocks/archive/master.zip |
使用 pip install git+https://github.com/shadowsocks/shadowsocks.git@master
的方式获取失败,故下载代码包。
安装 libsodium
1 | wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz |
要用到 AEAD 加密算法(https://blog.shensven.com/post/why-do-ss-deprecate-ota ),需要安装 libsodium 库。
Centos6 不像 Ubuntu 可以直接通过 apt install libsodium-dev
安装,需要下载源码编译安装。
直接使用 ./configure
会出现运行时找不到 libsodium
,需要在执行 ./configure
时加参数 --prefix=/usr
(https://github.com/shadowsocks/shadowsocks/issues/836 )。或许也可以使用以下的方式来修复关联。
1 | 修复关联 |
完整安装脚本
1 | yum install python-setuptools -y && easy_install pip |
运行
启动:
1 | ssserver -p 443 -k password -m aes-256-gcm --user nobody -d start |
停止:
1 | ssserver -d stop |
附录
检查ip是否被封:先登录账号,进入控制面板,然后打开 https://kiwivm.64clouds.com/main-exec.php?mode=blacklistcheck
,测试IP。