centos7安装vnc
摘要:记录一下centos7安装vnc的经历
教程
之间按照 CentOS 7.5 安装配置tigervnc-server - caoss - 博客园 这个来做没毛病。
问题
第一台照着教程来做很快就做好了,然后第二台爆了这个错误
[root@localhost system]# systemctl status -l vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 三 2021-02-03 22:24:44 CST; 3min 6s ago
Process: 180524 ExecStart=/usr/bin/vncserver_wrapper root %i (code=exited, status=2)
Process: 180520 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Main PID: 180524 (code=exited, status=2)
2月 03 22:24:43 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
2月 03 22:24:43 localhost.localdomain systemd[1]: Started Remote desktop service (VNC).
2月 03 22:24:44 localhost.localdomain vncserver_wrapper[180524]: Warning: localhost.localdomain:1 is taken because of /tmp/.X11-unix/X1
2月 03 22:24:44 localhost.localdomain vncserver_wrapper[180524]: Remove this file if there is no X server localhost.localdomain:1
2月 03 22:24:44 localhost.localdomain vncserver_wrapper[180524]: A VNC server is already running as :1
2月 03 22:24:44 localhost.localdomain vncserver_wrapper[180524]: FATAL: 'runuser -l root' failed!
2月 03 22:24:44 localhost.localdomain systemd[1]: vncserver@:1.service: main process exited, code=exited, status=2/INVALIDARGUMENT
2月 03 22:24:44 localhost.localdomain systemd[1]: Unit vncserver@:1.service entered failed state.
2月 03 22:24:44 localhost.localdomain systemd[1]: vncserver@:1.service failed.
woc,折腾了一通最后发现(2条消息) VNC启动报错问题‘testdb:1 is taken because of’解决_IDEACOM-CSDN博客,这个方法有效......
直接 rm -rf /tmp/.X11-unix/X1 就行了。
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。