4.3. Creating copies of JBOSS_HOME

4.3. Creating copies of JBOSS_HOME

The analog of unzipping another copy of JBoss AS in a different directory is to make a copy of the RPM-installed JBOSS_HOME, located at /var/lib/jbossas.

You probably want this copy to have your own userid and group, so use:

cp -L -R /var/lib/jbossas my_new_jboss_home_directory

If you want to retain the jboss user and group ownership, use instead:

cp -pL -R /var/lib/jbossas my_new_jboss_home_directory

To run multiple servers simultaneously you will need to adjust the configuration to avoid port conflicts, as described in the JBoss AS documentation. Refer to Running multiple instances of JBoss AS for more information.

Note

Please note that automated updating of copies created using methods above is not supported. If you create custom copies, you will manually have to port files / changes from a new update to that copy.