在CentOS上安装VNC Server执行启动服务时,一直报下面的错,无法启动服务,如何解决? 10
[root@localhostadmin]#sudosystemctlstartvncserver@:2.serviceJobforvncserver@:2.servic...
[root@localhost admin]# sudo systemctl start vncserver@:2.service
Job for vncserver@:2.service failed because the control process exited with error code. See "systemctl status vncserver@:2.service" and "journalctl -xe" for details.
[root@localhost admin]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2017-04-02 00:18:30 CST; 15s ago
Process: 4146 ExecStart=/usr/sbin/runuser -l admin -c /usr/bin/vncserver %i (code=exited, status=1/FAILURE)
Process: 4139 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
4月 02 00:18:30 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
4月 02 00:18:30 localhost.localdomain runuser[4146]: Password:
4月 02 00:18:30 localhost.localdomain systemd[1]: vncserver@:2.service: control process exited, code=exited status=1
4月 02 00:18:30 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
4月 02 00:18:30 localhost.localdomain systemd[1]: Unit vncserver@:2.service entered failed state.
4月 02 00:18:30 localhost.localdomain systemd[1]: vncserver@:2.service failed.
尝试过的方法:
1、将vncserver@:2.service 中的Type修改为simple,无效
2、将/tmp/X11-unix清除也不行
CentOS版本为最新的 7 版本 展开
Job for vncserver@:2.service failed because the control process exited with error code. See "systemctl status vncserver@:2.service" and "journalctl -xe" for details.
[root@localhost admin]# systemctl status vncserver@:2.service
● vncserver@:2.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 日 2017-04-02 00:18:30 CST; 15s ago
Process: 4146 ExecStart=/usr/sbin/runuser -l admin -c /usr/bin/vncserver %i (code=exited, status=1/FAILURE)
Process: 4139 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
4月 02 00:18:30 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
4月 02 00:18:30 localhost.localdomain runuser[4146]: Password:
4月 02 00:18:30 localhost.localdomain systemd[1]: vncserver@:2.service: control process exited, code=exited status=1
4月 02 00:18:30 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
4月 02 00:18:30 localhost.localdomain systemd[1]: Unit vncserver@:2.service entered failed state.
4月 02 00:18:30 localhost.localdomain systemd[1]: vncserver@:2.service failed.
尝试过的方法:
1、将vncserver@:2.service 中的Type修改为simple,无效
2、将/tmp/X11-unix清除也不行
CentOS版本为最新的 7 版本 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询