Linux版本:RHEL5.6
WebLogic版本:10.3.3.0
一、搭建JDK环境,这里安装1.6的版本
#mkdir /app/jdk1.6.0_31/ #vi /etc/profile export JAVA_HOME=/app/jdk1.6.0_31 export PATH=$PATH:$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib.dt.jar:$JAVA_HOME/lib/tools.jar export JRE_HOME=$JAVA_HOME/jre #source /etc/profile #mv jdk-6u31-linux-x64.bin /app #./jdk-6u31-linux-x64.bin # java -version #输出jdk的版本为安装的版本则表明安装正确 java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
二安装WebLogic部分
1)添加weblogic用户
# groupadd weblogic # useradd -g weblogic weblogic # passwd weblogic
2)创建WebLogic的安装目录
# mkdir /app/weblogic
3)这里采用.jar方式来安装。
#su weblogic $ java -jar wls1033_generic.jar -mode=console Unable to instantiate GUI, defaulting to console mode. Extracting 0%....................................................................................................100% <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Welcome: -------- This installer will guide you through the installation of WebLogic 10.3.3.0. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit". Enter [Exit][Next]> Next #键入 "Next" 或按 Enter 键继续下一个提示 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Middleware Home Directory: --------------------------------- "Middleware Home" = [Enter new value or use default "/home/weblogic/Oracle/Middleware"] Enter new Middleware Home OR [Exit][Previous][Next]> /app/weblogic #选择WebLogic的安装路径 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Middleware Home Directory: --------------------------------- "Middleware Home" = [/app/weblogic] Use above value or select another option: 1 - Enter new Middleware Home 2 - Change to default [/home/weblogic/Oracle/Middleware] Enter option number to select OR [Exit][Previous][Next]> Next #这里已经确认的安装目录,直接Next <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html 1|Email:[] 2|My Oracle Support Password:[] 3|Receive Security Update:[Yes] Enter index number to select OR [Exit][Previous][Next]> 3 #出现选则”注册安全更新”的方式,我们这里选择3 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html "Receive Security Update:" = [Enter new value or use default "Yes"] Enter [Yes][No]? No #此时更改接收更新的方式,输入“No”回车 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html "Receive Security Update:" = [Enter new value or use default "Yes"] ** Do you wish to bypass initiation of the configuration manager and ** remain uninformed of critical security issues in your configuration? Enter [Yes][No]? Yes #输入Yes来确认我们的选择 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Register for Security Updates: ------------------------------ Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html 1|Email:[] 2|My Oracle Support Password:[] 3|Receive Security Update:[No] Enter index number to select OR [Exit][Previous][Next]> Next #这里直接Next <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Install Type: -------------------- Select the type of installation you wish to perform. ->1|Typical | Install the following product(s) and component(s): | - WebLogic Server | - Oracle Coherence 2|Custom | Choose software products and components to install and perform optional |configuration. Enter index number to select OR [Exit][Previous][Next]> 1 #选择安装类型:1是典型的,2是定制。我们这里选择1 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM): --------------------------------------------------- JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution. 1|Add Local Jdk 2|/app/jdk1.6.0_31/jdk1.6.0_31[x] *Estimated size of installation: 727.6 MB Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> 2 #这里选择jdk的安装路径,我们选择本地jdk。 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM): --------------------------------------------------- JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution. 1|Add Local Jdk 2|/app/jdk1.6.0_31/jdk1.6.0_31[ ] ** Please select appropriate JDK. Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> 2 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM): --------------------------------------------------- JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution. 1|Add Local Jdk 2|/app/jdk1.6.0_31/jdk1.6.0_31[x] *Estimated size of installation: 727.6 MB Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [/app/weblogic] Product Installation Directories: 1|WebLogic Server: [/app/weblogic/wlserver_10.3] 2|Oracle Coherence: [/app/weblogic/coherence_3.5] Enter index number to select OR [Exit][Previous][Next]> 1 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Product Installation Directories: ---------------------------------------- "WebLogic Server" = [Enter new value or use default "/app/weblogic/wlserver_10.3"] Enter new WebLogic Server OR [Exit][Previous][Next]> next <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [/app/weblogic] Product Installation Directories: 1|WebLogic Server: [/app/weblogic/wlserver_10.3] 2|Oracle Coherence: [/app/weblogic/coherence_3.5] Enter index number to select OR [Exit][Previous][Next]> 1 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [/app/weblogic] Product Installation Directories: 1|WebLogic Server: [/app/weblogic/wlserver_10.3] 2|Oracle Coherence: [/app/weblogic/coherence_3.5] Enter index number to select OR [Exit][Previous][Next]> 1 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Choose Product Installation Directories: ---------------------------------------- Middleware Home Directory: [/app/weblogic] Product Installation Directories: 1|WebLogic Server: [/app/weblogic/wlserver_10.3] 2|Oracle Coherence: [/app/weblogic/coherence_3.5] Enter index number to select OR [Exit][Previous][Next]> Next <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> The following Products and JDKs will be installed: -------------------------------------------------- WebLogic Platform 10.3.3.0 |_____WebLogic Server | |_____Core Application Server | |_____Administration Console | |_____Configuration Wizard and Upgrade Framework | |_____Web 2.0 HTTP Pub-Sub Server | |_____WebLogic SCA | |_____WebLogic JDBC Drivers | |_____Third Party JDBC Drivers | |_____WebLogic Server Clients | |_____WebLogic Web Server Plugins | |_____UDDI and Xquery Support | |_____Evaluation Database |_____Oracle Coherence |_____Coherence Product Files *Estimated size of installation: 727.7 MB Enter [Exit][Previous][Next]> Next Nov 13, 2014 4:36:56 PM java.util.prefs.FileSystemPreferences$2 run INFO: Created user preferences directory. <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Installing files.. 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Performing String Substitutions... <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Configuring OCM... 0% 25% 50% 75% 100% [------------|------------|------------|------------] [***************************************************] Creating Domains... <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Installation Complete Congratulations! Installation is complete. Press [Enter] to continue or type [Exit]> 回车 <-------------------- Oracle Installer - WebLogic 10.3.3.0 -------------------> Clean up process in progress ... #到这里则表示安装成功 [weblogic@eshopmn weblogic]$