此内容没有您所选择的语言版本。
2.5.5. Installing Enterprise Web Server from RPM Files
Before downloading and installing the RPM packages, register your system with Red Hat Network for Red Hat Enterprise Linux 5 and 6 and Red Hat Subscription Management for Red Hat Enterprise Linux 7 and subscribe to the respective channels/repositories.
Note
If you are installing JBoss Enterprise Web Server on Red Hat Enterprise Linux 6 and 7, you must remove the tomcatjss package before installing the tomcat-native package. The tomcatjss package uses an underlying NSS security model rather than the OpenSSL security model.
Procedure 2.15. Removing tomcatjss Package
Follow this procedure to remove the tomcatjss package:
- At the shell prompt, become the root user.
- Run the following uninstall command:
yum remove tomcatjss
# yum remove tomcatjssCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 2.16. Subscribing to Red Hat Network Enterprise Channels
- Go to Red Hat Network Enterprise.
- Unsubscribe your system from the
Red Hat Application Stackchannel. - Subscribe to the JBoss Enterprise Web Server channels (see Section 2.5.3, “RHN Channels for JBoss Enterprise Web Server Installation Packages”).
Procedure 2.17. Subscribing to Red Hat Subscription Management Repositories
- Click on the appropriate Units or Subscription Management Applications.
- Subscribe to the JBoss Enterprise Web Server repositories (see Section 2.5.4, “Red Hat Subscription Management Repositories for JBoss Enterprise Web Server Installation Packages”).
Procedure 2.18. Installing Enterprise Web Server from RPM Packages
Install the respective packages (see Section 1.2, “Components” and Section 2.5.2, “RPM Packages” to identify the packages relevant for your installation):
- At the shell prompt, become the root user.
- To install JBoss Enterprise Web Server as a group of packages, run the installation command:
yum groupinstall jboss-ews2
# yum groupinstall jboss-ews2Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To install all packages in the group individually, on Red Hat Enterprise Linux 7, 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 httpd mod_auth_kerb mod_cluster mod_cluster-native mod_jk-ap22 mod_rt mod_snmp mod_cluster-tomcat6 mod_cluster-tomcat7 tomcat6 tomcat6-admin-webapps tomcat6-webapps tomcat7 tomcat7-admin-webapps tomcat7-webapps tomcat-native
# yum install httpd mod_auth_kerb mod_cluster mod_cluster-native mod_jk-ap22 mod_rt mod_snmp mod_cluster-tomcat6 mod_cluster-tomcat7 tomcat6 tomcat6-admin-webapps tomcat6-webapps tomcat7 tomcat7-admin-webapps tomcat7-webapps tomcat-nativeCopy to Clipboard Copied! Toggle word wrap Toggle overflow
- Verify the system is using the correct javac and java (for details see Procedure 2.3, “Installing Java”).
Install Optional Packages
Run the following command to install the listed optional packages with the JBoss Enterprise Web Server packages:
yum install httpd-manual mod_jk-manual mod_ssl tomcat6-docs-webapp tomcat7-docs-webapp tomcat6-log4j tomcat7-log4j mod_jk-ap22 mod_cluster-demo hibernate3-commons-annotations-javadoc hibernate-jpa-2.0-api-javadoc tomcat6-javadoc tomcat7-javadoc apache-commons-daemon-jsvc-eap6
# yum install httpd-manual mod_jk-manual mod_ssl tomcat6-docs-webapp tomcat7-docs-webapp tomcat6-log4j tomcat7-log4j mod_jk-ap22 mod_cluster-demo hibernate3-commons-annotations-javadoc hibernate-jpa-2.0-api-javadoc tomcat6-javadoc tomcat7-javadoc apache-commons-daemon-jsvc-eap6