


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!

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的扩展目录即可。

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”执行即可。

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

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

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

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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
The latest (2018.2.1) professional PHP integrated development tool

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor
