CentOS 安装配置 VNC Server
安装VNCServer
[root@localhost ~]# yum install *vnc*
初始化VNC
[root@localhost ~]# vncserver
配置VNCServer
[root@localhost ~]# vi /etc/sysconfig/vncservers
1) 在 系统设置<服务器设置<服务 中把 vncserver 打勾。
2) 打开配置文件/etc/sysconfig/vncservers,去掉下面这行的注释,
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 800×600″
1表示VNC以桌面1运行,这样可以启动root的桌面。
查看已经开启的端口
[root@localhost ~]# netstat -tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 0.0.0.0:5901                0.0.0.0:*                   LISTEN      2168/Xvnc
tcp        0      0 0.0.0.0:6001                0.0.0.0:*                   LISTEN      2168/Xvnc
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1159/sshd
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1235/master
tcp        0      0 0.0.0.0:5801                0.0.0.0:*                   LISTEN      2168/Xvnc
tcp        0      0 :::6001                     :::*                        LISTEN      2168/Xvnc
tcp        0      0 :::22                       :::*                        LISTEN      1159/sshd
tcp        0      0 ::1:25                      :::*                        LISTEN      1235/master
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               999/dhclient
配置VNC Server密码:
[root@localhost ~]# vncpasswd
Web的登陆端口
http://10.0.0.219:5801/
本文出自 蓝鹰博客,转载时请注明出处及相应链接。
本文永久链接: http://www.lanyingblog.com/blog/1274.html