1. 程式人生 > >CentOS遠端連線黑屏解決方案

CentOS遠端連線黑屏解決方案

環境和工具:

CentOS上使用VNCServer

Windows上使用TigerVNCViewer

 

解決過程:

[[email protected] ~]# init 3
[[email protected] ~]# service vncserver restart
Redirecting to /bin/systemctl restart  vncserver.service
Failed to restart vncserver.service: Unit not found.
[[email protected] ~]# rm -rf /var/run/yum.pid.
[

[email protected] ~]# systemctl stop firewalld.service
[[email protected] ~]# systemctl daemon-reload
[[email protected] ~]# firewall-cmd --permanent --add-service vnc-server
FirewallD is not running
[[email protected] ~]# systemctl restart firewalld.service
[[email protected] ~]# systemctl stop firewalld.service
[
[email protected]
~]# systemctl disable firewalld.service
[[email protected] ~]# systemctl start [email protected]:1.service
[[email protected] ~]# yum upgrade

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

[[email protected] ~]# vncserver :1

 

最終效果: