安装java环境

不能使用centos自带的openjdk  必须使用源码安装

把下载的jdk-8u181-linux-x64.tar 解压到 /usr/src目录下      tar zxvf jdk-8u181-linux-x64.tar.gz -C /usr/src

[root@hz-ds-itstool--- weblogic]# rpm -qa | grep java
javapackages-tools-3.4.-.el7.noarch
java-1.8.-openjdk-headless-1.8.0.181-.b13.el7_5.x86_64
python-javapackages-3.4.-.el7.noarch
tzdata-java-2018e-.el7.noarch
[root@hz-ds-itstool--- weblogic]# rpm -e --nodeps `rpm -qa | grep java`

删除已经安装的openjdk

[root@hz-ds-itstool--- src]# pwd
/usr/src
[root@hz-ds-itstool--- src]# cd /etc/profile.d/
[root@hz-ds-itstool--- profile.d]# ls
256term.csh bash_completion.sh colorgrep.sh colorls.sh lang.csh less.csh which2.csh
256term.sh colorgrep.csh colorls.csh java.sh lang.sh less.sh which2.sh
[root@hz-ds-itstool--- profile.d]# vi java.sh export JAVA_HOME=/usr/src/jdk1..0_181
export PATH=$PATH:$JAVA_HOME/bin

配置jdk

source /etc/profile

java -version

安装weblogic

[root@hz-ds-itstool--- ~]# groupadd weblogic
[root@hz-ds-itstool--- ~]# useradd weblogic -g weblogic
[root@hz-ds-itstool--- ~]# echo "weblogic" | passwd --stdin weblogic
Changing password for user weblogic.
passwd: all authentication tokens updated successfully.
[root@hz-ds-itstool--- ~]# cp fmw_12.2.1..0_wls.jar /home/weblogic/
[root@hz-ds-itstool--- ~]# cd /home/weblogic/
[root@hz-ds-itstool--- weblogic]# ls
fmw_12.2.1..0_wls.jar

创建普通用户

非静默安装一般要求启动图形界面 这种安装方式不适合在命令行窗口安装    java     -jar       fmw_12.2.1.3.0_wls.jar

[weblogic@hz-ds-itstool--- ~]$ java -jar fmw_12.2.1..0_wls.jar
Launcher log file is /tmp/OraInstall2018--13_11--07AM/launcher2018--13_11--07AM.log.
Extracting the installer . . . . . . Done
Checking if CPU speed is above MHz. Actual 2199.996 MHz Passed
Checking monitor: must be configured to display at least colors. Actual unknown. Failed <<<<
Checking swap space: must be greater than MB. Actual MB Passed
Checking if this platform requires a -bit JVM. Actual Passed (-bit not required)
Checking temp space: must be greater than MB. Actual MB Passed Some system prerequisite checks failed.
You must fulfill these requirements before continuing. Continue? (yes [y] / no [n]) [n]
y
You have confirmed that the product can be installed on this platform.
Continuing with the installation. Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018--13_11--07AM
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$(X11GraphicsEnvironment.java:)
at sun.awt.X11GraphicsEnvironment$.run(X11GraphicsEnvironment.java:)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:)
at java.awt.Toolkit$.run(Toolkit.java:)
at java.awt.Toolkit$.run(Toolkit.java:)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:)
at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:)
at oracle.as.install.engine.util.LookAndFeelGenerator.loadLookAndFeel(LookAndFeelGenerator.java:)
at oracle.as.install.engine.util.LookAndFeelGenerator.setLookAndFeel(LookAndFeelGenerator.java:)
at oracle.as.install.engine.modules.presentation.ui.common.dialogs.SpecifyInventoryDirectoryDialog.showDialog(SpecifyInventoryDirectoryDialog.java:)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:) The log(s) can be found here: /tmp/OraInstall2018--13_11--07AM.

非静默安装错误

使用静默安装模式 使用这种方式必须指定安装时候的应答文件 作用类似于自动化安装操作系统的kickstart文件 这样就可以实现自动化安装 无需人工干预

java -jar fmw_12.2.1.3.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /home/weblogic/oraInst.loc

[root@hz-ds-itstool--- weblogic]# pwd
/home/weblogic
[root@hz-ds-itstool--- weblogic]# ls
fmw_12.2.1..0_wls.jar oracle_home oraInst.loc oraInventory wls.rsp [root@hz-ds-itstool--- weblogic]# vi oraInst.loc inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic [root@hz-ds-itstool--- weblogic]# vi wls.rsp [ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/weblogic/oracle_home
#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>
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>
COLLECTOR_SUPPORTHUB_URL=

部署目录结构

[weblogic@hz-ds-itstool--- ~]$ java -jar fmw_12.2.1..0_wls.jar  -silent -responseFile /home/weblogic/wls.rsp  -invPtrLoc /home/weblogic/oraInst.loc
Launcher log file is /tmp/OraInstall2018--13_12--09PM/launcher2018--13_12--09PM.log.
Extracting the installer . . . . . . . . . Done
Checking if CPU speed is above MHz. Actual 2199.996 MHz Passed
Checking swap space: must be greater than MB. Actual MB Passed
Checking if this platform requires a -bit JVM. Actual Passed (-bit not required)
Checking temp space: must be greater than MB. Actual MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018--13_12--09PM
Log: /tmp/OraInstall2018--13_12--09PM/install2018--13_12--09PM.log
Copyright (c) , , Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Starting check : CertifiedVersions
Expected result: One of oracle-, oracle-, redhat-, redhat-, SuSE-, SuSE-
Actual Result: redhat-null
Check complete. The overall result of this check is: Passed
CertifiedVersions Check: Success. Starting check : CheckJDKVersion
Expected result: 1.8.0_131
Actual Result: 1.8.0_181
Check complete. The overall result of this check is: Passed
CheckJDKVersion Check: Success. Validations are enabled for this session.
Verifying data
Copying Files
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete :
Percent Complete : The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.3. completed successfully.
Logs successfully copied to /home/weblogic/oraInventory/logs.

部署结果

[weblogic@hz-ds-itstool--- ~]$ ls
fmw_12.2.1..0_wls.jar oracle_home oraInst.loc oraInventory wls.rsp
[weblogic@hz-ds-itstool--- ~]$ cd oracle_home
[weblogic@hz-ds-itstool--- oracle_home]$ ls
cfgtoollogs inventory oracle_common oui wlserver
coherence OPatch oraInst.loc root.sh
[weblogic@hz-ds-itstool--- oracle_home]$ cd wlserver/
[weblogic@hz-ds-itstool--- wlserver]$ ls
common modules orasocket plugins server
[weblogic@hz-ds-itstool--- wlserver]$ cd common/
[weblogic@hz-ds-itstool--- common]$ ls
bin deployable-libraries derby dpct images lifecycle templates wlst
[weblogic@hz-ds-itstool--- common]$ cd bin
[weblogic@hz-ds-itstool--- bin]$ ls
config.sh pack.sh unpack.sh wlscontrol.sh wlsifconfig.sh wlst.sh
[weblogic@hz-ds-itstool--- bin]$ export MW_HOME="/home/weblogic/oracle_home"
[weblogic@hz-ds-itstool--- bin]$ export WL_HOME="/home/weblogic/oracle_home/oracle_common"
[weblogic@hz-ds-itstool--- bin]$ ./wlst.sh
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin. Initializing WebLogic Scripting Tool (WLST) ... Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away. Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands wls:/offline>

启动wlst脚本

使用wlst脚本自动执行脚本

[root@hz-ds-itstool--- bin]# find / -name wlst.sh
/home/weblogic/oracle_home/oracle_common/common/bin/wlst.sh #已经被废弃
/home/weblogic/oracle_home/wlserver/common/bin/wlst.sh vi create_domain.py readTemplate("/home/weblogic/oracle_home/wlserver/common/templates/wls/wls.jar")
cd('Servers/AdminServer')
set('ListenAddress','')
set('ListenPort',)
cd('/')
cd('Security/base_domain/User/weblogic')
cmo.setPassword('root123456')
setOption('OverwriteDomain','true')
writeDomain('/home/weblogic/oracle_home/user_pros/domains/test_domain')
closeTemplate()
exit() #执行创建命令
sh /home/weblogic/oracle_home/wlserver/common/bin/wlst.sh create_doman.py #跳转到创建域的根目录下
[root@hz-ds-itstool--- bin]# cd /home/weblogic/oracle_home/user_pros/domains/test_domain
[root@hz-ds-itstool--- test_domain]# ls
autodeploy config edit.lok init-info orchestration security
bin console-ext fileRealm.properties lib original servers
common derby.log fileRealm.properties.bak nodemanager resources startWebLogic.sh #执行启动脚本
./startWeblogic.sh
或者nohup startWeblogic.sh > note.log & tail -f note.log #查看是否监听端口
[root@hz-ds-itstool--- ~]# ss -tnl
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN *: *:*
LISTEN 127.0.0.1: *:*
LISTEN *: *:*
LISTEN ::: :::*
LISTEN ::: :::*
LISTEN ::ffff:127.0.0.1: :::*
LISTEN ::: :::*
LISTEN ::ffff:10.199.137.5: :::*
LISTEN ::ffff:127.0.0.1: :::*
LISTEN ::: :::*
LISTEN ::: :::*
LISTEN ::ffff:10.199.137.5: :::*
LISTEN ::ffff:127.0.0.1: :::* #打开浏览器访问对应的url
http://192.168.1.1:7008/console

weblogic的基础安装的更多相关文章

  1. CentOS 基础安装

    1. 下载了 CentOS 的最小安装版本 与 VMware,基础安装流程参考百度经验:http://jingyan.baidu.com/article/eae0782787b4c01fec54853 ...

  2. Git 基础 —— 安装 配置 别名 对象

    Git 基础学习系列 Git 基础 -- 安装 配置 别名 对象 Git 基础 -- 常用命令 Git 基础 -- 常见使用场景 Git基础 -- Github 的使用 Git 安装 Git下载地址 ...

  3. Tomcat:基础安装与使用教程

    Tomcat:基础安装与使用教程 背景 此文记录了 Tomcat 的基本使用方法,主要为了强化记忆. 安装步骤 第一步:下载和安装 Java 下载地址:http://www.oracle.com/te ...

  4. Node.js npm基础安装配置&创建第一个VUE项目

    使用之前,我们先来明白这几个东西是用来干什么的. node.js: 一种javascript的运行环境,能够使得javascript脱离浏览器运行.Node.js的出现,使得前后端使用同一种语言,统一 ...

  5. Think PHP框架基础安装6.0

    第一步:点击基础安装tp框架composer create-project topthink/think tp 第二步:点击架构多应用模式 拓展composer require topthink/th ...

  6. Oracle 数据库基础——安装

    一.数据库基础知识 1.概念 数据库全称数据库管理系统,简称DBMS,是一种在计算机中,针对数据进行管理.存储.共享的一种技术. 2.分类 数据库的发展过程中,按逻辑模型可分为以下几种: 3.关系型数 ...

  7. Nginx概念及基础安装--详细讲解

    1.主要内容: Nginx的基础           特性           配置部署           优化(了解) 2.Nginx 是什么? Nginx是一个开源的,支持高性能,高并发的www ...

  8. weblogic的下载安装及myeclipse的配置

    weblogic的下载可以参考:http://jingyan.baidu.com/article/c910274b94e179cd371d2d7c.html 安装及myeclipse的配置参考:htt ...

  9. 8、网页制作Dreamweaver(jQuery基础:安装、语法)

    在<网页制作Dreamweaver(悬浮动态分层导航)>中,运用到了jQuery的技术,轻松实现了菜单的下拉.显示.隐藏的效果,不必再用样式表一点点地修改,省去了很多麻烦,那么jQuery ...

随机推荐

  1. MySQL查询表中某个字段的重复数据

    1. 查询SQL表中某个字段的重复数据 SELECT user_name,COUNT(*) AS count FROM db_user_info GROUP BY user_name HAVING c ...

  2. bzoj 3238

    后缀数组+单调栈的应用 首先我们研究一下这个表达式,可以发现前半部分与串的情况并没有关系,而只是跟串的长度有关,所以我们先把前半部分算出来: 于是我们只需计算出即可 那么可以发现,对于排名分别为i,j ...

  3. ubuntu的磁盘扩容

    前言:以前项目的人给ubuntu虚拟机分配磁盘空间走的默认,导致后期/根和swap空间跟不上需求,需要扩容 流程如下: 1.先添加块硬盘,命令行输入fdisk -l,会发现多了个/dev/sdb(vd ...

  4. Make Eudict for reviewing example sentences

    Recently, I've started an activity of recording typical and nice English sentences from dictionaries ...

  5. python的单、双、多分支流程控制

    if流程控制总结: 1.当满足条件时,执行满足条件的代码. 2.当执行完if语句内代码,程序继续往下执行. 单分支: if 条件成立,执行满足条件的代码 如下: if a>50: print(' ...

  6. Nginx 和 IIS 实现动静分离(转)

    转载地址:https://www.cnblogs.com/paul8339/p/5825201.html 动静分离,说白了,就是将网站静态资源(HTML,JavaScript,CSS,img等文件)与 ...

  7. js分析 汽_车_之_家 js生成css伪元素 hs_kw44_configUS::before

    0.参考 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Pseudo-elements https://developer.mozilla.org/ ...

  8. WPF中的逻辑树和可视化树

    WPF中的逻辑树是指XAML元素级别的嵌套关系,逻辑树中的节点对应着XAML中的元素. 为了方便地自定义控件模板,WPF在逻辑树的基础上进一步细化,形成了一个“可视化树(Visual Tree)”,树 ...

  9. Anaconda3 tensorflow安装 及ModuleNotFoundError: No module named 'tensorflow' 解答

    Anaconda3 的安装,参考:手把手教你如何安装Tensorflow(Windows和Linux两种版本) tensorflow的安装,参考:深度学习(TensorFlow)环境搭建:(三)Ubu ...

  10. C - 树的统计Count - 树链剖分

    思路 :树剖模板,线段树维护即可. #include<bits/stdc++.h> using namespace std; #define MID int m = (l+r)/2 #de ...