主机 |
IP |
端口信息 |
Server1 |
192.168.100.xxx |
Jdbc:1521 |
Server2 |
192.168.100.xxx |
weblogic:7001 |
Server3 |
192.168.100.xxx |
weblogic:7002 |
Server4 |
192.168.100.xxx |
apache:80 Rsyslog:540 |
创建文件夹并上传jdk
mkdir /usr/local/java cp jdk-7u80-linux-x64.tar.gz /usr/local/java/ |
解压缩
tar –zxvf jdk-7u80-linux-x64.tar.gz |
修改profile文件
cd /etc vim profile |
添加以下内容:
#set java environment
JAVA_HOME=/usr/local /java/jdk1.7.0_80
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
配置文件临时生效,不用重启
source /etc/profile |
查看版本
Java -version |
java -jar wls1036_generic.jar -mode=console |
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Welcome: This installer will guide you through the installation of WebLogic 10.3.6.0.
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory: "Middleware Home" = [Enter new value or use default
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory: "Middleware Home" = [/bea/weblogic] Use above value or select another option:
|
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory: "Middleware Home" = [/bea/weblogic]
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Middleware Home Directory: Warning /bea/weblogic directory is not empty. Proceed with installation?
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates: Provide your email address for security updates and to initiate configuration manager. 1|Email:[] Enter index number to select OR [Exit][Previous][Next]> 3
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
|
Register for Security Updates: Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"]
Enter [Yes][No]? no
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates: Provide your email address for security updates and to initiate configuration manager. "Receive Security Update:" = [Enter new value or use default "Yes"]
Enter [Yes][No]? yes <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates: Provide your email address for security updates and to initiate configuration manager. 1|Email:[]
Enter index number to select OR [Exit][Previous][Next]>回车
|
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Register for Security Updates: Provide your email address for security updates and to initiate configuration manager. 1|Email:[]
Enter index number to select OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Install Type: Select the type of installation you wish to perform. ->1|Typical 2|Custom
Enter index number to select OR [Exit][Previous][Next]> 2 <-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Products and Components:
|
Release 10.3.6.0 *Estimated size of installation: 690.2 MB
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Products and Components: Release 10.3.6.0 *Estimated size of installation: 678.7 MB
|
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> JDK Selection (Any * indicates Oracle Supplied VM): JDK(s) chosen will be installed. Defaults will be used in script string-substitution if installed. 1|Add Local Jdk
*Estimated size of installation: 678.7 MB
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Choose Product Installation Directories: Middleware Home Directory: [/bea/weblogic] Product Installation Directories:
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> The following Products and JDKs will be installed:
|
WebLogic Platform 10.3.6.0 *Estimated size of installation: 678.8 MB
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Installing files.. 0% 25% 50% 75% 100% Performing String Substitutions... Configuring OCM... 0% 25% 50% 75% 100%
|
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Installation Complete
<-------------------- Oracle Installer - WebLogic 10.3.6.0 -------------------> Clean up process in progress ...
|
配置domain库:
./config.sh |
Unable to instantiate GUI, defaulting to console mode.
Welcome: Choose between creating and extending a domain. Based on your selection, ->1|Create a new WebLogic domain
|
2|Extend an existing WebLogic domain
Select Domain Source: Select the source from which the domain will be created. You can create the ->1|Choose Weblogic Platform components 2|Choose custom template
Application Template Selection: ------------------------------- Available Templates
|
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
Edit Domain Information: | Name | Value |
Edit Domain Information: | Name | Value | Use above value or select another option:
Select the target domain directory for this domain: --------------------------------------------------- "Target Location" = [Enter new value or use default Enter new Target Location OR [Exit][Previous][Next]> /wlyx/webapp/domains
|
<------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: Create a user to be assigned to the Administrator role. This user is the | Name | Value | Use above value or select another option:
Configure Administrator User Name and Password: Create a user to be assigned to the Administrator role. This user is the "*User password:" = []
<------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password:
|
----------------------------------------------- Create a user to be assigned to the Administrator role. This user is the | Name | Value | Use above value or select another option: Enter option number to select OR [Exit][Previous][Next]> 3
Configure Administrator User Name and Password: Create a user to be assigned to the Administrator role. This user is the "*Confirm user password:" = []
<------------------- Fusion Middleware Configuration Wizard ------------------> Configure Administrator User Name and Password: Create a user to be assigned to the Administrator role. This user is the
|
| Name | Value | Use above value or select another option:
Domain Mode Configuration: Enable Development or Production Mode for this domain. ->1|Development Mode 2|Production Mode
<------------------- Fusion Middleware Configuration Wizard ------------------> Java SDK Selection: ->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
|
<------------------- Fusion Middleware Configuration Wizard ------------------> Java SDK Selection: "JVM Directory" = []
Java SDK Selection: "JVM Directory" = [/bea/jdk/jdk1.6.0_37]
Select Optional Configuration: 1|Administration Server [ ]
<------------------- Fusion Middleware Configuration Wizard ------------------> Select Optional Configuration: 1|Administration Server [x] Enter index number to select OR [Exit][Previous][Next]>
|
<------------------- Fusion Middleware Configuration Wizard ------------------> Configure the Administration Server: Each WebLogic Server domain must have one Administration Server. The | Name | Value | Use above value or select another option: Enter option number to select OR [Exit][Previous][Next]>
Creating Domain... 0% 25% 50% 75% 100%
|
创建文件夹
mkdir /usr/local/apache/ |
解压缩
cp httpd-2.2.31.tar.gz /usr/local/apache/ tar –zxvf httpd-2.2.31.tar.gz |
编译安装
./configure --prefix=/usr/local/apache --enable-shared=max --enable module=rewirte --enable-module=so make make install
|
apache配置:
在httpd.conf文件末尾加上如下内容:ProxyPass / balancer://proxy/ lbmethod=bytraffic
BalancerMember http://192.168.11.111:7001/ceca loadfactor=2
BalancerMember http://192.168.11.109:7001/ceca loadfactor=1