1、环境探查与准备
  安装jdk和weblogic前需要对进行安装的linux系统硬件和软件环境进行探查确认,以确保支持对jdk1.8.0_144_1和weblogic12.2.1.3和的安装。weblogic12.2.1.3对于jdk及linux操作系统版本的要求在oracle官网上面有详细的详细全面介绍,可自己进行下载xls查阅。http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
1.1 weblogic12.2.1.3升级前说明
a、root用户无法安装weblogic否则会报错如下:
    [root@ODSDEVDB01 fmw_12.2.1.3.0_wls_jar]# java -jar fmw_12.2.1.3.0_wls.jar
    Launcher log file is /tmp/OraInstall2018-05-22_02-54-09PM/launcher2018-05-22_02-54-09PM.log.
    Extracting the installer . . . . . . . . . . Done
    The current user is root or has superuser privilege.
    The Oracle Universal Installer cannot continue.
    The log is located here: /tmp/OraInstall2018-05-22_02-54-09PM/launcher2018-05-22_02-54-09PM.log.
 为什么root用户无法安装weblogic?
  出于安全考虑,即使别人攻入了你的系统获得了Weblogic的控制权,对于操作系统来说也只是一个普通的受限用户。通过在用户层面的分隔,即使有一个被破坏了也要尽量少影响其它的东西。
b、安装最新的weblogic版本,版本号为 12.2.1.3,开始以为和旧版安装一样,使用控制台的方式,下载bin文件,然后一步步在console执行下来就行了但是,从12C版本后,bin文件不提供了,改成用全系统通用的jar文件 (generic.jar)进行安装。参看博文  http://blog.51cto.com/chbinmile/1880433

2、配置jdk1.8.0_144_1
参看博文:https://www.cnblogs.com/kuoAT/p/7555298.html
2.1 解压jdk1.8.0_144_1.tar到指定的文件目录
# tar -xvf jdk1.8.0_144_1.tar -C /usr/java
2.2 备份系统配置文件
执行命令: cp /etc/profile  /usr/wls_12.2.1.3.0/bakProfile
2.3 编辑系统环境变量
    [root@ODSDEVDB01 ~]#vi /etc/profile     
    i
    #java
    JAVA_HOME=/usr/java/jdk1.8.0_144_1
    PATH=$JAVA_HOME/bin:$PATH
    CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
    export PATH JAVA_HOME CLASSPATH
    按Esc+:+wq 保存退出;
    备注:编辑后可重新查看一下确保内容已经新增成功
2.4 重新加载系统配置文件
    source /etc/profile
2.5 检查jdk 是否安装成功
[root@ODSDEVDB01 ~]# java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
出现上面的显示信息表示安装成功

3、安装weblogic
3.1 创建createWeblogic用户和组web
    [root@ODSDEVDB01 /]# groupadd web
    [root@ODSDEVDB01 /]# useradd -g web createWeblogic
    [root@ODSDEVDB01 /]# passwd createWeblogic
                             weblogic12c
3.2 切换用户进行安装:
    su  createWeblogic
3.3 创建响应文件 wls.rsp  
    最好放在/home/createWeblogic的目录下面而不是usr目录下面,否则会导致创建域的权限问题在/home/createWeblogic目录下确保有如下两个文件并做相应的配置,否则安装时候回报各种难以预知的错误。

  1. [ENGINE]
  2.  
  3. #DO NOT CHANGE THIS.
  4.  
  5. Response File Version=1.0.0.0.0
  6.  
  7. [GENERIC]
  8.  
  9. #The oracle home location. This can be an existing Oracle Home or a new Oracle Home insure having all dir read and write authority
  10.  
  11. ORACLE_HOME=/usr/wls_12.2.1.3.0/wlsInstall
  12.  
  13. #Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
  14.  
  15. INSTALL_TYPE=WebLogic Server
  16.  
  17. #Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
  18.  
  19. MYORACLESUPPORT_USERNAME=
  20.  
  21. #Provide the My Oracle Support Password
  22.  
  23. MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
  24.  
  25. #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
  26.  
  27. DECLINE_SECURITY_UPDATES=true
  28.  
  29. #Set this to true if My Oracle Support Password is specified
  30.  
  31. SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
  32.  
  33. #Provide the Proxy Host
  34.  
  35. PROXY_HOST=
  36.  
  37. #Provide the Proxy Port
  38.  
  39. PROXY_PORT=
  40.  
  41. #Provide the Proxy Username
  42.  
  43. PROXY_USER=
  44.  
  45. #Provide the Proxy Password
  46.  
  47. PROXY_PWD=<SECURE VALUE>
  48.  
  49. #Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]
  50.  
  51. COLLECTOR_SUPPORTHUB_URL=

