このコンテンツは選択した言語では利用できません。
2. Installation Notes
This section contains information related to installing JBoss Enterprise Web Server version 1.0.0, including hardware and platform requirements and prerequisites.
2.1. Installation Notes for Red Hat Enterprise Linux
The preferred method for installing the Red Hat Enterprise Web Server on Red Hat Enterprise Linux is by using the Red Hat Enterprise Linux
rpm
file; however we will also discuss installation via the zip
package.
You must have adequate disk space to install JBoss Enterprise Web Server while also allowing enough space for your applications.
A working, supported installation of Java 1.5 or 1.6 on your system will also be necessary. On Red Hat Enterprise Linux 4 systems subscribed to the Extras channel, this can be achieved by executing:
up2date java-<version>-<vendor>
Where
<version>
can be 1.5.0 or 1.6.0 and <vendor>
can be sun or ibm.
On Red Hat Enterprise Linux 5 systems, this can be achieved by executing:
yum install java-<version>-<vendor>
Where
<version>
can be 1.5.0 or 1.6.0 and <vendor>
can be sun, ibm or openjdk. Please note that OpenJDK is only available for version 1.6.0.
Once the Java SDK has been installed, please check to make sure the desired JDK is chosen by executing the following:
alternatives --config java alternatives --config javac
If the JDK in use is not the desired option, the above commands can be used to switch to another JDK.
Important
By switching alternatives for the Java JDK for Tomcat, other software that makes use of the
java
and javac
commands will now be using the same JDK as well.
JBoss Enterprise Web Server can either be installed via the Red Hat Network (RHN) or the JBoss Customer Support Portal (CSP).
Installing via RHN
- If you are subscribed to the
Stacks
channel, you will need to disable that channel before installing the JBoss Enterprise Web Server. - Subscribe to the JBoss Enterprise Web Server channel: Red Hat Enterprise Linux 4 ews or Red Hat Enterprise Linux 5 ewsThe avaliable channels for Red Hat Enterprise Linux 4 are:
- jb-ews-1-i386-as-4-rpm
- jb-ews-1-64-bit systems-as-4-rpm
- jb-ews-1-i386-es-4-rpm
- jb-ews-x86_64-es-4-rpm
The avaliable channels for Red Hat Enterprise Linux 5 are:- jb-ews-1-i386-server-5-rpm
- jb-ews-1-x86_64-server-5-rpm
- Install the packages: tomcat5, tomcat6, tomcat-native, httpd22 and mod_jkOn Red Hat Enterprise Linux 4 to install the packages, execute:
up2date tomcat6 tomcat6-webapps tomcat6-admin-webapps tomcat5 tomcat5-webapps tomcat5-admin-webapps ecj tomcat-native httpd22 mod_jk-ap20
- On Red Hat Enterprise Linux 5 check that the Tomcat 5 packages are not already installed, if not then install the packages by executing:
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps tomcat5 tomcat5-webapps tomcat5-admin-webapps tomcat-native httpd mod_jk-ap20
Otherwise, in order to install the Tomcat 5 packages, you need to make the following modification to the/etc/yum.conf
file. Comment out the option:exactarch=1
Then install the packages:yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps tomcat5.noarch tomcat5-webapps.noarch tomcat5-admin-webapps.noarch tomcat-native httpd mod_jk-ap20
Note
Revert the change in/etc/yum.conf
once installation is complete, this returns yum configuration to default settings.
Warning
Following RPM installation on Red Hat Enterprise Linux 4, the
/var/log/httpd22
directory must be manually created, otherwise the httpd
startup script will fail.
Installing via CSP
- Download the JBoss Enterprise Web Server zip file from the CSP site that is correct for your operating system and architecture.
- Unzip the file.
Important
You can install both Tomcat 5 and Tomcat 6 in parallel on your system, however port addresses would need to be modified in order to avoid conflict.