1.安装组件,其中openssl-devel已经存在系统中了。
yum install build-essential autoconf libtool gcc -y
2.安装git
yum install git -y git --version
3.下载shadowsocks-libev安装
git clone https://github.com/madeye/shadowsocks-libev.git cd shadowsocks-libev ./configure make make install
4.运行shadowsocks,并在后台执行
nohup /usr/local/bin/ss-server -s x.x.x.x -p 8000 -k 密码 -m aes-256-cfb &
5.加入开机启动
echo “nohup /usr/local/bin/ss-server -s x.x.x.x -p 8000 -k 密码 -m aes-256-cfb &” >> /etc/rc.local
7.重启
reboot