此内容没有您所选择的语言版本。
3.3.3. Installing Enterprise Web Server from RPM Files
				Before downloading and installing the RPM packages, register your system with Red Hat Network and subscribe to the respective channels.
			
Procedure 3.14. Subscribing to Red Hat Network Enterprise Channels
- Go to Red Hat Network Enterprise.
- Unsubscribe your system from theRed Hat Application Stackchannel.
- Subscribe to the JBoss Enterprise Web Server channels (refer to Section 3.3.2, “RHN Channels for JBoss Enterprise Web Server Installation Packages”).
- Ensure thatexactarchis set to the correct value:- On Red Hat Enterprise Linux 4, skip this step and proceed to Procedure 3.15, “Installing Enterprise Web Server from RPM Packages”.
- On Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 5, open/etc/yum.conffor editing and set theexactarchvalue to0:exactarch=0 exactarch=0Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the directive is not present, add it to the file.
 
Procedure 3.15. Installing Enterprise Web Server from RPM Packages
					Install the respective packages (refer to Section 1.1, “Components” and to Section 3.3.1, “RPM Packages” to identify the packages relevant for your installation):
				
- At the shell prompt, become the root user.
- Depending on your operating system, run the installation command:- On Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 5:yum install <LIST_OF_PACKAGES> # yum install <LIST_OF_PACKAGES>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Substitute the <LIST_OF_PACKAGES> with names of the packages separated with spaces.To install all JBoss Enterprise Web Server packages, run this command:yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps # yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps tomcat5.noarch tomcat5-webapps.noarch tomcat5-admin-webapps.noarch tomcat-native httpd mod_jk-ap20 mod_cluster-tomcat6 mod_cluster-native tomcat6-log4j mod_ssl hibernate3 tomcat-jkstatus-antCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note Unless package.noarch is specified for Tomcat 5 packages, yum fetches all Tomcat 5 packages from the base channel instead of the JBoss Enterprise Web Server channel.
- On Red Hat Enterprise Linux 4:up2date <LIST_OF_PACKAGES> # up2date <LIST_OF_PACKAGES>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Substitute the <LIST_OF_PACKAGES> with names of the packages divided by spaces.To install all JBoss Enterprise Web Server packages, run this command:up2date tomcat6 tomcat6-webapps tomcat6-admin-webapps xerces-j2 # up2date tomcat6 tomcat6-webapps tomcat6-admin-webapps xerces-j2 tomcat5 tomcat5-webapps tomcat5-admin-webapps tomcat-native httpd22 mod_jk-ap20 mod_cluster-tomcat6 mod_cluster-native tomcat6-log4j mod_ssl22 hibernate3 tomcat-jkstatus-antCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
 
- Ensure thatexactarchis set to the correct value:- On Red Hat Enterprise Linux 4, skip this step.
- On Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 5, open/etc/yum.conffor editing and set theexactarchvalue to1:exactarch=1 exactarch=1Copy to Clipboard Copied! Toggle word wrap Toggle overflow 
 
- Run the following command and verify the system is using the correct javac and java (for details refer to Procedure 3.1, “Installing Java”).