Weblogic Install
版本:WebLogic Server 12.1.3.0.0
安装前提条件:JDK环境、非root用户
1、创建响应文件 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>
#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=
第六行:安装路径
2、创建Loc文件 oraInst.loc ;以下是文件内容:
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
3、开始安装
命令
java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/response/wls.rsp -invPtrLoc /home/weblogic/oralnst.loc
路径要根据自己实际路径进行修改~
Checking if CPU speed is above 300 MHz. Actual 2494.222 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 0 MB Failed <<<<
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 23695 MB Passed
四个都需要通过,以上原因主机为创建交换空间,创建交换空间即可(若需要自行百度)
输出一下内容成功!
[jsk@izwz9asld09i7eanpa8sh5z soft]$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /app/soft/weblogic121300/response/wls.rsp -invPtrLoc /app/soft/weblogic121300/oralnst.loc
Launcher log file is /tmp/OraInstall2019-01-09_02-39-49PM/launcher2019-01-09_02-39-49PM.log.
Extracting files..............
Starting Oracle Universal Installer
Checking if CPU speed is above 300 MHz. Actual 2494.222 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 1048572 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 21779 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2019-01-09_02-39-49PM
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
Log: /tmp/OraInstall2019-01-09_02-39-49PM/install2019-01-09_02-39-49PM.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: redhat-7.3.1611
Check complete. The overall result of this check is: Failed <<<<
Problem: This Oracle software is not certified on the current operating system.
Recommendation: Make sure you are installing the software on the correct platform.
Warning: Check:CertifiedVersions failed.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.8.0_77
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/OraInstall2019-01-09_02-39-49PM/install2019-01-09_02-39-49PM.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 /app/soft/weblogic/oraInventory/logs.-----打印此信息,说明weblogic安装成功了。
5.创建域(通过纯命令行安装)
1.配置环境变量
export WL_HOME=/home/open/weblogic/app/oracle_common
export MW_HOME=/home/open/weblogic/app
cd /open/weblogic/app/wlserver/common/bin
./commEnv.sh
./wlst.sh
Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
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/open/weblogic/app/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('weblogic123')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/open//weblogic/app/user_projects/domains/base_domain')
wls:/offline>closeTemplate()
wls:/offline>exit()
PS:最后一步等待时间稍微较长;
6.启动
cd /open/weblogic/app/user_projects/domains/base_domain/bin
./startWeblogic.sh
访问
http://IP:7001/console