1、jdk安装
新建文件夹:/usr/Java
下载jdk到安装目录:/usr/Java/jdk-6u45-linux-x64.bin
检查jdk版本安装情况:java -version
赋予.bin的jdk安装包的执行权限:chmod u+x jdk-6u45-linux-x64.bin
执行:ls jdk安装包变绿色表示有安装权限
执行命令:./jdk-6u45-linux-x64.bin
执行完成后查看是否有新的安装目录:ls
配置jdk环境变量
编辑~/.bashrc 文件:vi ~/.bashrc
export JAVA_HOME=/usr/Java/jdk1.6.0_45
export JAVA_BIN=$JAVA_HOME/bin
export JAVA_LIB=$JAVA_HOME/lib
export CLASSPATH=.:$JAVA_LIB/tools.jar:$JAVA_LIB/dt.jar
exportPATH=$JAVA_BIN:$PATH
Esc退出,执行命令: :wq 完成
查看jdk版本:java -version
2、Weblogic安装
赋予.jar的jdk安装包的执行权限: chmod u+x wls1036_generic.jar
执行.jar文件:java -jar wls1036_generic.jar
<-------------------- Oracle Installer -WebLogic 10.3.6.0 ------------------->
Welcome:
--------
Thisinstaller will guide you through the installation of WebLogic 10.3.6.0.
Type"Next" or enter to proceed to the next prompt. If you want tochange data entered previously, type "Previous". You may quitthe installer at any time by typing "Exit".
Enter[Exit][Next]> 回车
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseMiddleware Home Directory:
---------------------------------
"Middleware Home" = [Enter new value or use default
"/bea/weblogic/Oracle/Middleware"]
Enternew Middleware Home OR [Exit][Previous][Next]> /bea/weblogic/
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseMiddleware Home Directory:
---------------------------------
"Middleware Home" = [/bea/weblogic]
Useabove value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/bea/weblogic/Oracle/Middleware]
Enteroption number to select OR [Exit][Previous][Next]> 1
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseMiddleware Home Directory:
---------------------------------
"Middleware Home" = [/bea/weblogic]
Enternew Middleware Home OR [Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseMiddleware Home Directory:
---------------------------------
Warning
/bea/weblogicdirectory is not empty. Proceed with installation?
Enter[Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Registerfor Security Updates:
------------------------------
Provideyour email address for security updates and to initiate configurationmanager.
1|Email:[]
2|Support Password:[]
3|Receive Security Update:[Yes]
Enterindex number to select OR [Exit][Previous][Next]> 3
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Registerfor Security Updates:
------------------------------
Provideyour email address for security updates and to initiate configurationmanager.
"Receive Security Update:" = [Enter new value or use default"Yes"]
Enter[Yes][No]? no
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Registerfor Security Updates:
------------------------------
Provideyour email address for security updates and to initiate configurationmanager.
"Receive Security Update:" = [Enter new value or use default"Yes"]
Enter[Yes][No]? yes
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Registerfor Security Updates:
------------------------------
Provideyour email address for security updates and to initiate configurationmanager.
1|Email:[]
2|Support Password:[]
3|Receive Security Update:[No]
Enterindex number to select OR [Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Registerfor Security Updates:
------------------------------
Provideyour email address for security updates and to initiate configurationmanager.
1|Email:[]
2|Support Password:[]
3|Receive Security Update:[No]
Enterindex number to select OR [Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseInstall Type:
--------------------
Selectthe 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 performoptional
|configuration.
Enterindex number to select OR [Exit][Previous][Next]> 2
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseProducts and Components:
-------------------------------
Release 10.3.6.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10] x
| |_____Server Examples [1.11]
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x
|_____Coherence Examples [2.2]
*Estimated size of installation: 690.2 MB
Enternumber exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]> 2
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseProducts and Components:
-------------------------------
Release 10.3.6.0
|_____WebLogic Server [1] x
| |_____Core Application Server [1.1] x
| |_____Administration Console [1.2] x
| |_____Configuration Wizard and Upgrade Framework [1.3] x
| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
| |_____WebLogic SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10] x
| |_____Server Examples [1.11]
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2]
|_____Coherence Product Files [2.1]
|_____Coherence Examples [2.2]
*Estimated size of installation: 678.7 MB
Enternumber exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
JDKSelection (Any * indicates Oracle Supplied VM):
---------------------------------------------------
JDK(s)chosen will be installed. Defaults will be used in scriptstring-substitution if installed.
1|Add Local Jdk
2|/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64[x]
*Estimated size of installation: 678.7 MB
Enter1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ChooseProduct Installation Directories:
----------------------------------------
MiddlewareHome Directory: [/bea/weblogic]
ProductInstallation Directories:
"WebLogic Server" = [Enter new value or use default
"/bea/weblogic/wlserver_10.3"]
Enternew WebLogic Server OR [Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Thefollowing Products and JDKs will be installed:
--------------------------------------------------
WebLogic Platform 10.3.6.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
*Estimated size of installation: 678.8 MB
Enter[Exit][Previous][Next]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Installingfiles..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
PerformingString Substitutions...
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
ConfiguringOCM...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
CreatingDomains...
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
InstallationComplete
Congratulations!Installation is complete.
Press[Enter] to continue or type [Exit]>
<--------------------Oracle Installer - WebLogic 10.3.6.0 ------------------->
Cleanup process in progress ...
二、配置domains
cd/home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
-bash-4.1$./config.sh
Unableto instantiate GUI, defaulting to console mode.
<-------------------Fusion Middleware Configuration Wizard ------------------>
Welcome:
--------
Choosebetween creating and extending a domain. Based on your selection,
theConfiguration Wizard guides you through the steps to generate a new or
extendan existing domain.
->1|Createa new WebLogic domain
| Create a WebLogic domain in your projects directory.
2|Extend an existing WebLogic domain
| Use this option to add new components to an existingdomain and modify |configuration settings.
Enterindex number to select OR [Exit][Next]> 1
<-------------------Fusion Middleware Configuration Wizard ------------------>
SelectDomain Source:
---------------------
Selectthe source from which the domain will be created. You can create the
domainby selecting from the required components or by selecting from a
listof existing domain templates.
->1|ChooseWeblogic Platform components
| You can choose the Weblogic component(s) that you wantsupported in
|your domain.
2|Choose custom template
| Choose this option if you want to use an existing template. This
|could be a custom created template using the Template Builder.
Enterindex number to select OR [Exit][Previous][Next]> 1
<-------------------Fusion Middleware Configuration Wizard ------------------>
ApplicationTemplate Selection:
-------------------------------
Available Templates
|_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
|_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0[wlserver_10.3] [3]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0[wlserver_10.3] [4]
Enternumber exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
EditDomain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Entervalue for "Name" OR [Exit][Previous][Next]> wlyxweb
<-------------------Fusion Middleware Configuration Wizard ------------------>
EditDomain Information:
------------------------
| Name | Value |
_|________|_________|
1| *Name: | wlyxweb |
Useabove value or select another option:
1 - Modify "Name"
2 - Discard Changes
Enteroption number to select OR [Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
Selectthe target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default
"/bea/weblogic/user_projects/domains"]
Enternew Target Location OR [Exit][Previous][Next]> /wlyx/webapp/domains
<-------------------Fusion Middleware Configuration Wizard ------------------>
ConfigureAdministrator User Name and Password:
-----------------------------------------------
Createa user to be assigned to the Administrator role. This user is the
defaultadministrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is thedefault administrator. |
Useabove value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enteroption number to select OR [Exit][Previous][Next]> 2
<-------------------Fusion Middleware Configuration Wizard ------------------>
ConfigureAdministrator User Name and Password:
-----------------------------------------------
Createa user to be assigned to the Administrator role. This user is the
defaultadministrator used to start development mode servers.
"*User password:" = []
Enternew *User password: OR [Exit][Reset][Accept]> welwlyx50
<-------------------Fusion Middleware Configuration Wizard ------------------>
ConfigureAdministrator User Name and Password:
-----------------------------------------------
Createa user to be assigned to the Administrator role. This user is the
defaultadministrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ********* |
3| *Confirm user password: | |
4| Description: | This user is thedefault administrator. |
Useabove value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enteroption number to select OR [Exit][Previous][Next]> 3
<-------------------Fusion Middleware Configuration Wizard ------------------>
ConfigureAdministrator User Name and Password:
-----------------------------------------------
Createa user to be assigned to the Administrator role. This user is the
defaultadministrator used to start development mode servers.
"*Confirm user password:" = []
Enternew *Confirm user password: OR [Exit][Reset][Accept]> welwlyx50
<-------------------Fusion Middleware Configuration Wizard ------------------>
ConfigureAdministrator User Name and Password:
-----------------------------------------------
Createa user to be assigned to the Administrator role. This user is the
defaultadministrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *Name: | weblogic |
2| *User password: | ********* |
3| *Confirm user password: | ********* |
4| Description: | This user is the defaultadministrator. |
Useabove value or select another option:
1 - Modify "Name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enteroption number to select OR [Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
DomainMode Configuration:
--------------------------
EnableDevelopment or Production Mode for this domain.
->1|DevelopmentMode
2|Production Mode
Enterindex number to select OR [Exit][Previous][Next]> 2
<-------------------Fusion Middleware Configuration Wizard ------------------>
JavaSDK Selection:
-------------------
->1|N/ASDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
2|Other Java SDK
Enterindex number to select OR [Exit][Previous][Next]> 2
<-------------------Fusion Middleware Configuration Wizard ------------------>
JavaSDK Selection:
-------------------
"JVM Directory" = []
Enternew JVM Directory OR [Exit][Previous][Next]> /bea/jdk/jdk1.6.0_37
<-------------------Fusion Middleware Configuration Wizard ------------------>
JavaSDK Selection:
-------------------
"JVM Directory" = [/bea/jdk/jdk1.6.0_37]
Enternew JVM Directory OR [Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
SelectOptional Configuration:
------------------------------
1|Administration Server [ ]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
Enterindex number to select OR [Exit][Previous][Next]> 1
<-------------------Fusion Middleware Configuration Wizard ------------------>
SelectOptional Configuration:
------------------------------
1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
Enterindex number to select OR [Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
Configurethe Administration Server:
------------------------------------
EachWebLogic Server domain must have one Administration Server. The
AdministrationServer is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Useabove value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enteroption number to select OR [Exit][Previous][Next]>
<-------------------Fusion Middleware Configuration Wizard ------------------>
CreatingDomain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
****Domain Created Successfully! ****