中间件weblogic部署详情

一、安装weblogic

操作系统环境

  1. CentOS Linux release 7.4.1708 (Core)

1、 创建weblogic操作用户

  1. useradd weblogic
  2. passwd weblogic #密码:123456

2、 安装jdk-7u80-linux-x64.tar.gz

  1. mkdir -p /application
  2. tar -zxvf jdk-7u80-linux-x64.tar.gz -C /application
  3. JAVA_HOME=/application/jdk1.7
  4. export JRE_HOME=/application/jdk1.7/jre
  5. export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
  6. export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

3、 修改配置

  1. vim /application/jdk1.7/jre/lib/security/java.security
  2. 最初
  3. securerandom.source=file:/dev/urandom
  4. 修改后
  5. securerandom.source=file:/dev/./urandom

4、创建清单文件,以及组

  1. echo '#Oracle Installer Location File Location' >> /etc/oraInst.loc
  2. echo 'inst_group=weblogic' >> /etc/oraInst.loc
  3. echo 'inventory_loc=/home/weblogic/oraInventory' >> /etc/oraInst.loc
  4. chmod 755 /etc/oraInst.loc
  5. chown -R weblogic:weblogic /etc/oraInst.loc

5、创建rsp文件切换到weblogic用户创建

  1. su - weblogic
  2. vim wls.rsp
  3. [ENGINE]
  4. #DO NOT CHANGE THIS.
  5. Response File Version=1.0.0.0.0
  6. [GENERIC]
  7. #The oracle home location. This can be an existing Oracle Home or a new Oracle Home
  8. ORACLE_HOME=/home/weblogic/Oracle/Middleware ---》指定安装的目录路径
  9. #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
  10. INSTALL_TYPE=WebLogic Server
  11. #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
  12. MYORACLESUPPORT_USERNAME=
  13. #Provide the My Oracle Support Password
  14. MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
  15. DECLINE_SECURITY_UPDATES=true
  16. #Set this to true if My Oracle Support Password is specified
  17. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
  18. #Provide the Proxy Host
  19. PROXY_HOST=
  20. #Provide the Proxy Port
  21. PROXY_PORT=
  22. #Provide the Proxy Username
  23. PROXY_USER=
  24. #Provide the Proxy Password
  25. PROXY_PWD=<SECURE VALUE>
  26. #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
  27. COLLECTOR_SUPPORTHUB_URL=

6、增加文件权限:

  1. chmod 755 wls.rsp

7、下载安装weblogic

  1. java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc

8、安装域(domain)

  1. mkdir -p /home/weblogic/Oracle/Middleware/domains
  2. cd /home/weblogic/Oracle/Middleware/wlserver/common/bin
  3. ./commEnv.sh
  4. ./wlst.sh
  5. wls:/offline> readTemplate('/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar')
  6. wls:/offline/base_domain>cd('Servers/AdminServer')
  7. wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
  8. wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
  9. wls:/offline/base_domain/Server/AdminServer>cd('/')
  10. wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
  11. wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12c')
  12. wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
  13. wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/domains')
  14. wls:/offline/domains/Security/domains/User/weblogic>closeTemplate()
  15. wls:/offline>exit()

9、启动控制台

  1. [weblogic@jun domains]$ pwd
  2. /home/weblogic/Oracle/Middleware/domains
  3. [weblogic@jun domains]$ ./startWebLogic.sh &

二、登录页面

1、链接及端口

  1. http://10.0.0.112:7001/console
  2. weblogic、weblogic12c

2、页面展示

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值