weblogic12c静默安装&Domain静默创建

1环境说明

os:centos7

weblogic:fmw_12.2.1.3.0_wls.jar

jdk:1.8.0_181

2创建weblogic的centos账号

group add weblogic

mkdir /home/weblogic

useradd  -g weblogic -m -d /home/weblogic weblogic

passwd weblogic

/*

weblogic的home目录里面.bash_profil添加你的javaPath

#java_home
export JAVA_HOME=/usr/java/jdk1.8.0_181-amd64
export JRE_HOME=${JAVA_HOME}/jre
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

*/

3配置安装文件

cd /home/weblogic

touch  oraInst.loc

 

inventory_loc=/home/weblogic/oraInventory

inst_group=weblogic

touch wls.rsp

 

[ENGINE]

#DO NOT CHANGE THIS.

Response File Version=1.0.0.0.0

[GENERIC]

#The oracle home location. This can be an existing Oracle Home or a new Oracle Home

ORACLE_HOME=/expand/weblogic #weblogic的安装目录

#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.

INSTALL_TYPE=WebLogic Server

#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.

MYORACLESUPPORT_USERNAME=

#Provide the My Oracle Support Password

MYORACLESUPPORT_PASSWORD=<SECURE VALUE>

#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration

DECLINE_SECURITY_UPDATES=true

#Set this to true if My Oracle Support Password is specified

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

#Provide the Proxy Host

PROXY_HOST=

#Provide the Proxy Port

PROXY_PORT=

#Provide the Proxy Username

PROXY_USER=

#Provide the Proxy Password

PROXY_PWD=<SECURE VALUE>

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]

COLLECTOR_SUPPORTHUB_URL=

4安装weblogic

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

5配置domain

进入weblogic安装目录

cd  /expand/weblogic/wlserver/common/bin

./wlst.sh #启动domain配置工具

 

readTemplateForUpdate ('/expand/weblogic/wlserver/common/templates/wls/wls.jar')

#获取一个domain模板

 

cd('Servers/AdminServer')#切换控制台

 

set('ListenAddress','')#设置监听地址

set('ListenPort', 7001)

 

cd('/')#切换到根目录

cd('Security/base_domain/User/weblogic')#切换到安全目录

 

cmo.setPassword('weblogic123456')#设置密码

 

setOption('OverwriteDomain', 'true')#设置option

writeDomain('/expand/weblogic/wlserver/myWebLogicDomain')#设置domain的安装位置

 

closeTemplate()#关闭模板

exit()#退出

 

/expand/weblogic/wlserver/myWebLogicDomain/bin/startWebLogic.sh & #后台运行domain

 

http://myserver:7001/console/login/LoginForm.jsp

账号:weblogic

pd:weblogic123456

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值