ls /usr/bin/python*
python --version
alias python='/usr/bin/python3.6'
. ~/.bashrc
update-alternatives --list python
update-alternatives: error: no alternatives for python
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
python --version
此時查看版本已是python 3.6python
update-alternatives --list python /usr/bin/python2.7 /usr/bin/python3.6
update-alternatives --config python
update-alternatives --remove python /usr/bin/python2.7
rm -rf /data/logs ln -s /temp/logs /data/logs