CentOS远程连接黑屏解决方案

环境和工具:

CentOS上使用VNCServer

Windows上使用TigerVNCViewer

解决过程:

[root@host ~]# init 3
[root@host ~]# service vncserver restart
Redirecting to /bin/systemctl restart  vncserver.service
Failed to restart vncserver.service: Unit not found.
[root@host ~]# rm -rf /var/run/yum.pid.
[root@host ~]# systemctl stop firewalld.service
[root@host ~]# systemctl daemon-reload
[root@host ~]# firewall-cmd --permanent --add-service vnc-server
FirewallD is not running
[root@host ~]# systemctl restart firewalld.service
[root@host ~]# systemctl stop firewalld.service
[root@host ~]# systemctl disable firewalld.service
[root@host ~]# systemctl start vncserver@:1.service
[root@host ~]# yum upgrade

Is this ok [y/d/N]: y

[root@host ~]# vncserver :1

最终效果:

猜你喜欢

转载自blog.csdn.net/qq_37273889/article/details/83858808