1,Symptom
/root/.vnc/HR-ECC-PRD-02:1.log內容有信息如下:
VNCSconnST: Server default pixel fromat depth 24 (32bpp) little-endian rgb888
VNCSconnST: Client pixel format depth 6 (8bpp) rgb222
VNCSconnST: Client pixel format depth 24 (32bpp) little-endian rgp888
2. Cause
分析:沒有安裝GUI服務,
2.1安裝前先檢查 yum源: yum repolist
如沒有安裝
#cat /etc/yum.repos.d/
#vi local.repo
[local]
name=rhel7.2
baseurl=file///mnt
enable=1
gpgcheck=0
2.2. 檢查/mnt, mount ISO文件
#mount rhel.iso /mnt
mount:/dev/loop0 is write-protected, mounting read-only
3.安裝GUI服務
#yun grouplist
#yum groupinstall -y "Server with GUI"
安裝大概587個文件
完畢后重啟vnc,登陸成功。