因weblogic的安装一般需要jdk1.8版本的环境下,所以需要安装并更换虚拟机的jdk版本为1.8,可参照我上一篇文章。https://blog.csdn.net/hjxloveqsx/article/details/124711062https://blog.csdn.net/hjxloveqsx/article/details/124711062
安装并配置完jdk1.8后,我们需要按照以下步骤对weblogic进行安装。
1、先下载fmw_12.1.3.0.0_wls.jar并上传到/home/djg/weblogic目录中
**一般情况下,会使用groudadd web创建用户组web,之后使用useradd -g web weblogic在web组中创建用户weblogic。之后使用chown -R weblogic:web /home/djg 将/home/djg目录及其下属目录的文件归属者改为web组的weblogic。
这里因为djg用户在系统中只有/home/djg的权限,将/home/djg的权限转交后会导致djg无法使用。故使用usermod -a -G web djg将djg加入到web组中而不退出原先所在组。
2、在/home/djg/weblogic目录下创建响应文件wls.rsp。
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 insure having all dir read and write authority
ORACLE_HOME=/home/djg/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=
#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=
备注:wls.rsp文件中需要修改的信息如下:ORACLE_HOME=/home/djg/weblogic (表示weblogic的安装目录) ,否则会报奇怪的错误。
3、在/home/djg/weblogic目录下创建Loc文件 oraInts.loc
oraInts.loc内容如下:
inventory_loc=/home/djg/weblogic inst_group=web
备注:nventory_loc=/home/djg/weblogic (表示产品清单目录)
inst_group=web (web表示djg用户所在的组名,查看用户所属组的命令: groups)
4、进入/home/djg/weblogic目录安装weblogic
java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/djg/weblogic/wls.rsp -invPtrLoc /home/djg/weblogic/oraInts.loc
至此weblogic的安装即完成



