您的位置 首页 linux 运维

vnc 安装

vnc 安装

1- 安装vnc server  (cenos7.9 )

yum install tigervnc-server -y

 

2- 启动vnc server:

vncserver :1

1代表端口5901, 2代表端口5902 以此类推

 

2- 重启vnc server

lsof -i:5901
 vncserver -kill :1

注意有空格

3-  vnc 客户端连接工具

https://www.realvnc.com/en/connect/download/viewer/

 

输入: ip:5901

 

发现:

解决:

 yum groupinstall "Server with GUI"

缺少依赖或图形环境:确保系统已经安装了图形环境(如 GNOME 或 KDE)

上边安装的要大概2G 空间。

vncserver -kill :1
vncserver :1

 

安装完成后,重启vncserver:

再次连接:

注意: centos6 需要进行 上图的sed 替换, centos7 不需要的。

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章