linux安装weblogic
1、安装jdk1.7_15
我这里选择的是
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.