centos 7安裝怎麼沒有界面,解決辦法
1:使用Xshell或jutty等連接工具進入系統(默認用戶名root)
2:執行命令安裝 Gnome 包
$sudo yum groupinstall
"GNOME Desktop"
"Graphical Administration Tools"
(如果安裝過程中出現以下錯誤)
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz
from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64
conflicts with file
from package lvm2-7:2.02.105-14.el7.x86_64Error
Summary
3.則需要先執行以下兩條安裝命令
yum
install -y libdevmapper* yum
install -y docker
安裝完成後重新執行上面的安裝 Gnome包命令
4.更新系統的運行級別,如果你想在系統下次啓動的時候自動進入圖形界面,那麼我們需要更改系統的運行級別,輸入下面的命令來啓用圖形界面。
ln -sf /lib/systemd/system/graphical.taget /etc/systemd/system/default.target
5.接着重啓
reboot now
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.