Centos8 安裝桌面環境
執行
dnf groupinstall "Server with GUI"
安裝圖形化界面,然後
systemctl set-default graphical #*設定開機啟動圖形桌面*
然後重新開機機器
Centos7 安裝桌面環境
yum -y groups install "GNOME DESKTOP" "Graphical Administration Tools"
systemctl set-default graphical.target
reboot