1、在centos7安裝圖形化
先安裝圖形用戶接口X Window System,再安裝GNOME桌面。
[root@centos7 ~]# yum groupinstall -y "X Window System"
[root@centos7 ~]# yum groupinstall -y "GNOME Desktop"
2、在centos7安裝配置VNC Server
安裝VNC Server
[root@centos7 ~]# yum install -y tigervnc-server
拷貝VNC Server啟動腳本
[root@centos7 ~]# cd /usr/lib/systemd/system [root@centos7 /usr/lib/systemd/system]# cp -v vncserver@.service vncserver@:1.service ‘vncserver@.service’ -> ‘vncserver@:1.service’
將下圖的箭標所指<USER>改為要通過VNC Viewer連接的賬戶
執行命令vncserver啟動並設置密碼
3、在Windows安裝VNC Viewer
官網下載地址:
https://www.realvnc.com/en/connect/download/viewer/
4、VNC Viewer連接centos7
先關閉selinux、firewalld、或清空iptables規則,
查看遠程端口
使用VNC Viewer連接
一路next
完成