weblogic12.1.3安装

参考:
linux系统中安装部署weblogic12.1.3
http://www.itnpc.com/news/web/1481164196140829.html
weblogic12c Linux命令行安装:
http://www.cnblogs.com/dingyingsi/p/5262255.html

  1. 安装weblogic12.1.3
    创建用户:
[root@AK weblogic]# su weblogic
su: user weblogic does not exist
[root@AK weblogic]# groupadd weblogic
[root@AK weblogic]# useradd -g weblogic weblogic
[root@AK weblogic]# passwd weblogic
Changing password for user weblogic.
New password: 
BAD PASSWORD: it is too simplistic/systematic
Retype new password: 
passwd: all authentication tokens updated successfully.
[root@AK weblogic]# 

切换到weblogic目录下(su weblogic), 创建两个文件,内容如下, 注意: 如果wls.rsp缺少DECLINE_SECURITY_UPDATES=true,会报莫名其妙的异常:

[weblogic@supervisordruid1 weblogic]$ pwd
/opt/weblogic
[weblogic@supervisordruid1 weblogic]$ ls
fmw_12.1.3.0.0_wls.jar  oraInst.loc  wls.rsp
[weblogic@supervisordruid1 weblogic]$ cat oraInst.loc 
inventory_loc=/home/weblogic/oraInventory1
inst_group=weblogic   
[weblogic@supervisordruid1 weblogic]$ cat wls.rsp 
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#weblogic的安装路径,根据自己的需要修改
ORACLE_HOME=/home/weblogic/Oracle/Middleware  
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server

DECLINE_SECURITY_UPDATES=true

[weblogic@supervisordruid1 weblogic]$ 

安装webloigc:

[weblogic@supervisordruid1 weblogic]$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /opt/weblogic/wls.rsp -invPtrLoc /opt/weblogic/oraInst.loc 
Launcher log file is /tmp/OraInstall2017-08-30_02-27-21PM/launcher2017-08-30_02-27-21PM.log.
Extracting files.....................
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2266.746 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 1048568 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 10123 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2017-08-30_02-27-21PM
Log: /tmp/OraInstall2017-08-30_02-27-21PM/install2017-08-30_02-27-21PM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Starting check : CertifiedVersions
Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11
Actual Result: enterprise-6
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.7.0_51
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success.
Validations are enabled for this session.
Verifying data......
Copying Files...
You can find the log of this install session at:
 /tmp/OraInstall2017-08-30_02-27-21PM/install2017-08-30_02-27-21PM.log
-----------20%----------40%----------60%----------80%--------100%

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.1.3.0.0 completed successfully.
Logs successfully copied to /home/weblogic/oraInventory1/logs.
[weblogic@supervisordruid1 weblogic]$ 

这样webloigc就安装好了.
2. 创建domain

[weblogic@supervisordruid1 weblogic]$ export MW_HOME=/home/weblogic/Oracle/Middleware
[weblogic@supervisordruid1 weblogic]$ export WL_HOME=/home/weblogic/Oracle/Middleware/oracle_common
[weblogic@supervisordruid1 weblogic]$ cd /home/weblogic/Oracle/Middleware/
[weblogic@supervisordruid1 Middleware]$ ls
coherence  install  inventory  OPatch  oracle_common  oraInst.loc  oui  wlserver
[weblogic@supervisordruid1 Middleware]$ cd wlserver/common/bin
[weblogic@supervisordruid1 bin]$ ./commEnv.sh 
[weblogic@supervisordruid1 bin]$ ./wlst.sh 

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline>  readTemplate('/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','') 
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>cd('../..')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic') 
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('sdx123456')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain')
wls:/offline/base_domain/Security/base_domain/User/weblogic>closeTemplate()
wls:/offline>exit()


Exiting WebLogic Scripting Tool.

[weblogic@supervisordruid1 bin]$ 

注意: writeDomain(‘/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain’) 这一步非常慢,直到/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain目录下生成startWebLogic.sh脚本。

  1. 启动weblogic,目录 /home/weblogic/Oracle/Middleware
/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin
[root@supervisordruid1 bin]# ./startWebLogic.sh 

访问http://10.0.1.225:7001/console 用户名密码: weblogic/sdx123456

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值