Linux下VNC服务安装与配置

安装vnc

1
2
3
4
5
6
7
8
yum install -y tigervnc-server tigervn
vncserver
systemctl start vncserver@:1.service # or vncserver :1
systemctl enable vncserver@:1.service # 设置开机启动
systemctl stop vncserver@:1.service # 关闭 或 vncserver -kill :1
firewall-cmd --permanent --add-port=5901/tcp # 防火墙配置
service firewalld restart

卸载 tigervnc

1
2
3
4
5
yum remove -y tigervnc-server tigervn
systemctl stop vncserver@:1.service
rm -rf ~\.vnc