vncserver 服务启动失败

vncserver 服务启动失败

尝试去设置VNCServer通过Windows远程桌面访问CentOS7机器,启动VNC服务时出错:

[root@HW006 ~]# systemctl start vncserver@:1
Job for vncserver@:1.service failed because the control process exited with error code. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.
[root@HW006 ~]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:1.service has begun starting up.
Sep 13 14:46:14 HW006.co.local systemd[1]: Started Session c6 of user testuser001.
-- Subject: Unit session-c6.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c6.scope has finished starting up.
--
-- The start-up result is done.
Sep 13 14:46:14 HW006.co.local runuser[54228]: pam_unix(runuser-l:session): session opened for us
Sep 13 14:46:14 HW006.co.local runuser[54228]: You will require a password to access your desktop
Sep 13 14:46:14 HW006.co.local runuser[54228]: getpassword error: Inappropriate ioctl for device
Sep 13 14:46:14 HW006.co.local runuser[54228]: pam_unix(runuser-l:session): session closed for us
Sep 13 14:46:14 HW006.co.local systemd[1]: vncserver@:1.service: control process exited, code=exi
Sep 13 14:46:14 HW006.co.local runuser[54228]: Password:
Sep 13 14:46:14 HW006.co.local systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:1.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:1.service has failed.
--
-- The result is failed.
Sep 13 14:46:14 HW006.co.local systemd[1]: Unit vncserver@:1.service entered failed state.
Sep 13 14:46:14 HW006.co.local systemd[1]: vncserver@:1.service failed.
Sep 13 14:46:14 HW006.co.local polkitd[18280]: Unregistered Authentication Agent for unix-process
lines 1168-1196/1196 (END)

不知道该怎么做。有经验的人知道这里可能发生了什么,或者进一步的调试输出会有什么用处(对网络方面没有太多经验)?

相关内容