weblogic的基础安装
安装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的基础安装的更多相关文章
- CentOS 基础安装
		1. 下载了 CentOS 的最小安装版本 与 VMware,基础安装流程参考百度经验:http://jingyan.baidu.com/article/eae0782787b4c01fec54853 ... 
- Git 基础 —— 安装 配置 别名 对象
		Git 基础学习系列 Git 基础 -- 安装 配置 别名 对象 Git 基础 -- 常用命令 Git 基础 -- 常见使用场景 Git基础 -- Github 的使用 Git 安装 Git下载地址 ... 
- Tomcat:基础安装与使用教程
		Tomcat:基础安装与使用教程 背景 此文记录了 Tomcat 的基本使用方法,主要为了强化记忆. 安装步骤 第一步:下载和安装 Java 下载地址:http://www.oracle.com/te ... 
- Node.js npm基础安装配置&创建第一个VUE项目
		使用之前,我们先来明白这几个东西是用来干什么的. node.js: 一种javascript的运行环境,能够使得javascript脱离浏览器运行.Node.js的出现,使得前后端使用同一种语言,统一 ... 
- Think PHP框架基础安装6.0
		第一步:点击基础安装tp框架composer create-project topthink/think tp 第二步:点击架构多应用模式 拓展composer require topthink/th ... 
- Oracle 数据库基础——安装
		一.数据库基础知识 1.概念 数据库全称数据库管理系统,简称DBMS,是一种在计算机中,针对数据进行管理.存储.共享的一种技术. 2.分类 数据库的发展过程中,按逻辑模型可分为以下几种: 3.关系型数 ... 
- Nginx概念及基础安装--详细讲解
		1.主要内容: Nginx的基础 特性 配置部署 优化(了解) 2.Nginx 是什么? Nginx是一个开源的,支持高性能,高并发的www ... 
- weblogic的下载安装及myeclipse的配置
		weblogic的下载可以参考:http://jingyan.baidu.com/article/c910274b94e179cd371d2d7c.html 安装及myeclipse的配置参考:htt ... 
- 8、网页制作Dreamweaver(jQuery基础:安装、语法)
		在<网页制作Dreamweaver(悬浮动态分层导航)>中,运用到了jQuery的技术,轻松实现了菜单的下拉.显示.隐藏的效果,不必再用样式表一点点地修改,省去了很多麻烦,那么jQuery ... 
随机推荐
- jQuery选择器 :eq() 不能识别变量参数的问题解决方案
			问题: js语法中,引号内变量会直接解释为字符串,因此使用:eq()时参数将被识别为字符串而不是变量指代的内容 如下错误写法: $(".circle span:eq(count-1)&quo ... 
- VIM编辑常用命令
			1.临时使用获取root权限保存文件 :w !sudo tee % 2.多标签编辑文件 :tabnew file 3.切换标签 :tabm N (N为第几个标签,从0开始) 
- 005-Spring Boot配置分析-配置文件application、EnvironmentPostProcessor、Profiles
			一.配置文件application 默认配置文件application.propertie或者application.yml,可同时存在 application.propertie增加配置:local ... 
- Spring Data REST PATCH请求 远程代码执行漏洞案例(CVE-2017-8046)
			恶意的PATCH请求使用精心构造的JSON数据提交到spring-data-rest服务可以执行任意JAVA代码 1. 背景 Spring Data REST是Spring Data项目的一部分,可以 ... 
- echarts移动端中例子总结。
			接下来我总结一下我常用到的几个移动端echarts小例子: 第一步:我先引入自己想要的库 第二步: 给echarts给了一个窗口(有大小的窗口) 第三步: 开始引入你想要的图形的options 我做的 ... 
- 学习使人快乐5-JavaWeb应用的组成结构
			开发JavaWeb应用时,不同类型的文件有严格的存放规则,否则不仅可能会使web应用无法访问,还会导致web服务器启动报错 WebRoot →Web应用所在目录,一般情况下虚拟目录要配置到此文件夹当中 ... 
- iOS之UIApplicatio、AppDelegate
			UIApplication,代表的是整个应用做的事,因此每个程序只能有一个,系统使用的是单例模式,就是[UIApplication sharedApplication]来得到一个实例. 这个单例实例是 ... 
- git操作:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (警告:远程主机标识已更改!)
			问题背景: 前几日,把云服务器系统由centos改成Ubuntu之后,重新搭建的git服务器环境. 问题描述: 从本机不能clone远程git仓库. 报错如下: @@@@@@@@@@@@@@@@@@@ ... 
- datatables隐藏列与createdRow渲染bootstrapSwitch形成的BUG
			背景: 昨天写了一个页面用于规则库的增删改查. 数据使用datatables渲染,后端返回数据由前端进行一次性渲染和分页. 隐藏列: 排序的ID不展示,但是排序又想按照ID来排,所以把ID单独作为一列 ... 
- LOJ.6504.[雅礼集训2018 Day5]Convex(回滚莫队)
			LOJ 莫队.发现只需要维护前驱后继就可以了. 但是加入一个点需要找到它当前的前驱后继,很麻烦还带个\(\log\). 但是如果只有删除某个点,只需要更新一下它的前驱后继即可. 用回滚莫队就好惹. 撤 ... 
