最新消息:本站所有跳转向bbs.ykit.cn的附件将全面停止,附件已转移到https://www.qingsj.com

ESXI 6.7修改网页端口号

Linux经验 有客 1130浏览

一、终端开启SSH功能,方便修改出错维护

1.按F2进入登录界面,输入用户名和密码;

2.Troublesboot Options 按enter键进入下级页面;

3.在选择ssh选项是enter键切换启用或者禁用。(显示Disable为已开启,是关闭选项)

二、VI编辑器修改网页端口号

vi /etc/vmware/rhttpproxy/config.xml

原内容

80

443

修改后

8833

4433

三、增加防火墙配置

/etc/vmware/firewall/service.xml

防火墙的配置文件在这里
在用VI修改时如果提示无权限修改,请给予权限:
chmod 644 /etc/vmware/firewall/service.xml
chmod +t /etc/vmware/firewall/service.xml
将端口开放后,记得改为文件的权限:
chmod 444 /etc/vmware/firewall/service.xml
chmod -t /etc/vmware/firewall/service.xml

将文字复制到最下面即可。

<service id='0088'>                   
    <id>http8833</id>                  
    <rule id='0000'>                    
      <direction>inbound</direction>    
      <protocol>tcp</protocol>          
      <porttype>dst</porttype>          
      <port>8833</port>                 
    </rule>                             
    <enabled>true</enabled>             
    <required>false</required>          
  </service>                                                     
                                        
  <service id='0089'>                   
    <id>hhtps4433</id>              
    <rule id='0000'>                    
      <direction>inbound</direction>    
      <protocol>tcp</protocol>          
      <porttype>dst</porttype>          
      <port>902</port>                  
    </rule>                             
    <rule id='0001'>                    
      <direction>inbound</direction>    
      <protocol>tcp</protocol>          
      <porttype>dst</porttype>          
      <port>4433</port>                 
    </rule>                             
    <enabled>true</enabled>             
    <required>true</required>           
  </service> 

 <service id='0090'>                   
    <id>SSH2233</id>                  
    <rule id='0000'>                    
      <direction>inbound</direction>    
      <protocol>tcp</protocol>          
      <porttype>dst</porttype>          
      <port>2233</port>                 
    </rule>                             
    <enabled>true</enabled>             
    <required>false</required>          
  </service>

转载请注明:有客帮 » ESXI 6.7修改网页端口号