Ubuntu 16 install Python 3.5.1

Ubuntu 16.04 x64

sudo apt-get update
sudo apt-get install gcc -y
sudo apt-get install build-essential -y
sudo apt-get install libssl-dev openssl -y
sudo apt-get install build-essential

wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
tar zxvf Python-3.5.1.tgz
cd Python-3.5.1
./configure&& make && make install

sudo rm /usr/bin/python
sudo ln -s /usr/local/bin/python3.5 /usr/bin/python

sudo rm /usr/bin/pip
sudo ln -s /usr/local/bin/pip3 /usr/bin/pip
#pip install --upgrade pip

pip install bs4
pip install requests
pip install python-wordpress-xmlrpc
pip install lxml
pip install shadowsocks
pip install PySocks
#sudo apt-get install python-socks
#pip install socksipy-branch
#pip uninstall socksipy-branch

wget https://github.com/jedisct1/libsodium/releases/download/1.0.12/libsodium-1.0.12.tar.gz
tar xf libsodium-1.0.12.tar.gz && cd libsodium-1.0.12
./configure && make -j2 && make install
ldconfig

nohup sslocal -s krypt.91js.pw -p 30405 -l 7769 -k 密码 -t 600 -m chacha20

 

在 /etc/rc.local文件的倒数第二行添加(即exit 0前面一行)
nohup sslocal -s krypt.91js.pw -p 30405 -l 7769 -k 密码 -t 600 -m chacha20

 

sudo chown root:root /etc/rc.local
sudo chmod 755 /etc/rc.local
sudo systemctl enable rc-local.service

发表评论

电子邮件地址不会被公开。 必填项已用*标注