ESXI 6.7 安装 修改web端口和防火墙
文章目录
#安装教程如下
#我们将配置放在esxi的存储器中
cd /vmfs/volumes/datastore1
#你会得到类似下面的目录
[root@localhost:/vmfs/volumes/58db5900-c649bd50-8479-d4ae52d01b4e]
#新建端口配置文件
vi /vmfs/volumes/datastore1/new-HTTPS.xml
<ConfigRoot>
<service>
<id>new-HTTPS</id>
<rule id='0000'>
<direction>outbound</direction>
<protocol>tcp</protocol>
<port type='dst'>8443</port>
</rule>
<rule id='0001'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<port type='dst'>8443</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>
</ConfigRoot>
#添加到启动脚本 一定要添加到exit 0的前一行
vi /etc/rc.local.d/local.sh
#Copy the new firewall rule from vmfs place holder to file system
cp /vmfs/volumes/datastore1/new-HTTPS.xml /etc/vmware/firewall/
#refresh firewall rules
esxcli network firewall refresh
#保存重启后生效。
#不想重启生效就手动运行一下
/etc/rc.local.d/local.sh
#改端口
vi /etc/vmware/rhttpproxy/config.xml
<!-- HTTP port to be used by the reverse proxy -->
<httpPort>80</httpPort>
<!-- HTTPS port to be used by the reverse proxy -->
<httpsPort>8443</httpsPort>
#重启服务生效
/etc/init.d/rhttpproxy restart
文章作者 🐳Myki
上次更新 2019-12-01