centos6 ss_install

#!/bin/bash
# Install Shadowsocks on CentOS 6

echo "Installing Shadowsocks..."


CONFIG_FILE=/etc/shadowsocks.json
SERVICE_FILE=/etc/systemd/system/shadowsocks.service
SS_PASSWORD=randompassword
SS_PORT=8848
SS_METHOD=aes-256-cfb
SS_IP=`ip route get 1 | awk '{print $NF;exit}'`
GET_PIP_FILE=/tmp/get-pip.py

# install pip
yum install wget
wget "https://raw.githubusercontent.com/pypa/get-pip/master/2.6/get-pip.py" -o "${GET_PIP_FILE}"
python ${GET_PIP_FILE}

# install shadowsocks
pip install --upgrade pip
pip install shadowsocks

# create shadowsocls config
cat <> /etc/rc.d/rc.local

你可能感兴趣的:(centos6 ss_install)