linux安装weblogic12.1.3

linux安装weblogic

1、安装jdk1.7_15

下载jdk:
https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u80-oth-JPR

我这里选择的是
在这里插入图片描述


2、传输文件

可以选择XFTP或者使用rz命令
可以在服务器上输入rz,进行检测有无此命令,没有的话进行安装
使用 yum install -y lrzsz 进行安装

完成安装rz命令后,输入rz会弹出一个窗口,进行文件选择
在这里插入图片描述


3、安装jdk

通过tar -zxvf jdk-7u15-linux-x64.tar.gz
进行解压
在这里插入图片描述
解压完成后,打开配置文件vim ~/.bash_profile

在这里插入图片描述
在文件末尾添加:

export JAVA_HOME=/home/soft/jdk1.7.0_15
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$PATH

在这里插入图片描述

然后保存完,使用source ~/.bash_profile,使配置文件生效

验证jdk版本java -version


4、配置主机名

在这里插入图片描述


5、添加响应文件

oraInst.loc 文件

[root@instance-0odmc945 response]# cat oraInst.loc 
nventory_loc=/usr/local/products/oraInventory
inst_group=su1573

wls.rsp 文件

[root@instance-0odmc945 response]# cat 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=/usr/local/products/weblogic12c

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

6、安装

输入

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/susu/response/wls.rsp -invPtrLoc /home/susu/response/oraInst.loc

在这里插入图片描述
这里出现交换空间失败
在这里插入图片描述
使用free -m查看
在这里插入图片描述
使用以下命令进行增加交换空间

[susu@instance-0odmc945 soft]$ free -m
             total       used       free     shared    buffers     cached
Mem:          2006       1791        214          0         28       1252
-/+ buffers/cache:        510       1495
Swap:            0          0          0
[susu@instance-0odmc945 soft]$ su root
Password: 
su: incorrect password
[susu@instance-0odmc945 soft]$ su root
Password: 
[root@instance-0odmc945 soft]# dd if=/dev/zero of=/swapfile bs=2048 count=2097152
2097152+0 records in
2097152+0 records out
4294967296 bytes (4.3 GB) copied, 29.8514 s, 144 MB/s
[root@instance-0odmc945 soft]# mkswap /swapfile
mkswap: /swapfile: warning: don't erase bootbits sectors
        on whole disk. Use -f to force.
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=46a19578-d4c2-46a9-a3af-0efde3231f1c
[root@instance-0odmc945 ~]# mkswap -f /swapfile
Setting up swapspace version 1, size = 4194300 KiB
no label, UUID=dc5f0ff3-16a1-493e-b6a1-27409d07d7c5
[root@instance-0odmc945 ~]# swapon /swapfile
[root@instance-0odmc945 ~]# cp /etc/fstab /etc/fstab.backup_$(date +%N)
[root@instance-0odmc945 ~]# echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
[root@instance-0odmc945 ~]# chown root:root /swapfile
[root@instance-0odmc945 ~]# chmod 0600 /swapfile
[root@instance-0odmc945 ~]# swapon -a
[root@instance-0odmc945 ~]# swapon -s
Filename				Type		Size	Used	Priority
/swapfile                               file		4194300	0	-1
[root@instance-0odmc945 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          2006       1917         88          0         28       1407
-/+ buffers/cache:        481       1524
Swap:         4095          0       4095

继续安装执行jar包,(使用普通用户,不能使用root

[susu@instance-0odmc945 soft]$ java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/susu/response/wls.rsp -invPtrLoc /home/susu/response/oraInst.loc
Launcher log file is /tmp/OraInstall2019-10-27_11-21-23AM/launcher2019-10-27_11-21-23AM.log.
Extracting files..................
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2400.000 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 4194300 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 22516 MB    Passed


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-01-09_01-04-50AM
Log: /tmp/OraInstall2018-01-09_01-04-50AM/install2018-01-09_01-04-50AM.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: enterprise-6
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success.
Starting check : CheckJDKVersion
Expected result: 1.7.0_15
Actual Result: 1.7.0_15
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/OraInstall2018-01-09_01-04-50AM/install2018-01-09_01-04-50AM.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 /usr/local/products/oraInventory/logs.
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ssy03092919

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值