weblogic修改端口号

北慕城南 提交于 2019-11-29 22:41:55

因同事项目需要,特意搭建环境测试

修改端口号有两个方案:

1、 控制台直接修改

2、配置文件修改

 

控制台修改

当前端口号 8081

<2018-12-7 下午02时47分45,119秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:8081 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-7 下午02时47分45,120秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:8081 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-7 下午02时47分45,130秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<2018-12-7 下午02时47分45,139秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>

在控制台,将8081修改为8080,点击左下角保存按钮。

 

重启服务,在后台启动日志和控制台,均可验证端口修改成功

<2018-12-7 下午02时54分42,705秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.16.31.154:8080 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-7 下午02时54分42,707秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:8080 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-7 下午02时54分42,708秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:8080 for protocols iiop, t3, ldap, snmp, http.>

控制台页面

 

配置文件修改

配置文件修改,修改domain域下面的config/config.xml 文件

<server>
    <name>AdminServer</name>
    <ssl>
      <name>AdminServer</name>
      <enabled>true</enabled>
      <listen-port>7002</listen-port>
    </ssl>
    <listen-port>8080</listen-port>
    <listen-port-enabled>true</listen-port-enabled>
    <listen-address></listen-address>
    <java-compiler>javac</java-compiler>
    <client-cert-proxy-enabled>false</client-cert-proxy-enabled>
    <server-diagnostic-config>
      <wldf-diagnostic-volume>Low</wldf-diagnostic-volume>
    </server-diagnostic-config>
  </server>

  里面server标签内,找到listen-port标签内容,直接修改8080为7001,然后保存文件,重启服务

<listen-port>7001</listen-port>

同样,后台启动日志和控制台均可验证修改成功

<2018-12-11 下午04时43分06,666秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-11 下午04时43分06,682秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.16.31.154:7001 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-11 下午04时43分06,682秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "base_domain" running in development mode.>
<2018-12-11 下午04时43分06,686秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<2018-12-11 下午04时43分06,690秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>

 

PS:Windows系统,可能会存在登录控制台跳转特别慢的情况,这里可以在后台启动控制台敲回车键,会快一些。具体原因,没有细究,方法亲测可用。

 

以上便是修改weblogic端口号的两种方案,个人学习整理,供大家参考,如果有疏漏部分,欢迎批评指出。谢谢。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!