解决方案:
1、终端输入:vncserver,那么可能出现如下结果:
[root@hadoop ~]# vncserver
Warning: hadoop:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server hadoop:1
Warning: hadoop:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server hadoop:2
New 'hadoop:7 (root)' desktop is hadoop:7
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hadoop:7.log
2、删除提示的文件即可,即执行
[root@hadoop .vnc]# rm -rf /tmp/.X11-unix/X1
[root@hadoop .vnc]# rm -rf /tmp/.X11-unix/X2
3、然后重启VNC即可启动:
systemctl start vncserver@:1.service
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)