2013年1月1日 星期二

xauth:(stdin):1:bad display name "xxx:1" in "add" command解决

xauth:(stdin):1:bad display name "xxx:1" in "add" command解决

  1. [root@host144 ~]# /etc/init.d/vncserver restart
  2. Shutting down VNC server: 1:root 2:oracle [ OK ]
  3. Starting VNC server: 1:root xauth: (stdin):1: bad display name "host144:1" in "add" command

  4. New 'host144:1 (root)' desktop is host144:1

  5. Starting applications specified in /root/.vnc/xstartup
  6. Log file is /root/.vnc/host144:1.log

  7. 2:oracle xauth: (stdin):1: bad display name "host144:2" in "add" command

  8. New 'host144:2 (oracle)' desktop is host144:2

  9. Starting applications specified in /home/oracle/.vnc/xstartup
  10. Log file is /home/oracle/.vnc/host144:2.log

  11. [ OK ]
解决方法:
  1. [root@host144 .vnc]# cat /etc/hosts
  2. 127.0.0.1 host144 localhost.localdomain localhost
  3. 10.0.127.144 host144

沒有留言:

張貼留言