weblogic12.1.3.0.0 安裝方法

fmw_12.1.3.0.0_wls.jar 爲orale-weblogic最高版本,官網可以直接下載到

本次安裝和以往有所不同,查閱了寫資料,

java -jar -d64 /home/wls/fmw_12.1.3.0.0_wls.jar -console 或者java -jar -d64 /home/wls/fmw_12.1.3.0.0_wls.jar 後,各類悲劇發生,感興趣的同學可以去試試。

下面直接告訴大家一種方式,安裝成功

一. JDK準備
    #vi $JAVA_HOME/jre/lib/security/java.security\
    修改securerandom.source=file:/dev/random爲securerandom.source=file:/dev/urandom


二. 創建用戶/用戶組
    # groupadd wls
    # useradd -s /bin/bash -g wls wls

一般我們都建了lcims用戶,譬如安裝在/home/lcims/app/bea12

 

三. 創建初始化環境文件oraInst.loc

/home/lcims/app/bea12 目錄下面oraInst.loc

inventory_loc=/home/lcims/app/bea12/oraInventory
inst_group=lcims

 

四. 創建響應文件wls.resp

/home/lcims/app/bea12 目錄下面wls.resp

[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/lcims/app/bea12/weblogic

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

五. 執行安裝
java -jar -d64 /home/wls/fmw_12.1.3.0.0_wls.jar -silent -invPtrLoc /home/lcims/app/bea12/oraInst.loc -responseFile /home/lcims/app/bea12/wls.resp

配置環境變量: vi /etc/profile(此步可以忽略)
export MW_HOME="/home/wls/weblogic"
export WL_HOME="/home/wls/weblogic/oracle_common"


六. 創建domain
bash$ pwd
/home/lcims/app/bea12/weblogic/wlserver/common/bin
bash$ ./commEnv.sh

如果提示缺失MW_HOME 環境變量 vi commEnv.sh,在文件的開始位置,添加下面環境變量

MW_HOME=/home/lcims/app/bea12/weblogic


bash$ ./wlst.sh 

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

 

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate('/home/lcims/app/bea12/weblogic/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>cd("..")

wls:/offline/base_domain>cd("..")

wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')

wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12')

wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')

wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/lcims/app/bea12/user_projects/domains/cmzj_lcunp50domain')

closeTemplate()

exit()

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章