备注:wls.rsp文件中需要修改的信息如下:ORACLE_HOME=/usr/wls_12.2.1.3.0/wlsInstall       (表示weblogic的安装目录) 响应文件中信息的编写,否则会报奇怪的错误
3.4 创建Loc文件 oraInst.loc

  1. inventory_loc=/home/createWeblogic/oraInventory
  2.  
  3. inst_group=web

备注:oraInts.loc文件中修改如下信息:
     inventory_loc=/home/createWeblogic/oraInventory  (表示产品清单目录)
  inst_group=web (web表示createWeblogic用户所在的组名,查看用户所属组的命令: groups)
3.5 保证所需要得目录weblogic用户要用读写权限
    oraInst.loc,wls.rsp,fmw_12.2.1.3.0_wls.jar文件用户createWeblogic必须要有读写权限
3.6 安装weblogic
    cd /usr/wls_12.2.1.3.0/fmw_12.2.1.3.0_wls_jar/
    java -jar fmw_12.2.1.3.0_wls.jar  -silent  -responseFile  /home/createWeblogic/wls.rsp  -invPtrLoc /home/createWeblogic/oraInst.loc  
至此weblogic的安装即完成
4、创建域app_domain
4.1 首先执行setWLSEnv.sh  来配置环境变量
    $ ./usr/wls_12.2.1.3.0/wlsInstall/wlserver/server/bin/setWLSEnv.sh    
    [createWeblogic@ODSDEVDB01 root]$ cd /usr/wls_12.2.1.3.0/wlsInstall
    [createWeblogic@ODSDEVDB01 user_projects]# mkdir domains
    [createWeblogic@ODSDEVDB01 user_projects]# cd domains
    [createWeblogic@ODSDEVDB01 domains]# mkdir pyfile
    [createWeblogic@ODSDEVDB01 domains]# cd pyfile
