0, 重设密码
[root@yqrh5u2 ~]# vncpasswd
Password:
Verify:
[root@yqrh5u2 ~]#
1,启动和kill vncserver
[root@yqrh5u2 ~]# vncserver :1
New 'yqrh5u2:1 (root)' desktop is yqrh5u2:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/yqrh5u2:1.log
[root@yqrh5u2 ~]# vncserver :2
New 'yqrh5u2:2 (root)' desktop is yqrh5u2:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/yqrh5u2:2.log
[root@yqrh5u2 ~]# ps -ef|grep -i vnc
root 12572 1 0 02:23 pts/2 00:00:00 Xvnc :1 -desktop yqrh5u2:1 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn
root 12580 1 0 02:23 pts/2 00:00:00 vncconfig -iconic
root 12617 1 0 02:23 pts/2 00:00:00 Xvnc :2 -desktop yqrh5u2:2 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -pn
root 12625 1 0 02:23 pts/2 00:00:00 vncconfig -iconic
root 12735 12536 0 02:24 pts/2 00:00:00 grep -i vnc
手动kill :1, :1的pid是12572,并验证:1确实已经被kill
[root@yqrh5u2 ~]# kill -9 12572
[root@yqrh5u2 ~]# ps -ef|grep -i vnc
root 12617 1 0 02:23 pts/2 00:00:00 Xvnc :2 -desktop yqrh5u2:2 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -pn
root 12625 1 0 02:23 pts/2 00:00:00 vncconfig -iconic
root 12779 12536 0 02:25 pts/2 00:00:00 grep -i vnc
通过vncserver kill :1,:2,这是最好的方法,推荐使用
[root@yqrh5u2 ~]# vncserver -kill :1
Killing Xvnc process ID 12572
kill 12572: No such process
[root@yqrh5u2 ~]# vncserver -kill :2
Killing Xvnc process ID 12617
[root@yqrh5u2 ~]# ls /root/.vnc/
passwd xstartup yqrh5u2:1.log yqrh5u2:2.log
2,重新启动一个手动kill的vncserver,
因为是手动自己删除的,所以要再删除一下被lock的文件,才可以重新启动,如图所示
[root@yqrh5u2 ~]# vncserver
Warning: yqrh5u2:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server yqrh5u2:1
New 'yqrh5u2:2 (root)' desktop is yqrh5u2:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/yqrh5u2:2.log
[root@yqrh5u2 ~]# vncserver :1
Warning: yqrh5u2:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server yqrh5u2:1
A VNC server is already running as :1
[root@yqrh5u2 ~]# rm -f /tmp/.X1-lock
[root@yqrh5u2 ~]# vncserver :1
Warning: yqrh5u2:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server yqrh5u2:1
A VNC server is already running as :1
[root@yqrh5u2 ~]# ps -ef|grep -i vnc
root 12971 1 0 02:32 pts/2 00:00:00 Xvnc :2 -desktop yqrh5u2:2 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -pn
root 12979 1 0 02:32 pts/2 00:00:00 vncconfig -iconic
root 13047 12536 0 02:33 pts/2 00:00:00 grep -i vnc
[root@yqrh5u2 ~]# rm -f /tmp/.X11-unix/X1
[root@yqrh5u2 ~]# vncserver :1
New 'yqrh5u2:1 (root)' desktop is yqrh5u2:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/yqrh5u2:1.log
[root@yqrh5u2 ~]# ps -ef|grep -i vnc
root 12971 1 0 02:32 pts/2 00:00:00 Xvnc :2 -desktop yqrh5u2:2 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -pn
root 12979 1 0 02:32 pts/2 00:00:00 vncconfig -iconic
root 13071 1 1 02:33 pts/2 00:00:00 Xvnc :1 -desktop yqrh5u2:1 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn
root 13092 1 0 02:33 pts/2 00:00:00 vncconfig -iconic
root 13123 12536 0 02:34 pts/2 00:00:00 grep -i vnc
[root@yqrh5u2 ~]#
分享到:
相关推荐
解密Linux 上的VNC 用户密码,VNC用户密码保存在~username/.vnc/passwd
linux 下VNC配置 启动 ...启动和停用 启用很简单 vncserver 即可启用 每次启用,终端会提示你创建了第几个窗口的日志,连接时可用 VNC viewer 选择连接的窗口 停用 vncserver -kill :窗口编号 其中黄颜色部分有空格
turbo vnc的源代码进行改进之后,实现无需密码,只需输入用户名即可远程登录linux桌面
Linux环境VNC服务安装、配置与使用,通过配置vnc,来实现远程桌面控制
Linux VNC-Server-6.2.0-Linux-x64.rpm下载,64位版本
vnc常见问题.vnc常见问题.vnc常见问题.
linux上vnc配置,可用于远程控制linux系统。本说明是基于centos而写。
VNC 是在基于 UNIX 和 Linux 操作系统的免费的开源软件,远程控制能力强大,高效实用,其性能可以和 Windows 和 MAC 中的任何远程控制软件媲美。 在 Linux 中,VNC 包括以下四个命令:vncserver,vncviewer,...
Linux下VNC配置
可以远程连接linux操作系统,非常的方便,但需要在linux开启vnc服务
vnc linux和windows都支持
LINUX设置VNC server配置服务客户端和服务器
linux vnc 配置和软件 包含软件和安装详细讲解文档 安装过程中注意问题等
VNC-5.2.0-Linux-x86-RPM一款安装在Linux下的图形化远程桌面连接软件
ipad VNC 远程linux ipad VNC 远程linux ipad VNC 远程linux ipad VNC 远程linux ipad VNC 远程linux
Linux下安装VNC
Linux系统更换ROOT及VNC远程密码 1.首先更改ROOT的密码,在系统打开终端管理器 2.更改系统管理员ROOT的密码,以root身份登陆,执行: # passwd 用户名 回车(修改密码) 回车后,再次输入回车,就修改成功。 3....
RHCE_RHEL6_124 U16 配置vnc服务配置vnc服务详细配置信息
linux VNC下载 用于linux下的远程控制和操作, 也可以用于linux操作演示. 安装版本, 直接使用.
关于Linux下VNC服务的启动、关闭和简单设置; 根据网上内容作了部分修改