Install weblogic12C (Silent Installation) on Linux (1) and linuxweblogic12c

Source: Internet
Author: User

Install weblogic12C (Silent Installation) on Linux (1) and linuxweblogic12c

Recently, weblogic was installed on linux. The leader said that the latest version should be installed. The version number is 12.1.X. 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, after 12C,

The binfile is not provided, and is changed to the general jar file (generic. jar) throughout the 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. As a result, various types of google and materials are found,

Finally, we 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!

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 the web user group [root @ edwcube3 ~] [Root @ edwcube3 ~] # Passwd weblogic // passwd command change 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, you also need to install jdk Step 1: Download the compressed package jdk-7-linux-i586.tar.gzhttp from the official website: // 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 move the file according to your habits.
[root@odstest /]# mv ./jdk1.7 /usr/local/jdk1.7
Step 4. Configure the environment variable environment components to be divided into the entire system, which has been set only for the current user. Here we only set the environment for weblogic users ~ /. Bashrc: only valid for the current user ~ /. Add the following parts at the end of bashrc:
JAVA_HOME=/usr/local/jdk1.7export JRE_HOME=/usr/local/jdk1.7/jreexport CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
Save and execute source ~ /. Bashrc. Exit after the modification takes effect. Log On again to check whether the modification takes effect.
[weblogic@edwcube3 ~]$ java -versionjava 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_121200.jar -silent -responseFile  file -invPtrLoc file
-Response file: response file-invPtrLoc file: initialization environment file example:
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp -invPtrLoc /home/exampleuser/oraInst.loc

 

File details: 1. Create an oraInst. loc file with the following content:
Inventory_loc =/home/weblogic/oraInventory1 product list directory
# Modify the inst_group = weblogic group name based on the actual name of the user group.

 

It is used to save some temporary files during installation, and the default installed group name. If the Oracle product has been installed before, this step can be omitted. You do not need to specify the oraInventory1 directory command, which can be abbreviated as follows:
java -jar wls_121200.jar -silent -responseFile /home/exampleuser/response/wls.rsp
2. Create the wls. rsp response file. You can click Save to produce the file when installing the 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] # weblogic Installation path. Modify ORACLE_HOME =/home/weblogic/Oracle/Middleware # Set this variable value to the Installation Type selected according to your needs. 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 result: 1.7 actual result: 1.7.0 _ 40 Check is completed. The overall result of this check is: The CheckJDKVersion check is successful. Verifying data... copying file... ------------- 20% ---------- 40% ---------- 60% ---------- 80% ---------- 100% -------- WebLogic Server 12.1.2.0.0 installation has been completed successfully. [Weblogic @ localhost liaowh] $
It indicates the operation is successful. 4. Create the domain. Run setWLSEnv. sh to configure the environment variable.
[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=256m 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 to go to the console. Close the work! The previous high-definition big picture without code !!!

 

 

 

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.