CentOS Install ShadowSocks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
yum install zlib-devel
yum install gcc
yum install openssl-devel

wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz
xz -d Python-2.7.12.tar.xz & tar xvf Python-2.7.12.tar
tar xvf Python-2.7.12.tar
cd Python-2.7.12
./configure --with-zlib=/usr/include
make && make altinstall
cd /usr/bin
mv python python_bak
ln -s /usr/local/bin/python2.7 ./python
vi yum
cd
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
yum install m2crypto
cd
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.11.tar.gz
tar -xvf libsodium-1.0.11.tar.gz
cd libsodium-1.0.11
./configure
make && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig

ssserver -c config -d start
ssserver -c config -d stop