4.2 将basicWLSDomain.py复制到base_domain目录下

  1. #=======================================================================================
  2. # This is an example of a simple WLST offline configuration script. The script creates
  3. # a simple WebLogic domain using the Basic WebLogic Server Domain template. The script
  4. # demonstrates how to open a domain template, create and edit configuration objects,
  5. # and write the domain configuration information to the specified directory.
  6. #
  7. # This sample uses the demo Derby Server that is installed with your product.
  8. # Before starting the Administration Server, you should start the demo Derby server
  9. # by issuing one of the following commands:
  10. #
  11. # Windows: WL_HOME\common\derby\bin\startNetworkServer.cmd
  12. # UNIX: WL_HOME/common/derby/bin/startNetworkServer.sh
  13. #
  14. # (WL_HOME refers to the top-level installation directory for WebLogic Server.)
  15. #
  16. # The sample consists of a single server, representing a typical development environment.
  17. # This type of configuration is not recommended for production environments.
  18. #
  19. # Please note that some of the values used in this script are subject to change based on
  20. # your WebLogic installation and the template you are using.
  21. #
  22. # Usage:
  23. # java weblogic.WLST <WLST_script>
  24. #
  25. # Where:
  26. # <WLST_script> specifies the full path to the WLST script.
  27. #=======================================================================================
  28.  
  29. #=======================================================================================
  30. # Open a domain template.
  31. #=======================================================================================
  32.  
  33. readTemplate("/usr/wls_12.2.1.3.0/wlsInstall/wlserver/common/templates/wls/wls.jar")
  34.  
  35. #=======================================================================================
  36. # Configure the Administration Server and SSL port.
  37. #
  38. # To enable access by both local and remote processes, you should not set the
  39. # listen address for the server instance (that is, it should be left blank or not set).
  40. # In this case, the server instance will determine the address of the machine and
  41. # listen on it.
  42. #=======================================================================================
  43.  
  44. cd('Servers/AdminServer')
  45. set('ListenAddress','')
  46. set('ListenPort', 7001)
  47.  
  48. create('AdminServer','SSL')
  49. cd('SSL/AdminServer')
  50. set('Enabled', 'false')
  51. set('ListenPort', 7002)
  52.  
  53. #=======================================================================================
  54. # Define the user password for weblogic.
  55. #=======================================================================================
  56.  
  57. cd('/')
  58. cd('Security/base_domain/User/weblogic')
  59. # Please set password here before using this script, e.g. cmo.setPassword('value')
  60. cmo.setPassword('weblogic1')
  61. #=======================================================================================
  62.  
  63. #=======================================================================================
  64. # Write the domain and close the domain template.
  65. #=======================================================================================
  66.  
  67. setOption('OverwriteDomain', 'true')
  68. writeDomain('/usr/wls_12.2.1.3.0/wlsInstall/user_projects/domains/app_domain')
  69. closeTemplate()
  70.  
  71. #=======================================================================================
  72. # Exit WLST.
  73. #=======================================================================================
  74.  
  75. exit()

 cd  /usr/wls_12.2.1.3.0/wlsInstall/user_projects/domains/pyfile
   cp /usr/wls_12.2.1.3.0/wlsInstall/wlserver/common/templates/scripts/wlst/basicWLSDomain.py .
修改basicWLSDomain.py文件中的如下信息:
1)确定该服务的监听端口7001
cd('Servers/AdminServer')
set('ListenAddress','')
set('ListenPort', 7001)
2)确定weblogic控制台的登录密码
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('weblogic123')
3)确定域名 antiMoney_domain域名
setOption('OverwriteDomain', 'true')
writeDomain('/usr/wls_12.2.1.3.0/wlsInstall/user_projects/domains/app_domain')
closeTemplate()
4.3 执行basicWLSDomain.py进行域的创建
[createWeblogic@ODSDEVDB01 pyfile]$ /usr/wls_12.2.1.3.0/wlsInstall/oracle_common/common/bin/wlst.sh basicWLSDomain.py .
出现如下信息表示安装成功:
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands

Exiting WebLogic Scripting Tool.   
4.4 启动服务
    [createWeblogic@ODSDEVDB01 base_domain]$ cd ..
    [createWeblogic@ODSDEVDB01 app_domain]$ ./startWebLogic.sh
    备注:也可以通过 nohup sh startWebLogic.sh & 命令来启动服务

上述每步都经本人亲测无误,如遇问题欢迎留言,谢谢!

