在CentOS上安装X Server时可能会遇到各种错误
sudo yum update
sudo yum groupinstall "Server with GUI"
sudo yum install xorg-x11-server-Xorg xorg-x11-server-Xvfb
sudo systemctl isolate graphical.target
sudo systemctl enable graphical.target
sudo systemctl start graphical.target
sudo systemctl isolate multi-user.target
sudo systemctl enable multi-user.target
sudo systemctl start multi-user.target
注意:这里提供的命令适用于CentOS 7及更高版本。如果您使用的是CentOS 6或其他早期版本,可能需要使用不同的命令。
亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>
相关推荐:centos安装xserver远程使用