centos 6及centos 7下安装 ss

以下教程适用于centos 6.*

wget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
tar zxvf Python-2.7.14.tgz
cd Python-2.7.14
./configure --prefix=/usr/local/python2.7
make && make install
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/python2.7/bin/python2.7 /usr/bin/python
sed -i 's/python/python2.6.6/g' /usr/bin/yum

cd /root
wget https://files.pythonhosted.org/packages/72/c2/c09362ab29338413ab687b47dab03bab4a792e2bbb727a1eb5e0a88e3b86/setuptools-39.0.1.zip
unzip setuptools-39.0.1.zip
cd setuptools-39.0.1
python setup.py build
python setup.py install

cd /root
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
/usr/local/python2.7/bin/pip install shadowsocks
python /usr/local/python2.7/bin/ssserver -p 端口 -k 密码 -m aes-256-cfb --user nobody -d start

修改密码

python /usr/local/python2.7/bin/ssserver -p 端口 -k 密码 -m aes-256-cfb --user nobody -d start

 

 

 

 

以下教程适用于centos 7.*

yum -y install python-setuptools
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
pip install shadowsocks
ssserver -p 端口 -k 密码 -m aes-256-cfb --user nobody -d start

修改密码

/usr/bin/python /usr/bin/ssserver -p 端口 -k 密码 -m aes-256-cfb --user nobody -d restart
点赞

发表评论