七、linux基础-jdk1.8和weblogic12.2.1.3.0安装的更多相关文章

  1. linux基础-jdk1.8和weblogic12.2.1.3.0安装

    转至:https://www.cnblogs.com/jiarui-zjb/p/9642416.html 1.环境探查与准备 安装jdk和weblogic前需要对进行安装的linux系统硬件和软件环境 ...

  2. 从零开始学安全(七)●Linux基础命令学习笔记

    halt 关机reboot 现在重新启动su - 如果当前是普通用户,则输入这条命令切换到管理员用户(root),如果要切换到其他用户则敲入 su - 用户名 如: su - wangxin root ...

  3. 开发环境入门 linux基础(部分)虚拟内存,rpm和yum安装

    虚拟内存,rpm和yum安装 文本中查找 /内容 替换:扩展模式下(:)%s /替换目标/要替换的文件/ (只替换第一个)(后边加g全部替换) :set u添加行号 raid  lvm逻辑卷 df - ...

  4. Linux基础知识入门

    [Linux基础]Linux基础知识入门及常见命令.   前言:最近刚安装了Linux系统, 所以学了一些最基本的操作, 在这里把自己总结的笔记记录在这里. 1,V8:192.168.40.10V1: ...

  5. Linux基础知识第七讲,用户权限以及用户操作命令

    目录 Linux基础知识第七讲,用户权限以及用户操作命令 一丶简介linux用户,用户权限,组的概念. 1.1 基本概念 1.2 组 1.3 ls命令查看权限. 二丶用户权限修改命令 1.chmod ...

  6. Linux基础环境_安装配置教程(CentOS7.2 64、JDK1.8、Tomcat8)

    Linux基础环境_安装配置教程 (CentOS7.2 64.JDK1.8.Tomcat8) 安装包版本 1)     VMawre-workstation版本包 地址: https://my.vmw ...

  7. CentOS6安装各种大数据软件 第三章:Linux基础软件的安装

    相关文章链接 CentOS6安装各种大数据软件 第一章:各个软件版本介绍 CentOS6安装各种大数据软件 第二章:Linux各个软件启动命令 CentOS6安装各种大数据软件 第三章:Linux基础 ...

  8. Linux基础入门

    第一节,linux系统简介 一.实验内容 了解 Linux 的历史,Linux 与 Windows 的区别等入门知识. 二.实验要求 阅读linux简介与历史 三.实验步骤 (一).Linux 为何物 ...

  9. Linux基础入门学习笔记20135227黄晓妍

    学习计时:共24小时 读书:1小时 代码:8小时 作业:3小时 博客:12小时 一.学习目标 1. 能够独立安装Linux操作系统   2. 能够熟练使用Linux系统的基本命令   3. 熟练使用L ...

随机推荐

  1. 最近公共祖先 Lowest Common Ancestors

    基于深度的LCA算法:  对于两个结点u.v,它们的深度分别为depth(u).depth(v),对于其公共祖先w,深度为depth(w),u需要向上回溯depth(u)-depth(w)步,v需要d ...

  2. 论Mac与windows的STS下的路径问题

    mac下的 <!-- javaBean生成在哪里 --> <javaModelGenerator targetPackage="com.atcrowdfunding.bea ...

  3. AcWing 275. 传纸条

    #include<iostream> using namespace std ; ; *N][N][N]; int w[N][N]; int n,m; int main() { cin&g ...

  4. CodeForces 1141B

    https://vjudge.net/problem/CodeForces-1141B #include<bits/stdc++.h> using namespace std; int m ...

  5. [JSOI2016]最佳团体 DFS序/树形DP

    题目 洛谷 P4322 [JSOI2016]最佳团体 Description 茜茜的舞蹈团队一共有\(N\)名候选人,这些候选人从\(1\)到\(N\)编号.方便起见,茜茜的编号是\(0\)号.每个候 ...

  6. java继承与多态课后作业

    1.动手实验 源码 class Grandparent {     public Grandparent()  {          System.out.println("GrandPar ...

  7. git免密拉取代码

    里介绍通过ssh公钥的方式免密拉取代码 以linux服务器为例,windows方式是一样的 1.用命令生成ssh key ssh-keygen -t rsa -C "xx@xxxcom&qu ...

  8. cmd命令和快捷键

    命令 含义 盘名: 从C盘到其他盘时输入 dir 查看当前文件夹下的内容 cd 目录名称 选择目录 cd.. 退回当前目录的上一级目录 cd\ 回到根目录 md 目录名称 创建目录 rd 目录名称 删 ...

  9. 1025 PAT Ranking (25分)

    1025 PAT Ranking (25分) 1. 题目 2. 思路 设置结构体, 先对每一个local排序,再整合后排序 3. 注意点 整体排序时注意如果分数相同的情况下还要按照编号排序 4. 代码 ...

  10. react生命周期方法有哪些?

    react生命周期方法有哪些? React 16.3+ getDerivedStateFromProps:在调用render()之前调用,并在每次渲染时调用.需要使用派生状态的情况是很罕见的 comp ...