在vmware中开放VNC端口的方法

软件发布|下载排行|最新软件

当前位置:首页操作系统系统安装

在vmware中开放VNC端口的方法

  2020-12-07 我要评论

1、编辑/etc/vmware/firewall/service.xml

   

vi /etc/vmware/firewall/service.xml

2、在该文件重中倒数第二行开始添加以下内容:

  

<!-- Firewall configuration information for VNC -->
<service id='0040'>
<id>VNC</id>
<rule id='0000'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>40000</begin>
<end>60000</end>
</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>

3、执行以下命令以使配置文件生效:

   

esxcli network firewall refresh

4、查看是否已经生效:

   

esxcli network firewall ruleset list | grep VNC
VNC true

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们