您好,我已使用 RPM tigervnc-server-1.8.0-1.el7.x86_64.rpm 安装了 Tiger VNC。我正在运行 Red Hat Enterprise Linux Server 版本 7.4 (Maipo)。尝试使用 启动服务时出现错误
systemctl start vncserver@:1.service
。
错误:“vncserver@:1.service 的作业因超时而失败。有关详细信息,请参阅“systemctl status vncserver@:1.service”和“journalctl -xe”。
当我运行时,systemctl status vncserver@:1.service
我们得到以下输出
systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Fri 2019-04-26 10:47:54 EDT; 8s ago
Process: 16077 ExecStart=/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 16068 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=0/SUCCESS)
Apr 26 10:46:24 localhost.localdomain vncserver[16068]: Killing Xvnc process ...
Apr 26 10:46:24 localhost.localdomain vncserver[16068]: Xvnc process ID 15840...
Apr 26 10:46:27 localhost.localdomain vncserver[16077]: New 'localhost.locald...
Apr 26 10:46:27 localhost.localdomain vncserver[16077]: Starting applications...
Apr 26 10:46:27 localhost.localdomain vncserver[16077]: Log file is /root/.vn...
Apr 26 10:46:27 localhost.localdomain systemd[1]: PID file /home/root/.vnc/lo...
Apr 26 10:47:54 localhost.localdomain systemd[1]: vncserver@:1.service start ...
Apr 26 10:47:54 localhost.localdomain systemd[1]: Failed to start Remote desk...
Apr 26 10:47:54 localhost.localdomain systemd[1]: Unit vncserver@:1.service e...
Apr 26 10:47:54 localhost.localdomain systemd[1]: vncserver@:1.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
我已完成以下操作:
- 重新安装了包
- 删除了 /tmp/.X11-uni 文件夹中的所有内容
- 禁用 SELINUX
- 多次重启服务器
- 多次更改 VNC 密码。