search
HomeSystem TutorialLINUXWhat are some ways to disable the graphical interface of a CentOS distribution?

Many friends who use Linux at home use virtual machines to build Linux. The resources that can be allocated to virtual machines are limited. If some services are not turned off, the system will be stuck. Among these services, the graphical interface is the first service to be shut down. Below I list the methods for turning off the graphical interface in three distributions that I have used.

1.CentOS 5, 6 series. Open the /etc/inittab file and change the line id:5:initdefault to id:3:initdefault:. Restart the system and it will take effect. If you want it to take effect immediately, you can enter "init 3" on the command line;

2.CentOS7 series. ln -svf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target, restart the system to take effect.

3.Ubuntu 15 series. Open the /etc/X11/default-display-manager file and enter false under the line #/usr/sbin/lightdm. Then save and exit, and restart the system to take effect.

The above is the detailed content of What are some ways to disable the graphical interface of a CentOS distribution?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:脚本之家. If there is any infringement, please contact admin@php.cn delete
centos php怎么安装opcachecentos php怎么安装opcacheJan 19, 2023 am 09:50 AM

centos php安装opcache的方法:1、执行“yum list php73* | grep opcache”命令;2、通过“yum install php73-php-opcache.x86_64”安装opcache;3、使用“find / -name opcache.so”查找“opcache.so”的位置并将其移动到php的扩展目录即可。

centos 7安装不出现界面怎么办centos 7安装不出现界面怎么办Jan 03, 2023 pm 05:33 PM

centos7安装不出现界面的解决办法:1、选择“Install CentOS 7”,按“e”进入启动引导界面;2、 将“inst.stage2=hd:LABEL=CentOS\x207\x20x86_64”改为“linux dd”;3、重新进入“Install CentOS 7”,按“e”将“hd:”后的字符替换成“/dev/sdd4”,然后按“Ctrl+x”执行即可。

centos中ls命令不显示颜色怎么办centos中ls命令不显示颜色怎么办Apr 20, 2022 pm 03:16 PM

方法:1、利用“vim ~/.bashrc”编辑用户目录(~)下的“.bashrc”文件;2、在文件内添加“alias ls="ls --color"”;3、利用“:wq!”命令保存文件内的更改;4、“exit”命令退出终端后重新连接即可。

超全!Python图形界面框架PyQt5使用指南!超全!Python图形界面框架PyQt5使用指南!Apr 13, 2023 am 08:43 AM

常见GUI框架 PyQt5:Qt是一个跨平台的 C++图形用户界面库。QT一度被诺基亚拥,后出售给芬兰的软件公司Digia Oyj。PyQt5是基于Digia公司Qt5的Python接口,由一组Python模块构成。PyQt5本身拥有超过620个类和6000函数及方法。在可以运行于多个平台,包括:Unix, Windows, and Mac OS。 Pyside6:Pyside是QT公司官方提供的Python包,上一版本为Pyside2,对应的是QT5,最新版命名规则进行了调整,更改为Pysid

centos6.5支持uefi吗centos6.5支持uefi吗Apr 26, 2022 pm 04:11 PM

centos6.5支持ueif方式。ueif方式安装方法:1、设置BIOS为禁用CSM,禁用安全启动;2、使用Diskgen将硬盘格式化为GPT格式;3、下载系统并通过光盘安装,将ESP分区建立挂在“/boot/efi”上即可。

centos怎么部署php环境centos怎么部署php环境Oct 25, 2022 am 09:33 AM

centos部署php环境的方法:1、通过“yum install”命令安装扩展;2、使用“wget http://php.net/distributions/php-7.1.0.tar.gz”命令解压php;3、通过“make && make install”命令进行编译安装;4、在安装成功后,配置环境变量;5、启动“php-fpm”即可。

centos7自带mysql吗centos7自带mysql吗Apr 26, 2022 pm 03:55 PM

centos7没有自带mysql,自带的数据库是mariadb;安装mysql时,需要先将mariadb卸载掉,因为安装mysql会和mariab产生冲突,可以利用“rpm -e --nodeps mariadb”命令将mariadb卸载。

centos找不到vim命令怎么办centos找不到vim命令怎么办Apr 20, 2022 pm 04:22 PM

方法:1、用“rpm -qa|grep vim”命令查看vim相关信息;2、若显示结果不全,用“yum -y install vim-enhanced”命令安装;3、若没有显示结果,用“yum -y install vim*”命令安装即可。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor