Recently responsible for installing WebLogic on Linux, the leader said to install the latest version, the version number is 12.1.X. Start thinking that as with the previous version of the installation, use the console to download the bin file, and then step by step in the console execution down the line. Never thought, since the 12C version,
The bin file is not provided, change to the system common jar file (Generic.jar). Tried for a half day originally that kind of installation method cannot use, must use the graphical interface installs. Because the server is somewhere else, it must not run to the address of the host side. So all kinds of Google, a variety of materials to find,
Finally found a silent way to install. Let's look at the following.
PS: After the company A great God's guidance, can be installed through the remote graphical interface, that is, the graphical interface directly displayed on their own computer, do not need to run to the host place. The installation method will be described in the second article!
first, pre-preparation
1. Create a new user group web
[[Email protected] ~] # [[Email protected] ~] # Groupadd Web [[Email protected] ~] #
2. Create a new user WebLogic and modify the user password
[[Email protected] ~] # [[Email protected] ~] # useradd-g Web WebLogic //Add users and use the-G parameter to develop a Web user group [[email protected]edwcube3 ~][root@edwcube3 ~] # passwd weblogic //passwd command to modify the password for user WebLogic. New Unix Password:retype new UNIX Password:passwd:all authentication tokens updated successfully. [Root@edwcube3 ~]# [[email protected] ~]#
3. If you do not have a JDK installed, you will need to install the JDK first step: Download the archive from the official website jdk-7-linux-i586.tar.gzhttp://download.oracle.com/otn-pub/java/jdk/7/ Jdk-7-linux-i586.tar.gz
- F jdk-7u55-linux-i586.tar.gz -C/jdk1.7
Step three. Move the file/usr/local Note: The specific location can be used by users to move their own
[[email protected]/] # mv./jdk1.7/usr/local/jdk1.7
Fourth step. Configure environment variables The environment component is divided into the whole system, which has been set only for the current user, we only set ~/.BASHRC for WebLogic User: Only for the current user ~/.BASHRC add the following section last
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, execute source ~/.BASHRC. Make the changes effective exit, re-login, check whether it takes effect
[Email protected] ~]$ java-"1.7.0_40"1.7.0_40-24.0-b56 , mixed mode) [WebLogic@edwcube3 ~]$ [WebLogic
JDK Installation Complete ~
Second, start the installation
Slient mode silent mode
First look at the format of the command:
Java-jar wls_121200.jar-silent-responsefile file-invptrloc file
-response file: Response files-invptrloc: Initialization environment file specific examples:
Java-jar wls_121200.jar-silent-responsefile/home/exampleuser/response/wls.rsp-invptrloc/home/exampleuser/ Orainst.loc
Detailed Documentation:1. Create a Orainst.loc file with the following content
inventory_loc=/home/weblogic/oraInventory1 Product List Catalog
#用户的组名称, Inst_group =weblogic group name according to the actual modification
Used to save some temporary files at installation time, and the default installed group name if you have previously installed Oracle products then this step can be omitted and the OraInventory1 Directory command is not required to be abbreviated as follows:
Java-jar WLS_121200.JAR-SILENT-RESPONSEFILE/HOME/EXAMPLEUSER/RESPONSE/WLS.RSP
2.CreateWLS.RSPResponse FileThis file can be installed in the graphical interface when you click Save to produce the file. The contents of the file used by this machine are as follows:
[ENGINE] # Does not change the this . Response File version=1.0.0.0.0[GENERIC]#WebLogic Installation path, modify the oracle_home=/home/according to your needs weblogic/oracle/Middleware #Set This variable value to the installation Type selected. E.g. WebLogic Server, Coherence, complete with Examples. Install_type=weblogic Server
My side only selected the most basic WebLogic server components, the selection of others will be slightly different. 3. Once the profile has been created, it can be installed
[Email protected] liaowh]$ Java-jar wls_121200.jar-silent-response/home/weblogic/liaowh/wls12.rsp-invptrloc/home/ weblogic/liaowh//tmp/orcl305077197089615615.tmp/disk1/install/linux/-C <libfile> ', or Link it with '-z noexecstack '. Start Oracle Universal Installer
Wait a minute, come on.
Expected Result: 1.71.7. 0_40 check is complete. The overall result of this check is: through checkjdkversion check: success. Validating data ... Copying Files ... The 100% of the-----------20%----------40%----------60%----------80%--------12.1.2.0.0 installation has been successfully completed. [WebLogic@localhost liaowh]$
It means success. 4. Next to create domain domains, first execute setwlsenv.sh to configure environment variables
[Email protected] bin]$./home/weblogic/oracle/middleware12/wlserver/server/bin/setwlsenv.sh
Then manually create the directory where the domain resides, and the blogger creates a new in the/home/weblogic/oracle/middleware/directory
[Email protected] 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
Go to the domain directory and execute the command
$JAVA _home $JAVA _options -xmx1024m-xx:maxpermsize=256m WebLogic. Server
To generate the various files under the domain, including configuration information for the Management Server, and so on. After entering the bin directory, the boot can be started, and finally access the Http://ip:7001/console into the console. Finish the call! Previous HD uncensored big picture!!!
Install weblogic12c on Linux (silent installation) (i)