내 집 연구실에 있는 centos 7 호스트에 Tiger-VNC 서버를 설치했는데 최근에 정전이 발생했습니다. 평소대로 vnc 서버에 연결을 시도했지만 "연결이 거부되었습니다"라는 오류 메시지가 나타납니다. SSH를 통해 서버에 연결하고 데몬을 다시 시작하려고 시도했는데 이러한 오류가 발생했습니다. 미리 감사드립니다! :)
[root@centos-desktop ~]# systemctl status vncserver@:1
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Sun 2018-06-17 18:01:36 EDT; 1min 51s ago
Process: 1324 ExecStart=/usr/sbin/runuser -l sam -c /usr/bin/vncserver %i -geometry 1366x768 (code=exited, status=0/SUCCESS)
Process: 1315 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Jun 17 18:01:33 centos-desktop.mylab.local systemd[1]: Starting Remote desktop service (VNC)...
Jun 17 18:01:36 centos-desktop.mylab.local systemd[1]: PID file /home/sam/.vnc/centos-desktop.mylab.local:1.pid not readable (yet?) after start.
Jun 17 18:01:36 centos-desktop.mylab.local systemd[1]: Failed to start Remote desktop service (VNC).
Jun 17 18:01:36 centos-desktop.mylab.local systemd[1]: Unit vncserver@:1.service entered failed state.
Jun 17 18:01:36 centos-desktop.mylab.local systemd[1]: vncserver@:1.service failed.
[root@centos-desktop ~]# systemctl start vncserver@:1
Job for vncserver@:1.service failed because a configured resource limit was exceeded. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.
답변1
여기서 해결책을 찾았습니다.
vncserver -kill :1