linux下静默安装weblogic 14C

您所在的位置:网站首页 1936年十月红军三大主力的会师地点是哪 linux下静默安装weblogic 14C

linux下静默安装weblogic 14C

2024-07-13 09:06:50| 来源: 网络整理| 查看: 265

环境:操作系统版本:CentOS Linux release 7.6.1810       jdk版本:java version "1.8.0_201"      weblogic版本:14.1.1.0.0      一、使用username登陆服务器  二、配置JAVA环境

在/home/username/.bash_profile最后加入以下内容:

export JAVA_HOME=/home/rms/nrms/jdk/jdk1.8.0_201

export JRE_HOME=/home/rms/nrms/jdk/jdk1.8.0_201/jre

export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH 使之生效

source /home/username/.bash_profile 验证JDK安装成功与否:

#java –version 三、安装weblogic

Slient Mode静默方式

首先看命令的格式:

java -jar fmw_14.1.1.0.0_wls.jar -silent -responseFile  file -invPtrLoc file

-response file:响应文件

-invPtrLoc file:初始化环境文件

文件详解:

1.创建 oraInst.loc 文件,内容如下

#Oracle Installer Location File Location inst_group=rms                        #组名称       inventory_loc=/home/rms/weblogic/oraInventory  #产品清单目录

2.创建 wls.rsp 响应文件

su - rms

chmod 777 /home/rms/fmw_14.1.1.0.0_wls.jar 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/rms/weblogic/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; #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=

chmod 664 wls.rsp

3.配置文件创建后,就可以进行安装了: 响应文件必须指定全路径 java -jar fmw_14.1.1.0.0_wls.jar -silent -responseFile /home/rms/weblogic/wls.rsp -invPtrLoc /home/rms/weblogic/oraInst.loc

成功日志: 启动程序日志文件为//tmp/OraInstall2021-09-06_03-20-53PM/launcher2021-09-06_03-20-53PM.log。 正在提取文件......................................... 启动 Oracle Universal Installer 检查 CPU 速度是否大于 300 MHz。   实际为 1496.639 MHz    通过 检查交换空间: 必须大于 512 MB。   实际为 2093048 MB    通过 检查此平台是否需要 64 位 JVM。   实际为64    通过 (不需要 64 位) 检查临时空间: 必须大于 300 MB。   实际为 69017 MB    通过 准备从/tmp/OraInstall2021-09-06_03-20-53PM启动 Oracle Universal Installer 日志:/tmp/OraInstall2021-09-06_03-20-53PM/install2021-09-06_03-20-53PM.log 版权所有 (c) 1996, 2014, Oracle 和/或其附属公司。保留所有权利。 正在读取响应文件... 开始检查: CertifiedVersions 预期的结果: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-11之一 实际结果: enterprise-6 检查完成。此次检查的总体结果为: 通过 CertifiedVersions 检查: 成功。 开始检查: CheckJDKVersion 预期的结果: 1.8.0_201 实际结果: 1.8.0_201 检查完成。此次检查的总体结果为: 通过 CheckJDKVersion 检查: 成功。 已启用此会话的验证。 正在验证数据... 正在复制文件... 可以在以下位置找到本次安装会话的日志:  /tmp/OraInstall2021-09-06_03-20-53PM/install2021-09-06_03-20-53PM.log -----------20%----------40%----------60%----------80%--------100% Oracle Fusion Middleware 12c WebLogic Server 和 Coherence 12.1.3.0.0 的 安装 已成功完成。 日志已成功复制到/home/rms/weblogic/oraInventory/logs。

以上表示安装完成

4.接下来要创建域domain

4.1 创建存放路径

[weblogic@test ~]$ mkdir -p /home/rms/weblogic/Middleware/user_projects/domains/base_domain

4.2 创建参数文件

创建文件: create_domain.rsp 内容:

################################################################################ read template from "/home/rms/weblogic/Middleware/wlserver/common/templates/wls/wls.jar";

set JavaHome "/home/rms/nrms/jdk/jdk1.8.0_201";  set ServerStartMode "dev"; 

find Server "AdminServer" as AdminServer; set AdminServer.ListenAddress ""; set AdminServer.ListenPort "9001"; set AdminServer.SSL.Enabled "true"; set AdminServer.SSL.ListenPort "9002";

//We can directly create a new managed server. create Server "base" as BASE; set BASE.ListenAddress ""; set BASE.ListenPort "9003"; //set BASE.SSL.Enabled "true"; //set BASE.SSL.ListenPort "9004″;

//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/rms/weblogic/Middleware/user_projects/domains/base_domain/"; 

close template;

################################################################################

4.3 静默创建域 cd home/rms/weblogic/Middleware/wlserver/common/bin

[rms@test ~]$ cd home/rms/weblogic/Middleware/wlserver/common/bin

[rms@test bin]$ ./config.sh -mode=silent -silent_script=/home/rms/weblogic/create_domain.rsp -logfile=/home/rms/weblogic/create_domain.log

出现如下输出:

>  succeed: read template from "/home/rms/weblogic/Middleware/wlserver/common/templates/wls/wls.jar" >  succeed: set config option JavaHome to "/home/rms/nrms/jdk/jdk1.8.0_201" >  succeed: set config option ServerStartMode to "dev" >  succeed: find Server "AdminServer" as AdminServer >  succeed: set AdminServer attribute ListenAddress to "" >  succeed: set AdminServer attribute ListenPort to "8001" >  succeed: set AdminServer attribute SSL!Enabled to "true" >  succeed: set AdminServer attribute SSL!ListenPort to "9002" >  succeed: create Server "base" as BASE >  succeed: set BASE attribute ListenAddress to "" >  succeed: set BASE attribute ListenPort to "9003" >  succeed: create Machine "base" as Machinename >  succeed: find User "weblogic" as u1 >  succeed: set u1 attribute Password to "********" >  succeed: create User "weblogic2" as u2 >  succeed: set u2 attribute Password to "********" >  succeed: write Domain to "/home/rms/weblogic/Middleware/user_projects/domains/base_domain/" >  succeed: close template

5、WebLogic的后台启动、停止运行的方法

进入目录:/home/rms/weblogic/Middleware/user_projects/domains/base_domain/bin

[rms@test ~]# cd /home/rms/weblogic/Middleware/user_projects/domains/base_domain/bin

[rms@consul bin]$ nohup ./startWebLogic.sh &

[rms@consul bin]$ nohup ./startWebLogic.sh &    默认日志是在当前启动的目录生成nohup.out

若想自己指定日志名字,可以如下:

[rms@consul bin]$ nohup ./startWebLogic.sh >> 你定义的文件名字 & {nohup ./startWebLogic.sh >日志文件名 &}

最后就可以访问 http://ip:9001/console 进入控制台了

用上面的建的用户登录



【本文地址】

公司简介

联系我们

今日新闻


点击排行

实验室常用的仪器、试剂和
说到实验室常用到的东西,主要就分为仪器、试剂和耗
不用再找了,全球10大实验
01、赛默飞世尔科技(热电)Thermo Fisher Scientif
三代水柜的量产巅峰T-72坦
作者:寞寒最近,西边闹腾挺大,本来小寞以为忙完这
通风柜跟实验室通风系统有
说到通风柜跟实验室通风,不少人都纠结二者到底是不
集消毒杀菌、烘干收纳为一
厨房是家里细菌较多的地方,潮湿的环境、没有完全密
实验室设备之全钢实验台如
全钢实验台是实验室家具中较为重要的家具之一,很多

推荐新闻


图片新闻

实验室药品柜的特性有哪些
实验室药品柜是实验室家具的重要组成部分之一,主要
小学科学实验中有哪些教学
计算机 计算器 一般 打孔器 打气筒 仪器车 显微镜
实验室各种仪器原理动图讲
1.紫外分光光谱UV分析原理:吸收紫外光能量,引起分
高中化学常见仪器及实验装
1、可加热仪器:2、计量仪器:(1)仪器A的名称:量
微生物操作主要设备和器具
今天盘点一下微生物操作主要设备和器具,别嫌我啰嗦
浅谈通风柜使用基本常识
 众所周知,通风柜功能中最主要的就是排气功能。在

专题文章

    CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