Linux 上安装 WebLogic Server 12c (静默安装)
最近负责在Linux上安装WebLogic Server 12c,客户说要安装最新的版本,版本号为 12.1.X(12.1.2,12.1.3)。开始以为和旧版安装一
最近负责在Linux上安装WebLogic Server 12c,客户说要安装最新的版本,版本号为 12.1.X(12.1.2,12.1.3)。开始以为和旧版安装一样,使用控制台的方式,下载bin文件,然后一步步在console执行下来就行了。万万没想到,从12C版本后,bin文件不提供了,改成全系统通用的jar文件 (generic.jar)。试了半天原来那种安装方式不能用了,非得用图形界面安装。由于服务器是在其他地方,肯定不能跑到主机的地址那边。于是各种google、各种找材料,最后终于找到一种静默方式的安装。大家看下文。
PS:经过公司一位大神的指导,可以通过远程图形界面的方式进行安装,即把图形界面直接显示在自己的电脑上,不需要跑到主机的地方。将在第二篇中进行介绍安装方式!
CentOS 6.3安装配置Weblogic 10
Oracle WebLogic 11g 安装部署文档 PDF
Linux部署Weblogic11g
Oracle基础教程之安装与配置Weblogic单实例
Linux下Weblogic卸载
Weblogic多机器集群的配置
Weblogic的安装和配置
一、前期准备
1.新建用户组 web
[root@edwcube3 ~]#
[root@edwcube3 ~]# groupadd web
[root@edwcube3 ~]#
2.新建用户weblogic 并修改用户密码
[root@edwcube3 ~]#
[root@edwcube3 ~]# useradd -g web weblogic //添加用户,并用-g参数来制定 web用户组
[root@edwcube3 ~]
[root@edwcube3 ~]# passwd weblogic //passwd命令修改密码
Changing password for user weblogic.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@edwcube3 ~]#
[root@edwcube3 ~]#
3.如果没有安装jdk的话,还需要安装jdk
第一步:从官网下载压缩包 jdk-7-linux-i586.tar.gz
[root@odstest jdk1.7]$ tar -zxv -f jdk-7u55-linux-i586.tar.gz -C ./jdk1.7
第三步.移动文件/usr/local
注:具体位置可以根据用户习惯自己移动
[root@odstest /]# mv ./jdk1.7 /usr/local/jdk1.7
第四步.配置环境变量
环境分量分为整个系统的,已经只针对当前用户设置的,我们这边只对weblogic用户设置
~/.bashrc :仅对当前用户生效
在 ~/.bashrc 最后添加以下部分
JAVA_HOME=/usr/local/jdk1.7
export JRE_HOME=/usr/local/jdk1.7/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
保存,执行 source ~/.bashrc 。使修改生效
退出,重新登陆,查看是否生效
[weblogic@edwcube3 ~]$ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Server VM (build 24.0-b56, mixed mode)
[weblogic@edwcube3 ~]$
[weblogic@edwcube3 ~]$
jdk安装完毕~
二、开始安装
Slient Mode静默方式
首先看命令的格式:
java -jar wls_121200.jar -silent -responseFile file -invPtrLoc file
-response file:响应文件
-invPtrLoc file:初始化环境文件
具体例子:
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp -invPtrLoc /home/exampleuser/oraInst.loc
文件详解:
1.创建 oraInst.loc 文件,内容如下
inventory_loc=/home/weblogic/oraInventory1 产品清单目录
#用户的组名称,根据实际的修改
inst_group=weblogic 组名称
用来保存安装时的一些临时文件,和默认安装的组名称
如果原来安装过Oracle的产品那么这步可以省略,不需要指定oraInventory1 目录
命令能够简写如下:
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp
2.创建 wls.rsp 响应文件
这个文件你可以在图形界面安装时,点击保存生产该文件。本机使用的文件内容如下:
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#weblogic的安装路径,,根据自己的需要修改
ORACLE_HOME=/home/weblogic/Oracle/Middleware
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
我这边只选择了最基本的Weblogic Server组件,选择其他会稍有不同。
3.配置文件创建后,就可以进行安装了
[weblogic@localhost liaowh]$ java -jar wls_121200.jar -silent -response /home/weblogic/liaowh/wls12.rsp -invPtrLoc /home/weblogic/liaowh/oraInst.loc
正在提取文件............
Java HotSpot(TM) Server VM warning: You have loaded library /tmp/orcl305077197089615615.tmp/Disk1/install/linux/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c
启动 Oracle Universal Installer
等一会,出现
预期的结果: 1.7
实际结果: 1.7.0_40
检查完成。此次检查的总体结果为: 通过
CheckJDKVersion 检查: 成功。
正在验证数据...
正在复制文件...
-----------20%----------40%----------60%----------80%--------100%
WebLogic Server 12.1.2.0.0 的 installation 已成功完成。
[weblogic@localhost liaowh]$
就表示成功了。
4.接下来要创建域domain
首先执行setWLSEnv.sh 来配置环境变量
[weblogic@localhost bin]$ ./home/weblogic/Oracle/Middleware12/wlserver/server/bin/setWLSEnv.sh
然后手动创建域存放的目录,博主在/home/weblogic/Oracle/Middleware/目录下新建

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.

Gate.io is a popular cryptocurrency exchange that users can use by downloading its installation package and installing it on their devices. The steps to obtain the installation package are as follows: Visit the official website of Gate.io, click "Download", select the corresponding operating system (Windows, Mac or Linux), and download the installation package to your computer. It is recommended to temporarily disable antivirus software or firewall during installation to ensure smooth installation. After completion, the user needs to create a Gate.io account to start using it.

Ouyi, also known as OKX, is a world-leading cryptocurrency trading platform. The article provides a download portal for Ouyi's official installation package, which facilitates users to install Ouyi client on different devices. This installation package supports Windows, Mac, Android and iOS systems. Users can choose the corresponding version to download according to their device type. After the installation is completed, users can register or log in to the Ouyi account, start trading cryptocurrencies and enjoy other services provided by the platform.

Gate.io is a highly acclaimed cryptocurrency trading platform known for its extensive token selection, low transaction fees and a user-friendly interface. With its advanced security features and excellent customer service, Gate.io provides traders with a reliable and convenient cryptocurrency trading environment. If you want to join Gate.io, please click the link provided to download the official registration installation package to start your cryptocurrency trading journey.

This tutorial guides you through installing and configuring Nginx and phpMyAdmin on an Ubuntu system, potentially alongside an existing Apache server. We'll cover setting up Nginx, resolving potential port conflicts with Apache, installing MariaDB (
