Install WebLogic Server 12c on Linux (Silent Installation)

Source: Internet
Author: User

Install WebLogic Server 12c on Linux (Silent Installation)

The customer recently installed WebLogic Server 12c on Linux. The customer said that the latest version should be installed. The version number is 12.1.X (12.1.2, 12.1.3 ). At first, we thought that we were using the console to download the binfile, just like the old version, and then executed it step by step on the console. Unexpectedly, since the 12C version, the binfile is not provided and changed to the general jar file (generic. jar) for the whole system ). After trying for half a day, the original installation method was not available and had to be installed on the GUI. Because the server is somewhere else, you cannot run to the host address. So a variety of google, various materials, and finally found a Silent Installation Method. Let's take a look at the following.

PS: with the guidance of a great god in the company, you can install it through a remote graphical interface, that is, the graphical interface is directly displayed on your computer, and you do not need to run it to the host. The installation method will be introduced in the second article!

Install and configure Weblogic 10 in CentOS 6.3

Oracle WebLogic 11g installation and deployment documentation PDF

Deploying Weblogic11g in Linux

Oracle basic tutorial-installing and configuring a single Weblogic instance

Uninstall Weblogic in Linux

Configuration of Weblogic multi-machine Cluster

Weblogic installation and configuration

I. Preparations

1. Create a user group web

[Root @ edwcube3 ~] #
[Root @ edwcube3 ~] # Groupadd web
[Root @ edwcube3 ~] #

2. Create a user weblogic and change the User Password

[Root @ edwcube3 ~] #
[Root @ edwcube3 ~] # Useradd-g web weblogic // Add a user and use the-g parameter to specify a web user group
[Root @ edwcube3 ~]
[Root @ edwcube3 ~] # Passwd weblogic // passwd command to change the password
Changing password for user weblogic.
New UNIX password:
Retype new UNIX password:
Passwd: all authentication tokens updated successfully.
[Root @ edwcube3 ~] #
[Root @ edwcube3 ~] #

3. If jdk is not installed, install jdk

Step 1: Download the compressed package jdk-7-linux-i586.tar.gz from the official website

Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz

[Root @ odstest jdk1.7] $ tar-zxv-f jdk-7u55-linux-i586.tar.gz-C./jdk1.7

Step 3. Move the file/usr/local

Note: You can change the location based on your habits.

[Root @ odstest/] # mv./jdk1.7/usr/local/jdk1.7

Step 4. Configure Environment Variables

Environment components are divided into the entire system, which has been set only for the current user. Here we only set the weblogic user

~ /. Bashrc: effective only for the current user

In ~ /. Add the following parts at the end of 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

Save and execute source ~ /. Bashrc. Make the modification take effect

Log out and log on again to check whether the modification takes effect.

[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 Installation Complete ~

Ii. Start Installation

Silent Mode

First, check the command format:

Java-jar wls_122.16.jar-silent-responseFile file-invPtrLoc file


-Response file: response file

-InvPtrLoc file: initializes the environment file.

Example:

Java-jar wls_122.16.jar-silent-responseFile/home/exampleuser/response/wls. rsp-invPtrLoc/home/exampleuser/oraInst. loc

Document details:

1. Create an oraInst. loc file with the following content:


Inventory_loc =/home/weblogic/oraInventory1 product list directory
# User group name, based on actual Modification
Inst_group = weblogic group name

Used to save some temporary files during installation and the default group name

If you have installed Oracle, you can skip this step without specifying the oraInventory1 directory.

The command can be abbreviated as follows:

Java-jar wls_122.16.jar-silent-responseFile/home/exampleuser/response/wls. rsp

2. Create the wls. rsp response File

You can click Save to produce this file when installing this file on the GUI. The local file content is as follows:

[ENGINE]
# Do not change this.
Response File Version = 1.0.0.0.0
[GENERIC]
# Modify the weblogic installation path as needed
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

I have selected only the most basic Weblogic Server components. The selection of other components is slightly different.

3. After the configuration file is created, you can install it.

[Weblogic @ localhost liaowh] $ java-jar wls_122.16.jar-silent-response/home/weblogic/liaowh/wls12.rsp-invPtrLoc/home/weblogic/liaowh/oraInst. loc
Extracting file ............
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 <libfile> ', or link it with'-z noexecstack '.
Start Oracle Universal Installer

Wait for a while.

Expected results: 1.7
Actual result: 1.7.0 _ 40
Check complete. The overall result of this check is: Pass
CheckJDKVersion check: Successful.
Verifying data...
Copying file...
----------- 20% ---------- 40% ---------- 60% ---------- 80% -------- 100%
The installation of WebLogic Server 12.1.2.0.0 has been completed successfully.
[Weblogic @ localhost liaowh] $

It indicates the operation is successful.

4. Create a domain

Run setWLSEnv. sh to configure the environment variables.

[Weblogic @ localhost bin] $./home/weblogic/Oracle/Middleware12/wlserver/server/bin/setWLSEnv. sh

Then manually create the directory where the domain is stored. The blogger creates a directory in the/home/weblogic/Oracle/Middleware/directory.

[Weblogic @ localhost Middleware12] $ cd user_projects/
[Weblogic @ localhost user_projects] $ mkdir domains
[Weblogic @ localhost user_projects] $ cd domains/
[Weblogic @ localhost domains] $ mkdir hnDomain
[Weblogic @ localhost domains] $ cd hnDomain/
[Weblogic @ localhost hnDomain] $ pwd
/Home/weblogic/Oracle/Middleware12/user_projects/domains/hnDomain
[Weblogic @ localhost hnDomain] $

Go to the domain directory and execute the command

[Weblogic @ localhost hnDomain] $ JAVA_HOME/bin/java $ JAVA_OPTIONS-Xmx1024m-XX: MaxPermSize = 256 m weblogic. Server


Generate various files under the domain, including configuration information such as the Management Server.

Then go to the bin directory and start it. Then you can access

Http: // ip: 7001/console.

Close the work! The previous high-definition big picture without code !!!

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.