1. 进入root终端,检查是否安装VNC server:rpm –q tigervnctigervnc-server
2. 如果未安装VNC server,则:yum install –ytigervnc tigervnc-server
3. 安装完成后启用:vncserver
Password:123456
Verify:123456
4. 如果第3步出现xauth:(stdin): 1:bad display name…… ,则输入vncpasswd配置vnc的密码:vncpasswd
123456
Verify:123456
5. 关闭防火墙:/sbin/service/iptablesstop
或者在防火墙上添加允许:vim /etc/sysconfig/iptables
-A Input–m state –state NEW –m tcp –p tcp –dport 5901 –j ACCEPT