如何在 vmware esxi 5.5 中開放 VNC 端口
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
原文發布時間為:2015-06-17 本文來自雲棲社區合作夥伴“Linux中國”
最後更新:2017-05-22 14:01:59