Home Database Mysql Tutorial Linux 上安装 WebLogic Server 12c (静默安装)

Linux 上安装 WebLogic Server 12c (静默安装)

Jun 07, 2016 pm 04:33 PM
linux weblogic

最近负责在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 ', or link it with '-z noexecstack'.
启动 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/目录下新建

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What computer configuration is required for vscode What computer configuration is required for vscode Apr 15, 2025 pm 09:48 PM

VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

vscode cannot install extension vscode cannot install extension Apr 15, 2025 pm 07:18 PM

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

Can vscode be used for mac Can vscode be used for mac Apr 15, 2025 pm 07:36 PM

VS Code is available on Mac. It has powerful extensions, Git integration, terminal and debugger, and also offers a wealth of setup options. However, for particularly large projects or highly professional development, VS Code may have performance or functional limitations.

Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

What is vscode What is vscode for? What is vscode What is vscode for? Apr 15, 2025 pm 06:45 PM

VS Code is the full name Visual Studio Code, which is a free and open source cross-platform code editor and development environment developed by Microsoft. It supports a wide range of programming languages ​​and provides syntax highlighting, code automatic completion, code snippets and smart prompts to improve development efficiency. Through a rich extension ecosystem, users can add extensions to specific needs and languages, such as debuggers, code formatting tools, and Git integrations. VS Code also includes an intuitive debugger that helps quickly find and resolve bugs in your code.

How to use VSCode How to use VSCode Apr 15, 2025 pm 11:21 PM

Visual Studio Code (VSCode) is a cross-platform, open source and free code editor developed by Microsoft. It is known for its lightweight, scalability and support for a wide range of programming languages. To install VSCode, please visit the official website to download and run the installer. When using VSCode, you can create new projects, edit code, debug code, navigate projects, expand VSCode, and manage settings. VSCode is available for Windows, macOS, and Linux, supports multiple programming languages ​​and provides various extensions through Marketplace. Its advantages include lightweight, scalability, extensive language support, rich features and version

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

See all articles