weblogic-v12.2.1.4.0+CentOS7.4命令行静默安装

论坛 期权论坛     
选择匿名的用户   2021-5-22 14:54   174   0
<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&#64;localhost ~]# groupadd web</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;localhost ~]# useradd -g web weblogic</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;localhost ~]# passwd weblogic</span></p>
  <p style="margin-left:0in;">#也可不用创建web组,直接创建weblogic用户,默认为weblogic组</p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;localhost ~]# useradd weblogic</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;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&#64;localhost ~]# su - weblogic</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[weblogic&#64;localhost ~]$ vim ~/.bashrc</span></p>
  <pre class="blockcode"><code class="language-bash">export JAVA_HOME&#61;/usr/java/jdk1.8.0_181-amd64
export PATH&#61;$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH&#61;.:$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&#64;localhost ~]$ source ~/.bashrc</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[weblogic&#64;localhost ~]$ java -version</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">java version &#34;1.8.0_181&#34;</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&#64;localhost ~]# vim /etc/profile</span></p>
  <pre class="blockcode"><code class="language-bash">export JAVA_HOME&#61;/usr/java/jdk1.8.0_181-amd64
export PATH&#61;$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export CLASSPATH&#61;.:$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&#64;localhost ~]# source /etc/profile</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;localhost ~]# java -version</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">java version &#34;1.8.0_181&#34;</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&#64;localhost ~]$ mkdir -p test</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[weblogic&#64;localhost ~]$ chown -R weblogic:web test</span></p>
  <p style="margin-left:0in;"><span style="color:#454545;">[root&#64;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&#64;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&#61;</strong></p>
  <pre class="blockcode"><code class="language-bash">[ENGINE]
#DO NOT CHANGE THIS.
Response File Version&#61;1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP