Centos7安装weblogic12C

1.创建Centos7系统下Weblogic用户并设置密码

useradd weblogic -- 添加weblogic用户

 

passwd weblogic -- 设置weblogic用户密码

 

2.上传Weblogic 12c 安装包,并确认是否安装jdk1.8

安装包上传至 /home/weblogic 目录

 

解压缩 fmw_12.2.1.3.0_wls_quick_Disk1_1of1.zip 命令为:unzip fmw_12.2.1.3.0_wls_quick_Disk1_1of1.zip

 

检查是否安装满足Weblogic 12c运行的jdk版本 要求jdk1.8及以上即可 命令为:java -version version版本>1.8 即可

 

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

创建wls.rsp 响应文件 vi /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=<SECURE VALUE>

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

 

 

保存并退出 wq!

 

创建oraInst.loc 安装清单文件 vi /home/weblogic/oraInst.loc 并写入以下内容

 

inventory_loc=/home/weblogic/oraInventory

inst_group=weblogic

 

保存并退出 wq!

 

 

4.执行安装指令 必须在weblogic用户下安装,root用户安装不了

-silent 表明使用静默安装的方式

-responseFile 指定响应文件的路径

-invPtrLoc 指定安装清单文件路径

-ignoreSysPrereqs 忽略一些输出(可以不加此选项)

 

安装时间较长请耐心等待,出现以下命令即表示安装完成

Oracle Fusion Middleware 12c WebLogic 和 Coherence Developer 12.2.1.3.0 的 安装 已成功完成。

日志已成功复制到/home/weblogic/wls12213/cfgtoollogs/oui。

 

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

 

5.创建domain域

手工创建以下目录

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

 

在/home/weblogic 目录下 创建 create_domain.rsp 响应文件

 

vi /home/weblogic/create_domain.rsp 并写入以下内容 第二行的JavaHome 以你实际安装的为准

 

 

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

set JavaHome "/data/jdk1.8.0_191";

 

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;

 

 

进入weblogic的bin目录 命令为:cd /home/weblogic/wls12213/wlserver/common/bin

 

安装domain响应文件

./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log

 

6.启动 Weblogic,domain域创建好之后会生成对应的weblogic脚本

 

进入domain域文件夹目录

 

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

 

启动指令

 

nohup ./startWebLogic.sh & tail -f nohup.out

 

通过 ip:port/console 访问weblogic控制台 用户名:weblogic 密码:weblogic123

 

 

 

 

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值