weblogic安装教程(以weblogic 11g为例)
1.下载jdk和weblogic安装介质
一般的搭配是jdk1.5+weblogic92、jdk1.6+weblogic11g(weblogic10.3.6)
jdk历史版本下载链接:http://www.oracle.com/technetwork/java/javase/archive-139210.html
jdk安装详见http://www.cnblogs.com/lsdb/p/6511907.html
weblogic下载链接:http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
2.创建文件系统和用户
对于正式的安装一般需要创建专门的用户和文件系统来安装weblogic
mkdir /weblogic #创建文件系统的挂载目录
lsblk #查看存在的磁盘
fdisk /dev/sdb #假设未用磁盘是sdb,具体视lsblk结果而定,在其中新建物理卷sdb1
pvcreate /dev/sdb1 #对物理卷sdb1进行初始化,为创建卷组做准备
vgcreate appvg /dev/sdb1 #appvg是要创建的vg名,如果要sbd1外还要加入其他物理卷则在sdb1后空格再接着写即可
lvcreate -L 50G -n weblogic appvg #50G为要建的逻辑卷大小,weblogic为要建的逻辑卷卷名,appvg为刚建的卷组名
mkfs.ext4 /dev/mapper/appvg-weblogic #对新建的逻辑卷进行格式化
mount /dev/mapper/appvg-weblogic /weblogic #将逻辑卷挂载
echo "/dev/mapper/appvg-weblogic /weblogic ext4 defaults 0 0" >> /etc/fstab
#将挂载信息写入挂载文件避免每次系统重启都得手动挂载 useradd -U -d /weblogic weblogic #创建weblogic系统用户
echo "weblogic" | passwd --stdin weblogic #修改weblogic用户密码
cp /etc/skel/.bash* /weblogic #将基本的.bash复制到家目录
chown -R weblogic:weblogic /weblogic #将家目录下文件全赋给weblogic
3.安装weblogic
/opt/java6_64/bin/java -jar wls1036_generic.jar #执行安装命令
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100% <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Welcome:
-------- This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".
Enter [Exit][Next]> <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory:
--------------------------------- "Middleware Home" = [Enter new value or use default
"/home/ls/Oracle/Middleware"] Enter new Middleware Home OR [Exit][Previous][Next]> /weblogic #输入设定的weblogic安装目录 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory:
--------------------------------- "Middleware Home" = [/weblogic] Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/home/ls/Oracle/Middleware]
Enter option number to select OR [Exit][Previous][Next]> #回车确认更改 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates:
------------------------------ Provide your email address for security updates and to initiate configuration manager. 1|Email:[]
2|Support Password:[]
3|Receive Security Update:[Yes] Enter index number to select OR [Exit][Previous][Next]> 3 #输入3设定更新 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates:
------------------------------ Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] Enter [Yes][No]? No #输入No取消更新 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates:
------------------------------ Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"] ** Do you wish to bypass initiation of the configuration manager and
** remain uninformed of critical security issues in your configuration? Enter [Yes][No]? Yes #输入Yes确定取消更新 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates:
------------------------------ Provide your email address for security updates and to initiate configuration manager. 1|Email:[]
2|Support Password:[]
3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][Next]> #回车进入下一步 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates:
------------------------------ Provide your email address for security updates and to initiate configuration manager. 1|Email:[]
2|Support Password:[]
3|Receive Security Update:[No] Enter index number to select OR [Exit][Previous][Next]> #回车进入下一步 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Install Type:
-------------------- Select the type of installation you wish to perform. ->1|Typical
| Install the following product(s) and component(s):
| - WebLogic Server
| - Oracle Coherence 2|Custom
| Choose software products and components to install and perform optional
|configuration. Enter index number to select OR [Exit][Previous][Next]> 2 #输入2选择自定义安装 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Products and Components:
------------------------------- Release 10.3.6.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10] x
| |_____Server Examples [1.11]
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x
|_____Coherence Examples [2.2] *Estimated size of installation: 690.2 MB Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.10 #输入1.10取消UDDI的安装,该组件存在服务端跨站请求漏洞 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Products and Components:
------------------------------- Release 10.3.6.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10]
| |_____Server Examples [1.11]
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x
|_____Coherence Examples [2.2] *Estimated size of installation: 682.0 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> #回车确认 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM):
--------------------------------------------------- JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed. 1|Add Local Jdk
2|/opt/jdk1.6.0_105[x] *Estimated size of installation: 682.0 MB Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> #回车确认jdk <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Product Installation Directories:
---------------------------------------- Middleware Home Directory: [/weblogic] Product Installation Directories: 1|WebLogic Server: [/weblogic/wlserver_10.3]
2|Oracle Coherence: [/weblogic/coherence_3.7]
Enter index number to select OR [Exit][Previous][Next]> #回车 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> The following Products and JDKs will be installed:
-------------------------------------------------- WebLogic Platform 10.3.6.0
|_____WebLogic Server
| |_____Core Application Server
| |_____Administration Console
| |_____Configuration Wizard and Upgrade Framework
| |_____Web 2.0 HTTP Pub-Sub Server
| |_____WebLogic SCA
| |_____WebLogic JDBC Drivers
| |_____Third Party JDBC Drivers
| |_____WebLogic Server Clients
| |_____WebLogic Web Server Plugins
| |_____Evaluation Database
|_____Oracle Coherence
|_____Coherence Product Files *Estimated size of installation: 682.2 MB Enter [Exit][Previous][Next]> #回车确认安装
Apr 11, 2017 10:17:43 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory. <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Installing files.. 0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************] Performing String Substitutions... <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Configuring OCM... 0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************] Creating Domains... <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Installation Complete Congratulations! Installation is complete. Press [Enter] to continue or type [Exit]> #回车完成 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Clean up process in progress ...
[ls@ls ~]$
4.安装补丁
安装补丁前应先停止weblogic(bsu.sh参数可通过./bsu.sh -help查看)。
cd /weblogic/utils/bsu/
mkdir cache_dir && cd cache_dir
unzip /tmp/p23743997_1036_Generic.zip
mv patch-catalog_24474.xml patch-catalog.xml #此4条是创建存放补丁的目录,并将补丁解压 cd ..
perl -i -ne 's/256/2048/;s/512/2048/;print;' bsu.sh #修改bsu.sh文件中JVM占用内存的范围,根据自身机器内存大小分配,占比过大会导致机器卡死
./bsu.sh -install -patch_download_dir=/weblogic/utils/bsu/cache_dir/ -patchlist=K25M -prod_dir=/weblogic/wlserver_10./ #执行安装补丁,依次指出补丁所在目录、补丁名称、weblogic主目录;安装十多到三十多分钟不等;出现Checking for conflicts...一般是开始打了
./bsu.sh -prod_dir=/weblogic/wlserver_10. -status=applied -verbose -view #查看已安装的补丁,后边列出的Patch ID就是已打的补丁
执行bsu.sh打补丁报错:No X11 DISPLAY variable was set, but this program performed an operation which requries it--设置DISPLAY即可,export DISPLAY=localhost:0
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space--一般是bsu.sh中分配的jvm内存不足将其改大些(默认-Xms256m -Xmx512m,至少要-Xms512m -Xmx2048m)
至此weblogic安装已算完成,创域参见“weblogic创建domain教程”。
参考:
http://blog.sina.com.cn/s/blog_6cf467320100m2q1.html
weblogic安装教程(以weblogic 11g为例)的更多相关文章
- Greenplum 源码安装教程 —— 以 CentOS 平台为例
Greenplum 源码安装教程 作者:Arthur_Qin 禾众 Greenplum 主体以及orca ( 新一代优化器 ) 的代码以可以从 Github 上下载.如果不打算查看代码,想下载编译好的 ...
- WebSphere安装教程(WAS6.1为例)
1.网络准备 我们选择图形界面安装,如果堡垒机是windows则要在目标机器安装桌面环境并开启vcnserver:如果堡垒机是Linux则在堡垒机安装桌面环境和vncserver,然后将目标机的DIS ...
- WebSphere静默安装教程(WAS6.1为例)
1.安装WebSphere 解压守装包: tar -zxf was_soft_64-bit.tar.gz 进入解压出的WAS目录编缉responsefile.nd.txt,将对应选项修值改成以下模样( ...
- Pygame 框架安装教程(Python3.6为例)
1.python版本是3.6,最新的pygame是1.9.3,这两个最好都用32位的. pygame1.9.3下载地址:http://www.lfd.uci.edu/~gohlke/pythonlib ...
- Tomcat安装教程及常见错误解决方法
目录 Tomcat安装教程及常见错误解决方法 一.安装前准备 ·熟悉自己电脑的操作系统版本(32位or64位) ·保证电脑上已经装好JDK,并且已经设置好环境变量. 二.Tomcat安装教程(以Tom ...
- Weblogic安装配置教程
一.WebLogic的介绍 WebLogic是美国bea公司出品的一个application server,确切的说是一个基于Javaee架构的中间件,纯java开发的,最新版本WebLogic ...
- weblogic安装(无界面静默安装)
一.环境准备 1. 用户准备 Generic通用版weblogic不能用ROOT用户安装,如无其他用户需先创建用户,创建用户步骤此处略过 2. 下载weblogic 在官网下载weblogic,将下载 ...
- weblogic 安装部署详解
0x01 weblogic下载安装 去Oracle官网下载Weblogic 10.3.6,选择Generic版本,各版本选择下载地址:http://www.oracle.com/technetwork ...
- weblogic系列漏洞整理 -- 1. weblogic安装
目录 0. 概述 1. 下载安装Java环境 2. 下载安装weblogic 安装 部署domain域 进入weblogic 3. 排错 如果出现如下错误 0. 概述 WebLogic是美国Oracl ...
随机推荐
- iPhone 尺寸 iPhonex
http://tool.lanrentuku.com/guifan/ui.html 这是本人复制的链接,,如有不适用,,请;联系本人删除链接,,谢谢. iPhone x尺寸 1125x2436@3x ...
- RN 实现简易浏览器
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Dimensions, ...
- Pandas 基础(1) - 初识及安装 yupyter
Hello, 大家好, 昨天说了我会再更新一个关于 Pandas 基础知识的教程, 这里就是啦......Pandas 被广泛应用于数据分析领域, 是一个很好的分析工具, 也是我们后面学习 machi ...
- 性能跃升50%!解密自主研发的金融级分布式关系数据库OceanBase 2.0
小蚂蚁说: 相信大家对蚂蚁金服自主研发的金融级分布式关系数据库OceanBase的故事不再陌生了.在刚刚过去的2018年天猫双11中,成交额2135亿再次创造了新纪录,而支撑今年双11的支付宝核心链路 ...
- TypeError: add() argument after * must be an iterable, not Settings的错误原因
在抄代码的时候发现有个错误: TypeError: add() argument after * must be an iterable, not Settings 看不懂,百度才知道原因,原来是第2 ...
- jq ‘’操作‘’伪元素
1. 伪元素非 dom 元素,jq无法操作,但可以间接影响. 2. 操作方式 2.1 修改类 <!DOCTYPE html> <html lang="en"> ...
- ArcFace 2.0 Demo [C++]
环境: win10(10.0.16299.0)+ VS2017 sdk版本:ArcFace v2.0 OPENCV3.43版本 x64平台Debug.Release配置都已通过编译 下载地址:http ...
- Inception Network
1. 下图为一个Inception 模块,即将输入的图像通过多种过滤器或者池化操作后,全部再给拼起来形成新的图像. 2. Inception 网络就是讲将多个Inception模块连起来而已,如下图的 ...
- HDU 3949 XOR
3949 思路: 线性基,线性基的每个元素尽可能小 将k转换成二进制与排好序的线性基相对应 如果线性基的个数小于n,说明n个元素线性相关,所以可以构成0,k要减1 代码: #pragma GCC op ...
- LeetCode--434--字符串中的单词数
问题描述: 统计字符串中的单词个数,这里的单词指的是连续的不是空格的字符. 请注意,你可以假定字符串里不包括任何不可打印的字符. 示例: 输入: "Hello, my name is Joh ...