Centos7安装weblogic14(Headless Mode)

Centos7安装weblogic14(Headless Mode)

首先要安装xorg服务

1
yum groupinstall "X Window System"

然后配置好用户这些

1
2
3
4
5
6
7
8
9
groupadd weblogic

mkdir /home/weblogic

useradd -m -g weblogic weblogic -d /home/weblogic

passwd weblogic

chown -R weblogic:weblogic /home/weblogic

接着切换用户

1
su weblogic

然后配置好该用户的环境变量,把jdk1.8和fmw_14.1.1.0.0_wls_lite_generic.jar都放在/home/weblogic下

然后配置环境变量

1
2
3
4
export JAVA_HOME=/home/weblogic/jdk
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
export DISPLAY=:0

然后保存生效

1
source ~/.bash_profile

然后创建好几个目录 oracle_home oraInventory

1
mkdir oracle_home oraInventory

然后编辑文件

1
vi wls.rsp

把下面的内容复制进去

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[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/weblogic/oracle_home
#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>
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>
#COLLECTOR_SUPPORTHUB_URL=

然后编辑文件

1
2
3
4
5
6
vi oraInst.loc

inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic


最后运行

1
java -jar  fmw_14.1.1.0.0_wls_lite_generic.jar -silent -responseFile /home/weblogic/wls.rsp  -invPtrLoc /home/weblogic/oraInst.loc

应该就大功告成了!

img