Home > Article > Operation and Maintenance > centos7 cannot install graphical interface
Problem:
centos7 installation graphical interface prompts an error: connection X Server lost
Cause: Some startup items are missing.
Solution:
yum updata
Attachment:
Installation method:
yum -y update yum -y groupinstall "X Window System" yum groupinstall "GNOME Desktop" "Graphical Administration Tools" ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target #设置图形界面为默认启动界面
Error 2: There are no enabled repos.
Cause: There is no repos source file specifying yum
Solution:
1. Install Alibaba source
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2. Install NetEase source
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
Recommended related tutorials: centos tutorial
The above is the detailed content of centos7 cannot install graphical interface. For more information, please follow other related articles on the PHP Chinese website!