CentOS 7 weblogic 12c-based installation

Installation jdk

Note jdk version weblogic versions and their support; unloading OpenJDK, use the command -qa rpm | grep java and rpm -qa | grep jdk jdk show all relevant installation package, and then use the command rpm -e --nodeps filename files are deleted

  1 rpm -qa|grep java
  2 rpm -e --nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64
  3 ...

Download oracle jdk1.8,

Baidu network disk from the mentioned link: https://pan.baidu.com/s/15jwZrqvhFKRxBz_mrGaTkw  

Extraction code: hli5

Create a folder to store java package will be downloaded jdk archive upload usr / java / in the / directory. Then you can extract

  1 mkdir /usr/java
  2 
  3 tar -zxvf jdk-8u131-linux-x64.tar.gz

Configuration environment variable:

  . 1 Vim / etc / Profile
   2  
  . 3 # end of the file is added
   . 4 Export the JAVA_HOME = / usr / Java / jdk1.8.0_131
   . 5 Export the JRE_HOME the JAVA_HOME = $ / JRE
   . 6 Export the CLASSPATH =:. $ The JAVA_HOME / lib: $ the JRE_HOME / JRE / lib: $ the CLASSPATH
   7 Export the PATH = $ JAVA_HOME / bin: $ JRE_HOME / bin: $ the PATH
   8  
  9 # save and exit

The implementation of the current environment variables to take effect

  1 source /etc/profile

Adding user groups and users

  . 1 the groupadd weblogic
   2 the useradd -g weblogic weblogic
   . 3 the passwd weblogic
   . 4  
  . 5 SU weblogic weblogic // switch to the root password is not required

Installation weblogic

  1 mkdir /home/weblogic

Weblogic unzip the downloaded and uploaded to / home / weblogic directory

  • Create an installation directory and associated files created installation directory

  1 mkdir /opt/weblogic
  2 chown -R weblogic:weblogic /opt/weblogic

OraInst.loc create files in the / opt directory

  1 vim /opt/oraInst.loc
   2  
  3 inventory_loc = / opt / WebLogic / oraInventory   // product installation directory list for easy viewing later upgrade and maintenance personnel when 
  4 inst_group = WebLogic 			     latter group // user name, cautious, once the installation reading and writing will take this as a reference

(Note: Do not add annotation content into it, man may cause garbled)

Creating wls.rsp file in the directory opt

  1 vim /opt/wls.rsp
  2 
  3 [ENGINE]
  4 Response File Version=1.0.0.0.0
  5 [GENERIC]
  6 ORACLE_HOME=/opt/weblogic/Oracle/Middleware
  7 INSTALL_TYPE=WebLogic Server
  8 
  9 MYORACLESUPPORT_USERNAME=
 10 MYORACLESUPPORT_PASSWORD=
 11 DECLINE_SECURITY_UPDATES=true
 12 SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
 13 PROXY_HOST=
 14 PROXY_PORT=
 15 PROXY_USER=
 16 PROXY_PWD=<SECURE VALUE>
 17 COLLECTOR_SUPPORTHUB_URL=

注意 ORACLE_HOME必须是一个空的目录。inventory_loc目录与ORACLE_HOME不能在同一个目录。不然报错。

安装weblogic

  1 cd /home/weblogic
  2 java -jar fmw_12.2.1.3.0_wls_quick.jar -silent -responseFile /opt/wls.rsp -invPtrLoc /opt/oraInst.loc

安装成功。

创建域

  1 cd /home/weblogic/wls12213/wlserver/common/bin
  2 ./wlst.sh
  3 
  4 wls:/offline> readTemplateForUpdate ('/home/weblogic/wls12213/wlserver/common/templates/wls/wls.jar')
  5 wls:/offline/base_domain>cd('Servers/AdminServer')
  6 wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
  7 wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
  8 wls:/offline/base_domain/Server/AdminServer>cd('/')
  9 wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
 10 wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic1')
 11 wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
 12 wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/wls12213/domain')
 13 wls:/offline/domain/Security/domain/User/weblogic>closeTemplate()
 14 wls:/offline>exit()

启动weblogic

  1 cd /home/weblogic/wls12213/domain/bin/
  2 ./startWebLogic.sh (后台启动:nohup ./startWebLogic.sh &)

关闭weblogic

  1 ./stopWeblogic.sh

启动浏览器访问weblogic控制台http://IP:7001/console

用户名默认是weblogic,密码是创建域时设置的weblogic1



归类 : 自动化运维&服务相关

Guess you like

Origin www.cnblogs.com/lz1996/p/12663188.html