[root@test ~]# vncserver
xauth: (stdin):1: bad display name "test:1" in "add" command
New 'test:1 (root)' desktop is test:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 test
~
~
"/etc/hosts" 4L, 179C written
[root@test ~]# vncserver -kill :1
Killing Xvnc process ID 2686
[root@test ~]# vncserver
New 'test:1 (root)' desktop is test:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
xauth: (stdin):1: bad display name "test:1" in "add" command
New 'test:1 (root)' desktop is test:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log
[root@test ~]# ^C
修改/etc/hosts,添加IP和主机名
[root@test ~]# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.101 test
~
~
"/etc/hosts" 4L, 179C written
[root@test ~]# vncserver -kill :1
Killing Xvnc process ID 2686
[root@test ~]# vncserver
New 'test:1 (root)' desktop is test:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test:1.log