Red Hat linux,apache2.0+weblogic9.2 Load Balancing cluster installation configuration _linux

Source: Internet
Author: User
Tags chmod iptables

*************************************************************************************************************** *********
JDK Installation Steps

1. Log in to the system as root
2. To java.sun.com to download JDK1.5 for Linux rpm, is a jdk-1_5_0_11-linux-i586-rpm.bin file.
3. chmod +x jdk-1_5_x-rc-linux-i586-rpm.bin command to enable it to get executable permissions
4. Implementation./jdk-1_5_0_11-linux-i586-rpm.bin
5. Implementation of RPM-IVH jdk-1_5_0_11-linux-i586.rpm
6. Installation completed, JDK installed in the/usr/java/directory
7. Setting environment variables (last added in/etc/profile file)
#set Java Environment
Java_home=/usr/java/jdk1.5.0_11
Classpath=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar
Path= $JAVA _home/bin: $PATH
Export Java_home CLASSPATH PATH
8. Enter the following parameters to view environment variables:
#echo $JAVA _home
#echo $CLASSPATH
#echo $PATH
9. Type Java-version if the relevant JDK version information appears, prove successful.

*************************************************************************************************************** *********

WebLogic Installation Steps

First, Software Installation

1. Pre-Installation preparatory work
1.1 First please make sure that the WebLogic version you are installing has passed the BEA certification, and the complete list of Certified platforms please refer to http://e-docs.bea.com/wls/certifications/certs_810/index.html
1.2 Determine an installation directory, it is recommended that the directory at least 1 g of space, you can use Du to see the use of disk space
1.3 Create a BEA user group account number
Groupadd–g GID GroupName
Description: GID represents the ID for creating a group, typically greater than 500
For example: Groupadd–g bea
1.4 Create a WebLogic user account
Useradd–d userhome–g GID username
Description: Userhome represents the user's home directory, and the GID creates the group ID for the previous step
Like Useradd–d/home/weblogic–g WebLogic.
2. Installation Steps
WebLogic in the Linux platform installation method generally has three kinds: Graphics window mode, console mode, unattended installation mode. Because console mode is most widely used and is not subject to any other hardware conditions (so we only introduce console installation mode).

2.1 Installing the JRE environment
WebLogic Installer requires JRE support, depending on the installation platform, WebLogic installation media is divided into two categories, one with the JRE (suffix named. bin), one need to download platform vendors provided by the JRE environment (suffix named. jar)

2.2 Get and upload weblogic installation media to a temp directory
If you do not have the media installed, we can download a WebLogic trial version of http://commerce.bea.com, and then upload it via FTP to a temporary directory on the host, which recommends that there be at least 1 g of space left
2.3 Start Installation
Installation method of 2.3.1. bin
First give. Bin executable permissions
chmod a+x Filename.bin
And then execute
./filename.bin-mode=console
2.3.2. Jar Installation Method
And then execute
Java-jar Filename.jar-mode=console
2.4 Console Installation
2.4.1 After completing the 2.3 step, enter the Welcome interface for the console installation and type [Next] to continue
2.4.2 The license agreement appears at this time, type [Yes] to continue when you finish reading
2.4.3 prompts you to select a BEA home directory, as shown below
Choose Bea Home Directory: "bea Home" = [/root/bea]input new BEA Home OR [exit][previous][next]>
If you want to change the default BEA home directory, re-enter the full directory path, or type [Next] to continue, and change here:/usr/local/bea

2.4.4 Confirm Bea Home Directory
Choose BEA Home Directory:->1| Yes, use this BEA home directory [/usr/local/bea] 2| No, return to BEA home Directory selectionenter index number to select OR [exit][previous][next]>
Type [1] to continue

2.4.5 Select installation Type
Choose Install Type:->1| Complete Installation | Install the complete BEA WebLogic Platform. 2| Custom Installation | Choose software components to install and optionally create custom |application domains. Recommended for advanced users.
Type [1] to continue
2.4.6 Select Installation path
Choose product directory:product installation directory = [/home/bea/weblogicxx]input new Product installation directory OR [exit][previous][next]>
If you want to change the default installation directory, re-enter the full directory path, or type [Next] to continue
2.4.7 Confirm Installation Path
Choose Product Directory:->1| Yes, use this product directory [/home3/weblogicxx] 2| No, select another product Directoryenter index numbers to select OR [exit][previous][next]>
Type [1] to continue

2.4.8 now start the installation, a simulated progress bar will appear, patiently waiting until the 100% installation is completed successfully.

Second, configure configuration Wizard

