ESXi修改默认HTTP默认80和443端口

2020-10-30  本文已影响0人  有事找叮当

先开启ssh服务 root登录后
1.修改http端口配置文件

vi /etc/vmware/rhttpproxy/config.xml
找到<proxy>修改内容


   <proxy>

      <!-- default location of the proxy config file -->

      <endpoints>/etc/vmware/rhttpproxy/endpoints.conf</endpoints>




      <!-- HTTP port to be used by the reverse proxy -->

      <httpPort>80</httpPort>




      <!-- HTTPS port to be used by the reverse proxy -->

      <httpsPort>443</httpsPort>

   </proxy>

修改为

   <proxy>

      <!-- default location of the proxy config file -->

      <endpoints>/etc/vmware/rhttpproxy/endpoints.conf</endpoints>




      <!-- HTTP port to be used by the reverse proxy -->

      <httpPort>81</httpPort>




      <!-- HTTPS port to be used by the reverse proxy -->

      <httpsPort>444</httpsPort>

   </proxy>

2.关闭esxi防火墙

[root@localhost:~] esxcli network firewall set --enabled false

[root@localhost:~] esxcli network firewall get

   Default Action: DROP

   Enabled: false

   Loaded: true

3.重启服务器

上一篇 下一篇

猜你喜欢

热点阅读