Shadowsocks服务器端安装配置

在Ubuntu系统上安装Shadowsocks.

mkdir shadowsocks

cd shadowsocks

apt-get install build-essential autoconf libtool libssl-dev git python-m2crypto

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

cd shadowsocks-libev

./configure && make

make install

创建配置文件

mkdir /etc/shadowsocks cd  /etc/shadowsocks

vi config.json

{

“server”:”0.0.0.0″,

“server_port”:duankou,

“local_port”:1080,

“password”:”mima”,

“timeout”:300,

“method”:”aes-256-cfb”,

“workers”:1

}

shadowsocks的运行命令为ss-server,查找其目录 whereis ss-server,结果一般是/usr/local/bin/ss-server

加入开机启动 vi /etc/rc.local

加入 /usr/local/bin/ss-server -c /etc/shadowsocks/config.json

Leave a reply:

Your email address will not be published.

Site Footer