Required Software:
Java environment deployment file: jdk-7u55-linux-x64.rpm
WebLogic installation files: Fmw_12.1.3.0.0_wls.jar
First, create users and groups
Create a user group: Groupadd Web
Create User: Useradd-g web-m-d/opt/weblogic WebLogic
Change Password: passwd weblogic
Authorized users: Chown-r weblogic:web/opt/weblogic/
Useradd Main parameters:
-C: Add note text, note text is saved in passwd's remarks column.
-D: Specifies the start directory at which the user logged in.
-D: Change the preset value.
-e: Specifies the expiration date of the account and the default is permanent.
-F: Specify the number of days after the password expires to close the account.
-G: Specifies the starting group to which the user belongs.
-G: Specifies the additional group to which the user belongs.
-M: Automatically establish the user's login directory.
-M: Do not automatically create a user's login directory.
-N: Cancels the creation of a group named after the user name.
-R: Set up the system account.
-S: Specifies the shell to use when the user is logged in.
-U: Specifies the user ID number.
Second, configure the Java environment
Installing JDK:RPM-IVH jdk-7u55-linux-x64.rpm
At the end of the/etc/profile, add the following:
Export java_home=/usr/java/jdk1.7.0_55
Export JRE_HOME=/USR/JAVA/JDK1.7.0_55/JRE
Export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Export path= $JAVA _home/bin: $JRE _home/bin: $PATH
Make it effective
Source/etc/profile
Verify that the JDK installation is successful or not:
#java –version
Third, installation WebLogic
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 file: Initializing environment files
Detailed Documentation:
1. Create a Orainst.loc file with the following content
#Oracle Installer location File locationinst_group=web Group name Inventory_loc=/opt/weblogic/orainve Ntory Product List Catalog
Note: On Linux servers, orainst.loc files are usually located in the/etc directory
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/85/A3/wKioL1eq1Eixa7PdAAAReOhV2i0224.png-wh_500x0-wm_3 -wmp_4-s_3732870982.png "title=" 3.png "alt=" Wkiol1eq1eixa7pdaaareohv2i0224.png-wh_50 "/>
2. Create a WLS.RSP response file
Su-weblogic
chmod 777/opt/weblogic/fmw_12.1.3.0.0_wls.jar
WLS.RSP This file you can install in the graphical interface, click Save to produce the file. The contents of the file used by this machine are as follows:
#weblogic安装过程路径配置
[ENGINE] #DO not change this. Response file version=1.0.0.0.0[generic] #The oracle home location. this can be an existing oracle home or a new oracle homeoracle_home= /opt/weblogic/oracle/middleware#set this variable value to the installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.install_type=weblogic server#provide the my oracle support username. if you wish to ignore oracle configuration manager configuration provide empty string for user name. Myoraclesupport_username= #Provide the my oracle support passwordmyoraclesupport_ Password=<secure value> #Set this to true if you wish to Decline the security updates. setting this to true and providing empty string for my oracle support username will ignore the oracle Configuration manager configurationdecline_security_updates=true#set this to true if my oracle support password is specifiedsecurity_updates_via_ myoraclesupport=false#provide the proxy hostproxy_host= #Provide the Proxy portproxy_port= #Provide the proxy usernameproxy_user= #Provide the Proxy Passwordproxy_pwd=<secure value> #Type String (Url format) indicates the ocm repeater url which should be of the format [scheme[http /https]]://[repeater host]:[repeater port]collector_supporthub_url=
chmod 664 WLS.RSP
3. Once the profile has been created, it can be installed:
The response file must specify a full path
[[email protected] ~]$ java -jar fmw_12.1.3.0.0_wls.jar -silent - Responsefile /opt/weblogic/wls.rsp -invptrloc /etc/orainst.loc Launcher log file is/tmp/ Orainstall2016-08-10_10-59-01am/launcher2016-08-10_10-59-01am.log. Extracting files ..... ....... ...................... Start oracle universal installer Check CPU whether the speed is greater than 300 mhz. actual for 1496.639 MHz by checking swap space: must be greater than &NBSP;512&NBSP;MB. actual 2093048 MB by checking if this platform requires 64 bit &NBSP;JVM. the actual 64 through (no 64 bit required) to check the temporary space: must be greater than &NBSP;300&NBSP;MB. actual 69017 MB by preparing to start from/tmp/orainstall2016-08-10_10-59-01am oracle universal installer log:/tmp/orainstall2016-08-10_10-59-01am/install2016-08-10_ 10-59-01am.log All rights reserved (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. is readingTake response file ... Start check: certifiedversions expected results: enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5, SuSE-11 one of the actual results: The enterprise-6 check is complete. The overall result of this check is: through certifiedversions check: success. Start check: checkjdkversion expected Result: 1.7.0_15 actual result: 1.7.0_55 check is complete. The overall result of this check is: through checkjdkversion check: success. Authentication for this session is enabled. Validating data ... Copying files ... The log for this installation session can be found at the following location: /tmp/orainstall2016-08-10_10-59-01am/install2016-08-10_10-59-01am.log-----------20%-- --------40%----------60%----------80%--------100%oracle fusion middleware 12c weblogic Installation Server and Coherence 12.1.3.0.0 has completed successfully. The log was successfully copied to/opt/weblogic/orainventory/logs.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/85/A4/wKiom1eq18nTN9jhAAFDe3XBUH0220.png-wh_500x0-wm_3 -wmp_4-s_857066094.png "title=" 2.png "alt=" Wkiom1eq18ntn9jhaafde3xbuh0220.png-wh_50 "/>
The above means the installation is complete
4. Next you create the domain
4.1 Creating a storage path
Mkdir-p/opt/weblogic/oracle/middleware/user_projects/domains/base_domain/
4.2 Creating a parameter file
Create file: CREATE_DOMAIN.RSP
Content:
################################################################################
read template from "/opt/weblogic/oracle/middleware/wlserver/common/templates/wls/wls.jar"; set JavaHome "/usr/java/jdk1.7.0_55"; set serverstartmode "Dev"; find server "AdminServer" as AdminServer;set AdminServer.ListenAddress ";set adminserver.listenport "8001";set adminserver.ssl.enabled "true";set adminserver.ssl.listenport "8002";//we can directly create a new managed server.create Server "Base" as base;set base. listenaddress ""; set base. listenport "8003";//set base. Ssl. enabled "true";//set base. Ssl. listenport "8004″;//create machinecreate machine " base " as machinename;//use templates default weblogic userfind User "WebLogic" as u1;set u1.password "weblogic123";//create a new usercreate user "Weblogic2" as u2;set u2.password "weblogic123";write domain to "/opt /weblogic/oracle/middleware/user_projects/domains/base_domain/"; // the domain name will be "Demo-domain" close template;
################################################################################
4.3 Creating a domain silently
Cd/opt/weblogic/oracle/middleware/wlserver/common/bin
./config.sh-mode=silent-silent_script=/opt/weblogic/create_domain.rsp-logfile=/opt/weblogic/create_domain.log
The following output appears:
<< read template from "/opt/weblogic/oracle/middleware/wlserver/common/templates/wls /wls.jar ">> succeed: read template from "/opt/weblogic/oracle/middleware/ Wlserver/common/templates/wls/wls.jar "<< set config option JavaHome to "/ Usr/java/jdk1.7.0_55 ">> succeed: set config option JavaHome to "/usr/java/jdk1.7.0_55" << set config option ServerStartMode to "Dev" > > succeed: set config option ServerStartMode to "Dev" << find Server "AdminServer" as AdminServer>> succeed: find server "AdminServer" as AdminServer<< set AdminServer attribute listenaddress to "" >> succeed: set AdminServer attribute listenaddress to ""<< set AdminServer attribute ListenPort to "8001" >> succeed: set adminserver attribute listenport to "8001" << set adminserver attribute ssl! enabled to "true" >> succeed: set adminserver attribute ssl! enabled to "true" << set adminserver attribute ssl! listenport to "8002" >> succeed: set adminserver attribute ssl! listenport to "8002" << create Server "base" as BASE>> succeed: create Server "Base" as base<< set base attribute ListenAddress to "" >> succeed: set BASE attribute listenaddress to "" << set BASE attribute ListenPort to "8003" >> succeed: set base attribute listenport to "8003" << create machine "Base" as Machinename>> succeed: create Machine "base" as Machinename<< find User "WebLogic" as u1>> succeed: find User "WebLogic" as u1<< set u1 attribute password to "********" >> succeed: set u1 attribute password to "********" << create User "Weblogic2" as u2>> succeed: create User "Weblogic2" as u2<< set u2 attribute password to "********" >> succeed: set u2 attribute password to "********" << write Domain to "/opt/weblogic/oracle/middleware/user_projects/ Domains/base_domain/"...... ................................................................................>> succeed: write domain to "/opt/weblogic/oracle/middleware/user_projects/domains/base_domain/" << close template>> succeed: close template
This article is from "Operation and maintenance record Mei Ling" blog, please be sure to keep this source http://meiling.blog.51cto.com/6220221/1836572
Silent installation under Linux WebLogic 12