1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| # 最开始是没有gcc, 行我安装 $ yum -y install gcc gcc-c++ gdb # 后来有安装个 $ yum -y groupinstall "Development Tools" $ wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz $ tar xf LATEST.tar.gz $ ./configure && make -j4 && make install $ echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf $ ldconfig # 开始安装python $ wget https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tgz $ wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz $ cd setuptools-12.0.3 && python setup.py install $ yum install zlib zlib-devel $ make clean # 就为了执行这最后一个命令 $ ./shadowsocks.sh 2>&1 | tee shadowsocks.log $ ssserver -c /etc/shadowsocks.json -d start $ ssserver -c /etc/shadowsocks.json -d stop
|