当前位置: > Linux服务器 > VNC >

VNC服务求救,在线等

时间:2015-02-08 22:10来源:linux.it.net.cn 作者:IT
VNC服务求救,在线等# uname -a

Linux localhost.localdomain 2.6.18-128.el5xen #1 SMP Wed Dec 17 12:22:24 EST 2008 i686 i686 i386 GNU/Linux

在这台机器上面装了一个vnc服务,重启系统后vnc没有自动起来,手动启动都无法启动。


# /etc/init.d/vncserver start/restart/stop
关闭 VNC 服务器: [确定]
启动 VNC 服务器:no displays configured [确定]

结果无法启动,无法重启也无法停止

只能用vncserver这个命令才可以启动

然后我修改了一下vnc登录密码后,无法登录。用kill命令杀掉进程以后再用vncserver这个命令启动也无法登录。

【vncserver启动后的一些信息】
# vncserver

Warning: localhost.localdomain:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server localhost.localdomain:1

Warning: localhost.localdomain:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server localhost.localdomain:2

Warning: localhost.localdomain:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server localhost.localdomain:3

Warning: localhost.localdomain:4 is taken because of /tmp/.X4-lock
Remove this file if there is no X server localhost.localdomain:4

New 'localhost.localdomain:5 (root)' desktop is localhost.localdomain:5

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:5.log
----------------------------------------------------------------------------------------------
# cat localhost.localdomain:3.log

Xvnc Free Edition 4.1.2
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 70101000, The X.Org Foundation


Fri May 22 09:12:58 2009
vncext: VNC extension running!732
vncext: Listening for VNC connections on port 5903【如果是localhost.localdomain:5.log,那么端口就变成5905】
vncext: Listening for HTTP connections on port 5803【如果是localhost.localdomain:5.log,那么端口就变成5805】
vncext: created VNC server for screen 0
localuser:root being added to access control list
用户“root”未找到配置文件
Launching a SCIM 

sed小问题求解释

daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/5653
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.4

Starting SCIM as daemon ...
SCIM has been successfully launched.
Smart Common Input Method 1.4.4


在线等,求救

用vnc登录提示www.muyongkai.com,昱昱炎炎的错误是 链接超时(10060)

[ 本帖最后由 zjsyzsj 于 2009-5-22 10:06 编辑 ]不能登陆?
是提示密码错误?还是压根就没反映?
IP地址后面跟 :2 <-->“localhost.localdomain:2”了吗?回复 #2 ddb521 的帖子ip后跟的是1 
例如:192.168.1.2:1这样的回复 #3 zjsyzsj 的帖子New 'localhost.localdomain:5 (root)' desktop is localhost.localdomain:5
跟这个数字对应的回复 #4 ddb521 的帖子不行Warning: localhost.localdomain:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server localhost.localdomain:3
好像是说你没有起X server造成的VNC 有一个环境变量,是DISPLAY,你可以export DISPLAY

对于楼上的,可以手动将/tmp/.X3-lock 删除掉,再重新
vncserver :3,就可以了。还有你在使用vnc view登录server的时候,一定要IP:DISPLAY,355 比较说
128.224.158.144:3回复 #7 yazi0127 的帖子这个方法对了


(责任编辑:IT)
------分隔线----------------------------