2.3. RPM Installation
Note
- For Red Hat Enterprise Linux 6:
- jws-3-x86_64-server-6-rpm
- jws-3-i386-server-6-rpm
- For Red Hat Enterprise Linux 7:
- jws-3-x86_64-server-7-rpm
Warning
2.3.1. Installing JBoss Web Server from RPM Packages Copy linkLink copied to clipboard!
Prerequisites
- Ensure that the tomcatjss package is removed. See Section 2.1.2, “Red Hat Enterprise Linux Package Prerequisites”
Procedure 2.18. Installing JBoss Web Server from RPM Packages
- Log in to Red Hat Subscription Manager.
- Click on Systems in the Subscriber Inventory.
- Subscribe to the JBoss Web Server CDN repositories for your operating system version and architecture:
- For Red Hat Enterprise Linux 6:
- jws-3-for-rhel-6-server-rpms
- For Red Hat Enterprise Linux 7:
- jws-3-for-rhel-7-server-rpms
- Run the following command as the root user to install JBoss Web Server:
yum groupinstall jws3
# yum groupinstall jws3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Although not recommended, instead of using the group install, you can install each of the packages and their dependencies individually.
2.3.2. Installing the JBoss Web Server Plus Group Copy linkLink copied to clipboard!
Procedure 2.19. Installing the Red Hat JBoss Web Server Plus Group of Packages
- To install the JBoss Web Server Plus group of packages, run the following command as the root user:
yum groupinstall jws3plus
# yum groupinstall jws3plus
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.3. Configuring the JBoss Web Server Installation (RPM Installation) Copy linkLink copied to clipboard!
Procedure 2.20. Removing SSL Support
- At a shell prompt, run the following command as the root user:
yum remove mod_ssl24
# yum remove mod_ssl24
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 2.21. Configuring mod_jk
Note
/etc/httpd24/conf.d/
. The sample configuration files are: mod_jk.conf.sample
, workers.properties.sample
, and uriworkermap.properties.sample
. To use these samples instead of creating your own configuration files, remove the .sample
extension, and modify their content as needed.
- In
/etc/httpd24/conf.d/
, create a file namedworkers.properties
.This file should contain the available workers (JBoss instances). - In
/etc/httpd24/conf.d/
, create a file namedmod_jk.conf
.This file contains general mod_jk configuration. - In
/etc/httpd24/conf.d/
, create a file nameduriworkermap.properties
.This file contains request mapping rules that map requests to workers.
Procedure 2.22. Configuring Apache HTTP Server to Use mod_cluster
- In
/etc/httpd24/conf.modules.d/00-proxy.conf
, ensure that there is a#
at the beginning of the following line to disable mod_proxy_balancer.so:This module is incompatible with mod_cluster.LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the server to load the mod_cluster modules:
- Create the file
/etc/httpd24/conf.d/mod_cluster.conf
. - Add the following lines to
mod_cluster.conf
:LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.4. Starting JBoss Web Server Copy linkLink copied to clipboard!
- Tomcat (7 or 8). See Procedure 2.23, “Starting Tomcat”.
- Apache HTTP Server. See Procedure 2.24, “Starting Apache HTTP Server”.
Procedure 2.23. Starting Tomcat
- In a shell prompt as the root user, start the Tomcat service. Replace <VERSION> with the desired Tomcat version (
7
or8
):- For Red Hat Enterprise Linux 6:
service tomcat<VERSION> start
# service tomcat<VERSION> start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
systemctl start tomcat<VERSION>.service
# systemctl start tomcat<VERSION>.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Go to http://localhost:8080 in your web browser to verify that Tomcat is running.
Note
The only supported method of starting Tomcat is using the services shown above.
Procedure 2.24. Starting Apache HTTP Server
- In a shell prompt as the root user, start the Apache HTTP Server service:
- For Red Hat Enterprise Linux 6:
service httpd24 start
# service httpd24 start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
systemctl start httpd24.service
# systemctl start httpd24.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.5. Stopping JBoss Web Server Copy linkLink copied to clipboard!
Procedure 2.25. Stopping Tomcat
- In a shell prompt as the root user, stop the Tomcat service. Replace <VERSION> with the desired Tomcat version (
7
or8
):- For Red Hat Enterprise Linux 6:
service tomcat<VERSION> stop
# service tomcat<VERSION> stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
systemctl stop tomcat<VERSION>.service
# systemctl stop tomcat<VERSION>.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Go to http://localhost:8080 in your web browser to verify that Tomcat is no longer running.
Procedure 2.26. Stopping Apache HTTP Server
- In a shell prompt as the root user, stop the Apache HTTP Server service:
- For Red Hat Enterprise Linux 6:
service httpd24 stop
# service httpd24 stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
systemctl stop httpd24.service
# systemctl stop httpd24.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.6. Configuring JBoss Web Server Services to Start at Boot Copy linkLink copied to clipboard!
tomcat7
or tomcat8
) and Apache HTTP Server (httpd24
) services.
- For Red Hat Enterprise Linux 6:
chkconfig <SERVICE_NAME> on
# chkconfig <SERVICE_NAME> on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For Red Hat Enterprise Linux 7:
systemctl enable <SERVICE_NAME>.service
# systemctl enable <SERVICE_NAME>.service
Copy to Clipboard Copied! Toggle word wrap Toggle overflow