Solve the problem that CentOS7 cannot go to the logon interface on the boot Interface
The default Python version of CentOS7 is 2.7.5. When installing Anaconda Python 2.7.11, you accidentally delete the previous Python. Then, you can log on to the system remotely. The root cause is that the kernel version is updated from 3.0 to 3.1.
View CentOS7 version information:
[root@biostacs ~]# lsb_release -aLSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributor ID: CentOSDescription: CentOS Linux release 7.1.1503 (Core)Release: 7.1.1503Codename: Core
Delete Anaconda Python
Directly Delete the/root/Anaconda2 folder
Find the software source corresponding to CentOS7
Http://mirror.centos.org/centos-7/7/ OS /x86_64/Packages/
Delete Environment Variables
In/etc/profile ,~ /. Delete from bashrc
Reinstall Python
Run the following command:
rpm -Uvh --replacepkgs http://mirror.centos.org/centos-7/7/os/x86_64/Packages/python-2.7.5-34.el7.x86_64.rpm
Reinstall GNOME Desktop
yum groupremove "X Window System" "GNOME Desktop Environment" -yyum groupinstall "X Window System" "GNOME Desktop Environment" -y
Yum update
yum uodate
Wait until the update is complete