一般服务器都有自带,如果没有就yum安装一个
yum -y install vnc-server
启动服务
/etc/init.d/vncserver restart
chkconfig vncserver on
创建vnc密码
[root@HK106 ~]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'testdb:1 (root)' desktop is testdb:1
Creating default startup script. /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log