CentOS6.5安装VNC | | Visitors | 安装图形支持1yum groupinstall -y 'X Window System' 'Desktop' 'Desktop Platform' 安装VNC1yum install -y tigervnc-server 配置VNC编辑vnc服务配置文件123vim /etc/sysconfig/vncserversVNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp " 配置vnc密码1vncpasswd 启动vnc服务12345678910/etc/init.d/vncserver startStarting VNC server: 1:root xauth: creating new authority file /root/.XauthorityNew 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost.localdomain:1.log [ OK ] 设置vnc自动启动1chkconfig vncserver on 注:~/.vnc/xstartup在CentOS 6下无需增加gnome-session & 多用户设置123456789101112\\ vnc配置文件vim /etc/sysconfig/vncserversVNCSERVERS=”1:userA 2:userB”VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp "VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp "\\ vnc密码su - userAvncpasswdsu - userBvncpasswd 实用命令1234567891011121314usage: vncserver [:] [-name ] [-depth ] [-geometry x] [-pixelformat rgbNNN|bgrNNN] [-fp ] [-fg] ... vncserver -kill vncserver -listvncserver[:n] \\开启服务vncserver -list \\查看运行列表vncserver -kill :n \\杀掉第几个x-displayvncpasswd \\修改密码