Many friends who use linux in their homes use virtual machines to build linux. the resources allocated to virtual machines are limited. if some services are not disabled, the system will be relatively slow. Among these services, the GUI is the first service to be closed. The following describes how to disable the graphic interface of three releases I have used. CentOS5 and 6 Series. Open the/etc/inittab file and change it to id in the id: 5: initdefault line.
Many friends who use linux in their homes use virtual machines to build linux. the resources allocated to virtual machines are limited. if some services are not disabled, the system will be relatively slow. Among these services, the GUI is the first service to be closed. The following describes how to disable the graphic interface of three releases I have used.
- CentOS 5 and 6 Series. Open the/etc/inittab file and change it to id: 3: initdefault: in the id: 5: initdefault line :. Restart the system to take effect. if you want to take effect immediately, enter "init 3" in the command line ";
- CentOS7 series. Ln-svf/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get, restart the system to take effect.
- Ubuntu 15 series. Open the/etc/X11/default-display-manager file, and enter false under the line #/usr/sbin/lightdm. Save and exit, and restart the system to take effect.