After the software installation, the next configuration domain, into the WebLogic installation directory (for example:/home/bea/weblogic81/common/bin), find the file config.sh, the implementation of his #./config.sh;

The configuration interface appears, and the Create a new weblogic configuration option is selected.
Select the configured module "Basic weblogic Domain" and click Quick Configure "Express" to click the [Next] button

Create Admin page username and password (password not less than 8 digits), Next next;

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.
->1| Development Mode
2| Production Mode
Enter index number to select OR [exit][previous][next]> 1
--------------------------------------------------------------------------------------------------------------- ----
Java SDK Selection:
-------------------
->1| Sun SDK 1.5.0_11 @/usr/java/jdk1.5.0_11
2| Other Java SDK
Enter index number to select OR [exit][previous][next]> 1

--------------------------------------------------------------------------------------------------------------- ----
Choose Configuration Option:
----------------------------
*do you want to modify any of the preconfigured settings or defaults in your template?
*
*to keep the default or template settings, and proceed directly to name and create your domain, leave No selected.
1| Yes
->2| No
Enter index number to select OR [exit][previous][next]> 1
Configure The administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic server domain must have one administration server. The Administration Server
Hosts the administration Console which are 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 |
Select Option:
1-modify "Name"
2-modify "Listen Address"
3-modify "Listen Port"
4-modify "SSL Enabled"
Enter option number to select OR [exit][previous][next]>

Edit Domain Information:
------------------------
|   Name | Value |
_|________|___________|
1| *name: | ebusiness |
Select Option:
1-modify "Name"
2-discard Change
Enter option number to select OR [exit][previous][next]>

Creating Domain ...

0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]

Domain Created successfully! ****
This interface is a summary of all configuration information to confirm, if no problem, click Create, start creating domain domains.

Third, start WebLogic

The service user name and password can be written to the startup script before starting WebLogic.
Enter the domain directory you just configured to complete (for example:/home/bea/user_projects/domains/mydomain), edit the startweblogic.sh startup script, and execute $ VI startweblogic.sh
In "wls_user= wls_pw=" enter username and password, save exit;
Finally execute $./startweblogic.sh and start WebLogic.
./startweblogic.sh-dcom.sun.xml.namespace.qname.usecompatibleserialversionuid=1.0
Iv. Stop WebLogic Service
There are several ways to stop WebLogic services:
1. Kill off Process
2, through the "http://service address: 7001/console", Shutdownserver
3, use the script to stop the service:
Under the #/home/bea/user_projects/domains/mydomain path, there is a stopweblogic.sh file that can be executed.


*************************************************************************************************************** *********
Apache2.0 + Weblogic Integrated configuration

First, Linux installation APACHE2.0:
--------------------------------------------------------
Tar zxvf httpd-2.0.55.tar.gz
CD httpd-2.0.55
./configure--prefix=/usr/local/apache--enable-module=so--enable-rule=shared_core
Make
Make install

#/sbin/chkconfig--del httpd
#/etc/init.d/httpd stop
#rm/etc/init.d/httpd
#cp/usr/local/apache2/bin/apachectl/etc/init.d/
#/sbin/chkconfig--add Apachectl
# reboot

Two, open the Linux firewall of Apache and WebLogic Port
#vi/etc/sysconfig/iptables
Add to:
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 7001-j ACCEPT
#/sbin/service iptables Restart

Third, Apache2.0 + Weblogic9.2 Integration:
--------------------------------------------------------
Cp/usr/local/bea/weblogic92/server/plugin/linux/i686/mod_wl_20.so/usr/local/apache/modules
apache/bin#/apachectl-l #有mod_so. C was successful.
apache/bin#./apachectl-t #Syntax OK Success
apache/bin#./apachectl-start

Revise the httpd.conf documents under apahce/conf, add or modify the following:

Namevirtualhost *:80

#For WebLogic Proxy setting
LoadModule Weblogic_module modules\mod_wl_20.so

<virtualhost *:80>
ServerName www.test.com
Documentroot/usr/local/src/deploy/www/webroot
DirectoryIndex index.jsp
Customlog "|/usr/local/apache/bin/rotatelogs/usr/local/apache/logs/%y_%m_%d.testcomaccess.log 86400" common
<ifmodule mod_weblogic.c>
Weblogichost 130.0.0.190
Weblogicport 7001
Weblogiccluster 130.0.0.190:7001,130.0.0.246:7001
MatchExpression *.jsp
MatchExpression *.do
</IfModule>
</VirtualHost>

*************************************************************************************************************** *********

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.