Chapter 3.
7
Installing Red Hat Application Stack
To install Red Hat Application Stack V.1.4:
1. If you have an existing database, back up your data and shut down the database:
If you are using PostgreSQL:
• Back-up your database. For example, run:
su -
rm -rf /tmp/pg.backup
su - postgres
/usr/bin/pg_dumpall > /tmp/pg.backup
exit
Note
If you have large objects in the database, you need to use pg_dump instead of
pg_dumpall. See
http://www.postgresql.org/docs/8.1/static/largeobjects.html
and
http://www.postgresql.org/docs/8.1/static/app-pg-dumpall.html
For more information, see
http://www.postgresql.org/docs/8.1/static/install-upgrading.html
If you are using MySQL:
• Backing-up your database is optional but recommended. Run as root:
mysqldump --all-databases -p > /tmp/mysqldumpfile.sql
2. Stop the daemons:
•
/sbin/service httpd stop
• To shut down MySQL:
/sbin/service mysqld stop
• To shut down PostgreSQL:
/sbin/service postgresql stop
3. Install the software:
• Option 1. To install from RHN, which is the preferable option to avoid dependency issues, run as
root:
up2date --installall
rhel-i386-as-4-appstk-1
--exclude="*jbossas*"