VNC 服务器已在运行,但没有相应的锁定文件

VNC 服务器已在运行,但没有相应的锁定文件

尽管显示器 12 上没有 X11 锁定,但由于“VNC 服务器正在 12 上运行”,vncserver 无法启动该显示器编号。

# rm /tmp/.X12-lock
rm: cannot remove ‘/tmp/.X12-lock’: No such file or directory
# rm /tmp/.X11-unix/X12
rm: cannot remove ‘/tmp/.X11-unix/X12’: No such file or directory
# ps aux | grep Xvnc | grep :12
#
# su - metal3 -c "vncserver -geometry 1300x900 :12"
A VNC server is already running as :12

New 'hpc.test.com:10 (metal3)' desktop is hpc.test.com:10

Starting applications specified in /home/metal3/.vnc/xstartup
Log file is /home/metal3/.vnc/hpc.test.com:10.log

还有其他我错过杀死的锁定文件吗?

答案1

您仅从 VNC 检查锁定。 VNC 和 SSH X 转发都使用 X Window 系统的从 6000/tcp 开始的端口。那么看一下 600x 端口。很可能6012是sshd使用的。

相关内容