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

摘要:
1.1 Weblogic 12.2.1.3升级前的说明a.root用户无法安装Weblogic,否则将报告如下错误:/tmp/OraInstall2018-05-22_02-54-09PM/launcher2018-05-22/02-54-09PM.log。为什么root用户不能安装Weblogic?

1、环境探查与准备
  安装jdk和weblogic前需要对进行安装的linux系统硬件和软件环境进行探查确认,以确保支持对jdk1.8.0_144_1和weblogic12.2.1.3和的安装。weblogic12.2.1.3对于jdk及linux操作系统版本的要求在oracle官网上面有详细的详细全面介绍,可自己进行下载xls查阅
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目录下确保有如下两个文件并做相应的配置,否则安装时候回报各种难以预知的错误。

七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第1张七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第2张
[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   insure having all dir read and write authority

ORACLE_HOME=/usr/wls_12.2.1.3.0/wlsInstall

#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>

#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

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>

#Type String (URL format) Indicates the OCM Repeater URL which should be of the format [scheme[Http/Https]]://[repeater host]:[repeater port]

COLLECTOR_SUPPORTHUB_URL=
View Code

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

七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第3张七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第4张
inventory_loc=/home/createWeblogic/oraInventory

inst_group=web
View Code

     备注: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目录下

七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第5张七、linux基础-jdk1.8和weblogic12.2.1.3.0安装第6张
#=======================================================================================
# This is an example of a simple WLST offline configuration script. The script creates 
# a simple WebLogic domain using the Basic WebLogic Server Domain template. The script 
# demonstrates how to open a domain template, create and edit configuration objects, 
# and write the domain configuration information to the specified directory.
#
# This sample uses the demo Derby Server that is installed with your product.
# Before starting the Administration Server, you should start the demo Derby server
# by issuing one of the following commands:
#
# Windows: WL_HOMEcommonderbyinstartNetworkServer.cmd
# UNIX: WL_HOME/common/derby/bin/startNetworkServer.sh
#
# (WL_HOME refers to the top-level installation directory for WebLogic Server.)
#
# The sample consists of a single server, representing a typical development environment. 
# This type of configuration is not recommended for production environments.
#
# Please note that some of the values used in this script are subject to change based on 
# your WebLogic installation and the template you are using.
#
# Usage: 
#      java weblogic.WLST <WLST_script> 
#
# Where: 
#      <WLST_script> specifies the full path to the WLST script.
#=======================================================================================

#=======================================================================================
# Open a domain template.
#=======================================================================================

readTemplate("/usr/wls_12.2.1.3.0/wlsInstall/wlserver/common/templates/wls/wls.jar")

#=======================================================================================
# Configure the Administration Server and SSL port.
#
# To enable access by both local and remote processes, you should not set the 
# listen address for the server instance (that is, it should be left blank or not set). 
# In this case, the server instance will determine the address of the machine and 
# listen on it. 
#=======================================================================================

cd('Servers/AdminServer')
set('ListenAddress','')
set('ListenPort', 7001)

create('AdminServer','SSL')
cd('SSL/AdminServer')
set('Enabled', 'false')
set('ListenPort', 7002)

#=======================================================================================
# Define the user password for weblogic.
#=======================================================================================

cd('/')
cd('Security/base_domain/User/weblogic')
# Please set password here before using this script, e.g. cmo.setPassword('value')
cmo.setPassword('weblogic1')
#=======================================================================================


#=======================================================================================
# Write the domain and close the domain template.
#=======================================================================================

setOption('OverwriteDomain', 'true')
writeDomain('/usr/wls_12.2.1.3.0/wlsInstall/user_projects/domains/app_domain')
closeTemplate()

#=======================================================================================
# Exit WLST.
#=======================================================================================

exit()
View Code

 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安装》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇扒一扒安卓渲染原理c#排序sql语句查询下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Android开机logo修改方法 【转】

本文转载自:http://blog.csdn.net/qq258711519/article/details/7766303 一体机平台开机logo修改方法 1:修改Kernel中的Logo:        若是要替换Kernel中的开机Logo,只需要把内核目录drivers/video/logo下的logo_android_1024_clut224.p...

存储管理工具StorageExplorer的基本使用

本文主要介绍Azure StorageExplorer工具的安装及基本使用 1.打开Azure官方链接:https://www.azure.cn/downloads/  2.按照向导进行安装  3.可以通过如下两种最常用的方法连接Azure存储账号     a.连接一个账号下所有的订阅的所有存储账号           备注:可以通过如下截图提示清...

Windows 环境下 wampserver 与 phpStudy 的环境配置

一. wamperserver     1.下载好安装到本地指定目录,官网下载地址  http://www.wampserver.com   2.根据自己实际的安装路径,D:pcwampserverwamp64inapacheapache2.4.23confextra,找到 apache  的配置文件 httpd-vhosts.conf        3....

ligerUI框架

一、介绍 ligerUI是一个轻量级的前端开发框架。简单的说,就是能够帮助开发快速搭建网页,并且不需要更多的写前端代码,能够在最短的时间内开发出一套美观,优雅的前端界面。 需要掌握的技术有html,css,js,jquery,json,还有一些后端代码能力,不然就不能开发出自己想要的功能咯。 首先进入官网下载一个ligerUI的demo,下载好之后的效果...

大型Java Web项目的架构和部署问题

一位ID是jackson1225的网友在javaeye询问了一个大型Web系统的架构和部署选型问题,希望能提高现有的基于Java的Web应用的服务能力。由于架构模式和部署调优一直是Java社区的热门话题,这个问题引发了很多热心网友的讨论,其中一些意见对其它大型Web项目也有很好的指导意义。在讨论之初jackson1225这样描述了当前的应用的架构和部署方案...

07_RHEL7配置yum源

redhat 默认自带的 yum 源需要注册才能更新。想不花钱也可以更新,就需要替换掉redhat的yum源。 检查是否安装yum包 查看RHEL是否安装了yum,若是安装了,那么又有哪些yum包: [root@localhost ~]# rpm -qa |grep yum 删除redhat自带的yum包 卸载上面显示的所有yum包: [roo...