<div style="margin-left:0in;">
<div style="margin-left:0in;">
<p style="margin-left:0in;">安装包:jdk1.8、fmw_12.2.1.4.0_wls.jar</p>
<p style="margin-left:0in;">系统:CentOS7.4</p>
<p style="margin-left:0in;"><strong>1</strong><strong>、创建用户和组</strong></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# groupadd web</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# useradd -g web weblogic</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# passwd weblogic</span></p>
<p style="margin-left:0in;">#也可不用创建web组,直接创建weblogic用户,默认为weblogic组</p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# useradd weblogic</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# passwd weblogic</span></p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"><strong>2</strong><strong>、安装</strong><strong>jdk</strong><strong>、配置</strong><strong>jdk</strong><strong>环境变量</strong></p>
<p style="margin-left:0in;">根据weblogic支持的jdk版本,在oracle官网下载相应的jdk</p>
<p style="margin-left:0in;">使用【xx.tar.gz】包解压后需配置环境变量</p>
<p style="margin-left:0in;">存在两种环境变量配置方式,root用户和weblogic用户,任选其中一种即可</p>
<p style="margin-left:0in;">#weblogic用户添加环境变量,~/.bashrc末尾添加以下内容即可</p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# su - weblogic</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ vim ~/.bashrc</span></p>
<pre class="blockcode"><code class="language-bash">export JAVA_HOME=/usr/java/jdk1.8.0_181-amd64
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
</code></pre>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ source ~/.bashrc</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ java -version</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">java version "1.8.0_181"</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">Java(TM) SE Runtime Environment (build 1.8.0_181-b13)</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)</span></p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;">#root用户添加jdk环境变量,/etc/profile末尾添加以下内容即可</p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# vim /etc/profile</span></p>
<pre class="blockcode"><code class="language-bash">export JAVA_HOME=/usr/java/jdk1.8.0_181-amd64
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
</code></pre>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# source /etc/profile</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# java -version</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">java version "1.8.0_181"</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">Java(TM) SE Runtime Environment (build 1.8.0_181-b13)</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)</span></p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"><strong>3、创建weblogic安装目录</strong></p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ mkdir -p test</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ chown -R weblogic:web test</span></p>
<p style="margin-left:0in;"><span style="color:#454545;">[root@localhost ~]# chown weblogic:web /home/weblogic/fmw_12.2.1.4.0_wls.jar </span></p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"><strong>4、创建wls.rsp和oraInst.loc文件,安装weblogic</strong></p>
<p style="margin-left:0in;"> wls.rsp,oraInst.loc必须指定绝对路径,</p>
<p style="margin-left:0in;"><span style="color:#454545;">[weblogic@localhost ~]$ java -jar fmw_12.2.1.4.0_wls.jar -silent -responseFile <strong> /home/weblogic/wls.rsp</strong> -invPtrLoc <strong>/home/weblogic/oraInst.loc</strong></span></p>
<p style="margin-left:0in;"> </p>
<p style="margin-left:0in;"><strong>wls.rsp文件内容如下:</strong></p>
<p style="margin-left:0in;"><strong>只需修改ORACLE_HOME=</strong></p>
<pre class="blockcode"><code class="language-bash">[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle |
|