linux静默安装weblogic 12c

linux静默安装weblogic 12c

(建议安装jdk8)

1.下载

官网下载:

https://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html

下载得到的文件fmw_12.2.1.3.0_wls_quick.jar

2.安装
a.创建用户设置密码

不能以root用户安装

添加weblogic用户:useradd weblogic

设置密码:passwd weblogic

切换用户:su - weblogic

b.上传文件

上传fmw_12.2.1.3.0_wls_quick.jar至服务器/home/weblogic目录下

c.创建响应文件wls.rsp及loc文件oraInst.loc

/home/weblogic/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=/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

##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=
MYORACLESUPPORT_PASSWORD=

##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=

##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=

/home/weblogic/oraInst.loc文件内容:

inventory_loc=/home/weblogic/oraInventory inst_group=weblogic

d.执行命令进行安装

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

-silent 表明使用静默安装的方式
-responseFile 指定响应文件的路径
-invPtrLoc 指定安装清单文件路径
-ignoreSysPrereqs 忽略一些输出(可以不加此选项)

3.创建域domain

手动创建目录

mkdir -p /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/

建立create_domain.rsp响应文件

create_domain.rsp文件内容:

read template from “/home/weblogic/wls12213/wlserver/common/templates/wls/wls.jar”;

set JavaHome “/usr/java/jdk1.8.0_201-amd64”;

set ServerStartMode “dev”;

find Server “AdminServer” as AdminServer;

set AdminServer.ListenAddress “”;

set AdminServer.ListenPort “7001”;

set AdminServer.SSL.Enabled “true”;

set AdminServer.SSL.ListenPort “8002”;

//We can directly create a new managed server.

create Server “base” as BASE;

set BASE.ListenAddress “”;

set BASE.ListenPort “8003”;

//set BASE.SSL.Enabled “true”;

//set BASE.SSL.ListenPort "8004″;

//Create Machine

create Machine “base” as Machinename;

//use templates default weblogic user

find User “weblogic” as u1;

set u1.password “weblogic123”;

//create a new user

create User “weblogic2” as u2;

set u2.password “weblogic123”;

write domain to “/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/”;

//The domain name will be “demo-domain”

close template;

4.启动weblogic

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

nohup ./startWebLogic.sh &

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值