如果我运行sudo systemctl tigervncserver@:2
,服务器分段错误:
Xvnc TigerVNC 1.12.0 - built 2022-03-25 17:06
Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101003, X.Org
Fri Jul 14 19:45:34 2023
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5902
vncext: created VNC server for screen 0
[mi] mieq: warning: overriding existing handler (nil) with 0x56355e466400 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x56355e466400 for event 3
3NI3X0 New Xtigervnc server 'myserver:2 (user2)' on port 5902 for display :2.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/user2/.vnc/passwd :2 to connect to the VNC server.
Segmentation fault (core dumped)
X connection to :2 broken (explicit kill or server shutdown).
该服务使用ExecStart=/usr/libexec/tigervncsession-start %i
,所以如果我运行/usr/libexec/tigervncsession-start :2
它应该表现类似,对吧?
但在这种情况下,它不会出现故障并且运行正常,这使得诊断变得困难。
该问题与在控制台登录的用户有关。似乎有某种排他性。用户可以在不运行VNC服务器的情况下登录控制台,或者通过VNC登录但无法登录控制台。