WAS控制台在was的日常维护中起着极为重要的作用,为了避免其他人能够获取控制台的登录地址,我们通常选择更改控制台的访问端口,以规避风险的产生,下面是was5和was6的修改方法:
1、先用默认端口登录控制台,修改默认的虚拟主机admin_host
进入主机别名中
更改相应的端口
2、登录后台系统修改映射端口设置:
Was5
查看/usr/WebSphere/AppServer/config/cells/<cellname>/virtualhosts.xml
找到如下的内容:
<host:VirtualHost xmi:id="VirtualHost_2" name="admin_host">
<aliases xmi:id="HostAlias_4" hostname="*" port="9061"/>
<aliases xmi:id="HostAlias_5" hostname="*" port="9043"/>
</host:VirtualHost>
看端口是否已经变成所要改动的端口号,如果不是则修改之;
编辑:
<WAS_HOME>/config/cells/<cellname>/nodes/<nodename>/servers/server1/server.xml
<transports xmi:type="applicationserver.webcontainer:HTTPTransport"
xmi:id="HTTPTransport_1" sslEnabled="false">
<address xmi:id="EndPoint_1" host="" port="9090"/>
</transports>
将9090替换为9061
重启控制台服务之后生效。
Was6
查看/usr/IBM/WebSphere/AppServer/profiles/dmgr01/config/cells/<cellname>/virtualhosts.xml
找到如下的内容:
<host:VirtualHost xmi:id="VirtualHost_2" name="admin_host">
<aliases xmi:id="HostAlias_4" hostname="*" port="9061"/>
<aliases xmi:id="HostAlias_5" hostname="*" port="9043"/>
</host:VirtualHost>
看端口是否已经变成所要改动的端口号,如果不是则修改之;
编辑:
/usr/IBM/WebSphere/AppServer/profiles/dmgr01/config/cells/cbsCell/nodes/ST-CBSWASNode01/serverindex.xml
<specialEndpoints xmi:id="NamedEndPoint_1280385145575" endPointName="WC_adminhost">
<endPoint xmi:id="EndPoint_1280385145575" host="*" port="9061"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1280385145576" endPointName="WC_defaulthost">
<endPoint xmi:id="EndPoint_1280385145576" host="*" port="9080"/>
</specialEndpoints>
将系统管理端口adminhost修改为所需端口号。
重启控制台服务后生效
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论0 条评论