Source: http://moneypy.blog.51cto.com/blog/745631/586101
Previously, the graphic interface was installed by default when I installed the company's servers. The next day, the company's engineers told me that the graphic interface could not be installed. I had to reinstall all the servers and I was always in doubt, after the GUI is installed, cannot it be uninstalled? In Linux, the graphic interface is only a software package, not the core. Today, when I read a book, I think of this problem. I found a simple method on the Internet, directly use Yum to install or uninstall it! Run the command line interface Yum grouplist to check the installed group Yum groupinstall "X Window System" yum groupinstall "GNOME desktop environment" startx or init 5. The centos system with graphic interface mode is re-installed to uninstall the graphic interface in Yum mode: yum groupremove "GNOME desktop environment" yum groupremove "X Window System" after Linux is installed on a GUI, an error init: ID "X" respawning too fast: the solution of disabled for 5 minutes is to find the text in VI/etc/inittab and change the number following the ID in the text to 3 ID: 3: initdefault enables the system to start the text interface to find the text section X: 5: respawn:/etc/X11/preofdm-nodaemon and comment it out!