HP UNIX 無法打開VNC 特定PORT 進程

登陸某一ACCOUNT,開VNC 進程,但其實VNC 根本沒有打開。
vncserver :66
New 'X' desktop is myhpunix:66
Starting applications specified in /home/mytest/.vnc/xstartup
Log file is /home/mytest/.vnc/myhpunix:66.log

ps -ef|grep vnc
mytest 25485 24956  1 14:39:54 pts/tg    0:00 grep vnc
沒有VNC 進程。

more /home/mytest/.vnc/myhpunix:66.log
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already run
ning

上網查看,該錯誤,有類似的,但沒有這個,
發現大概問題在/tmp/.X11* 目錄,查看發現根本就沒有這樣目錄,奇了怪了。
既然這裏沒有,那到/var下看看,
真找到一個/var/spool/sockets/X11
ll
srwxrwxrwx   1 root       sys              0 Sep  2  2005 66
果然有66 port的, 是root用過的。
好試着改掉,
chown mytest:mytest 66
su - mytest
vncerver :66
ps -ef|grep vnc
mytest 2917     1  0  14:59:54 ?   0:00 Xvnc :66 -desktop X
一切OK。
供你參考!
發佈了49 篇原創文章 · 獲贊 0 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章