centos7安裝weblogic12c

1.建立用戶和組java

# groupadd webweb

# useradd -g web weblogicoracle

# passwd weblogicdom

2.安裝jdk1.8.0.211this

將jdk解壓到/usr/java下code

配置環境變量:server

# cat /etc/profile.d/java.sh
JAVA_HOME=/usr/java/jdk1.8.0_211
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib
JRE_HOME=$JAVA_HOME/jre
export JAVA_HOME PATH CLASSPATH JRE_HOME

# chmod +x /etc/profile.d/java.sh
# source /etc/profileblog

驗證:ip

# java -version域名

3.開始安裝:

# mkdir -p /u02/weblogic/bea

# chown -R weblogic:web /u02/weblogic

# su weblogic

# cd /u02/weblogic

建立wls.rsp和oraInst.loc文件

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=/u02/weblogic/bea

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

INSTALL_TYPE=WebLogic Server

oraInst.loc文件內容:
inventory_loc=/u02/weblogic/oraInventory

inst_group=weblogic
安裝:
# java -jar fmw_12.2.1.3.0_wls.jar -silent -responseFile /u02/weblogic/wls.rsp -invPtrLoc /u02/weblogic/oraInst.loc ORACLE_HOME="/u02/weblogic/bea"
設置環境變量:
# sh /u02/weblogic/bea/wlserver/server/bin/setWLSEnv.sh
建立Domain域名:
# cd /u02/weblogic/bea/wlserver/common/bin/
# ./wlst.sh
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

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('/u02/weblogic/bea/wlserver/common/templates/wls/wls.jar')
WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
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('/u02/weblogic/bea/user_projects/domains/base_domain')
wls:/offline/base_domain/Security/base_domain/User/weblogic>closeTemplate()
wls:/offline>exit()
啓動:# cd /u02/weblogic/bea/user_projects/domains/base_domain/bin/# ./startWebLogic.sh
相關文章
相關標籤/搜索