The graphic interface was installed by default when I installed the company server. The Company engineer told me the next day that the graphic interface could not be installed and I had to reinstall all the servers,
After that, I have been wondering if I Cannot uninstall the GUI after it is installed? In Linux, the graphic interface is just a software package, not the core.
Think of this problem, find information on the Internet, and find a simple method on the internet, directly install or uninstall using Yum!
Graphical interface for installation in Command Line Mode
Yum grouplist check installed groups
Yum groupinstall "X Window System"
Yum groupinstall "GNOME Desktop Environment"
Startx
Or init 5
OK.
Reinstall the centos System in graphic interface mode to uninstall the graphic interface in Yum mode.
Graphical interface to uninstall:
Yum groupremove "GNOME Desktop Environment"
Yum groupremove "X Window System"
An error is prompted after you uninstall the graphic interface of Linux installed on the GUI.
Init: ID "X" respawning too fast: disabled for 5 minutes
The solution is:
VI/etc/inittab
Find the text section and change the number following the ID to 3 ID: 3: initdefault to enable the system to start on the text interface.
Find the text Line X: 5: respawn:/etc/X11/preofdm-nodaemon and comment it out!
Note (this method does not confirm whether the server can be stabilized! Has not launched an experiment on the server)