1.启动vnc
vncserver
[root@localhost ~]# vncserver
New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:2.log
端口从2(5902)开始 并且每次递增
2.再次输入vncserver 输入到5905为止
[root@localhost ~]# vncserver
New 'localhost.localdomain:3 (root)' desktop is localhost.localdomain:3
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:3.log
[root@localhost ~]# vncserver
New 'localhost.localdomain:4 (root)' desktop is localhost.localdomain:4
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:4.log
[root@localhost ~]# vncserver
New 'localhost.localdomain:5 (root)' desktop is localhost.localdomain:5
Starting applicat