novnc

 

 

浏览器访问http://localhost:6080/vnc.html  或者http://localhost:6080/vnc_lite.html (IP根据实际情况作更改),二者区别如下

  • vnc.html        完整界面,有操作按钮
  • vnc_lite.html  精简界面,只有虚拟机内容
  • 配置token

token文件格式(注意空格位置)

token1: host1:port1

 token 文件可以为一个文件,也可以为多个,这里为一个token文件情况。(token文件只要在指定目录即可,也可以没有后缀名,都能够正常识别)

  1. cd websockify
  2. mkdir token
  3. vi ./token/token01.conf

输入内容如下

  1. vm01: 10.6.31.60:5900
  2. vm02: 10.6.31.60:5901
  • 启动websockify

启动前先重启之前的novnc(指定端口8888)

 

 

 

 

配置文件:

5901:Kylin-178.conf

Kylin-178: 127.0.0.1:5901

 

 

 

 

参考:

https://www.codeleading.com/article/90321932066/

posted @ 2022-01-07 12:00  redrobot  阅读(199)  评论(0编辑  收藏  举报