weblogic---安装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
切换到wls用户(如用户目录未创建, 则先创建用户目录. 这里是/home/wls)

三. 创建初始化环境文件oraInst.loc

inventory_loc=/home/wls/oraInventory
inst_group=wls

四. 创建响应文件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/wls/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 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=

五. 执行安装

java -jar -d64 /home/wls/fmw_12.1.3.0.0_wls.jar -silent -invPtrLoc /home/wls/oraInst.loc -responseFile /home/wls/wls.resp

配置环境变量: vi /etc/profile
export MW_HOME="/home/wls/weblogic"
export WL_HOME="/home/wls/weblogic/oracle_common"

六. 创建domain

bash$ pwd
/home/wls/weblogic/wlserver/common/bin
bash$ ./commEnv.sh 
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/wls/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('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/wls/user_projects/domains/test')

closeTemplate()
exit()

七. 启动nodeManager和weblogic

cd ~/user_projects/domains/test/bin/
./startWebLogic.sh & 
./startNodeManager.sh &

八、在生成domain可能会报错:java.lang.UnsupportedClassVersionError:XXXXX:Unsupported major.minor version 52.0

这个bug的产生主要是由于:项目编译得到的class文件的版本高于运行环境中jre的版本号,比如说你用jdk8编译成class文件放在jre7的运行环境下运行,从而产生报错:java.lang.UnsupportedClassVersionError:XXXXX:Unsupported major.minor version XX.X;高版本JDK编译的class不能在低版本的jvm虚拟机下运行,否则就会报这类错,因此无法运行!49,50,51,52是Java编译器内部的版本号,版本对应信息如下:

Unsupported major.minor version 52.0 对应于 JDK1.8(JRE1.8)

Unsupported major.minor version 51.0 对应于 JDK1.7(JRE1.7)

Unsupported major.minor version 50.0 对应于 JDK1.6(JRE1.6)

Unsupported major.minor version 49.0 对应于 JDK1.5(JRE1.5)

将JDK修改1.8即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值