在CentOS系统上配置和使用VNC时,用户可能会遇到多种兼容性问题。以下是一些常见问题的解决方案和探讨:
systemctl restart vncserver@:num.service
尝试解决问题,但有时无效。yum groupinstall "Server with GUI" -y
systemctl set-default graphical
yum install tigervnc-server tigervnc-server-module -y
vncpasswd
vncserver
sudo yum update
sudo yum install tight vnc server
sudo systemctl start vncserver@:1.service
sudo systemctl enable vncserver@:1.service
sudo firewallcmd permanent zonepublic addport5901/tcp
sudo firewallcmd reload
ps -ef grep vnc
查看vnc连接端口详情,利用kill -9 xxxx
关闭冲突端口,删除/tmp/.X11-unix
以及/tmp/.Xxx-lock
文件,并再次开启VNC服务。/root/.vnc/xstartup
文件,确保权限正确,并关闭防火墙对VNC端口的限制。希望这些信息能帮助你解决CentOS系统上配置和使用VNC时遇到的兼容性问题。