background image

7

• Move (or remove) the database directory:

mv /var/lib/pgsql/data /var/lib/pgsql/data.backup

• Initialize the database:

/sbin/service postgresql initdb

• Start the new PostgreSQL service:

/sbin/service postgresql start

• Restore your data from back-up

psql -U username < /tmp/pg.backup

• Start the http daemon:

/sbin/service httpd start

• For MySQL:

• Start MySQL:

/sbin/service mysqld start

• Update MySQL:

mysql_upgrade

• Restore your data:

mysql -p < /tmp/mysqldumpfile.sql

5. Start the remaining daemons:

• Start the http daemon:

/sbin/service httpd start

The installation is now complete.

Summary of Contents for APPLICATION STACK 2.2 RELEASE

Page 1: ...Red Hat Application Stack 2 2 Release Notes for Use with Red Hat Application Stack 2 2 ...

Page 2: ...Release Notes Red Hat Application Stack 2 2 Release Notes for Use with Red Hat Application Stack 2 2 Edition 1 0 Copyright 2008 Red Hat ...

Page 3: ... Red Hat Application Stack 5 4 Using JBoss Application Server 9 4 1 Using the Linux service production 9 4 2 Using run sh development 10 4 3 Creating copies of JBOSS_HOME 11 4 4 Using the jbossas commands from any directory 12 4 5 Running multiple instances of JBoss Application Server 12 4 5 1 Running multiple instances of JBoss Application Server using different sets of ports 13 4 5 2 Running mul...

Page 4: ...iv ...

Page 5: ...lications in a standard middleware environment Note that the JBoss Enterprise Application Platform uses an embedded Tomcat and does not require a stand alone Tomcat Before installing and running the JBoss Application Server the application server component of JBoss Enterprise Application Platform 4 2 you will require a working installation of Java 1 5 Currently Red Hat Application Stack is certifi...

Page 6: ...2 ...

Page 7: ...from RHN Java SDKs are provided by the Red Hat Enterprise Linux 5 Supplementary channel for your Linux variant and architecture Depending on the architecture the channel names are rhel i386 server supplementary 5 and rhel x86_64 server supplementary 5 The java 1 5 0 bea java 1 5 0 ibm and java 1 5 0 sun SDKs are available from these channels Make sure you also install the devel subpackages 2 Selec...

Page 8: ...plication Server below 2 2 2 Using yum DVD To install using yum DVD 1 Update your installation and install the JVM as described above 2 Mount the Red Hat Application Stack V 2 2 DVD 3 Create a new file in etc yum repos d with the following contents to update directly from the RPMs on the disk stacksv2 name Red Hat App Stack baseurl file path to mounted DVD Stacks enabled 1 4 Install JBoss Applicat...

Page 9: ...t 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 Subscribe to the Red Hat Application Stack child channel e g rhel x86_64 5 appstk 2 or rhel i386 5 a...

Page 10: ...r devel apr util devel libc client mx pcre devel Note You can also install specific components of the stack via the yum groupinstall directive specified in Section 3 In addition to stacks the following groups are defined j2ee Installs jbossas jboss seam mod_jk and database jdbc drivers lamp Installs httpd mysql php and all components related to mysql lapp Installs httpd postgresql php and all comp...

Page 11: ...ice sbin service postgresql start Restore your data from back up psql U username tmp pg backup Start the http daemon sbin service httpd start For MySQL Start MySQL sbin service mysqld start Update MySQL mysql_upgrade Restore your data mysql p tmp mysqldumpfile sql 5 Start the remaining daemons Start the http daemon sbin service httpd start The installation is now complete ...

Page 12: ...8 ...

Page 13: ...he jmx console web console jmx invoker and http invoker is turned on Additionally no user accounts are active by default so as to prevent default user password based attacks Accounts for the jmx console and the invokers can be set up by modifying JBOSS_HOME server CONFIG conf props jmx console users properties Accounts for the web console users can be set up by modifying JBOSS_HOME server CONFIG d...

Page 14: ...JBOSS_BASE var lib jbossas cd JBOSS_HOME cp pL R server default server myownconfig You can then change the configuration and request it to be used by setting the JBOSSCONF variable in the file etc sysconfig jbossas Optionally you can just set the JBOSSCONF variable in etc sysconfig jbossas to a non existent subdirectory existing parent with write access by the jboss user or an empty directory with...

Page 15: ...in the jboss user group by the system administrator Yet another possibility is to create a personal copy of JBOSS_HOME see Section 4 3 Creating copies of JBOSS_HOME below To create additional JBoss Application Server configurations besides the provided default production minimal and all you must create a new directory for your configuration as follows note the switches given to the cp command JBOS...

Page 16: ...jbossas export JAVA_HOME usr lib jvm java where the value you give for JAVA_HOME is the location of your installed Java VM 4 5 Running multiple instances of JBoss Application Server Note Please note that automated updating of instances created using methods below is not supported If you create custom instances you will manually have to port files changes from a new update to that instance The desc...

Page 17: ...SS_HOME for you when the service is first started The current minimal production default and all configurations will be copied Make sure the parent directory in case of a new directory or the directory itself if already existent have write permissions for the user jboss Note Starting the server this first time may take a little longer due to the file copying There are 2 ways to run additional inst...

Page 18: ...Running multiple instances of JBoss Application Server binding to different local IP addresses Each JBoss Application Server instance is bound to a particular IP address 1 Create a new file etc init d service name which is a symlink to etc init d jbossas e g ln s etc init d jbossas etc init d jbossas instance2 2 Create a new config file for service name etc sysconfig service name with instance spe...

Page 19: ...More Information 15 4 6 More Information More general documentation for JBoss Application Server is available under usr share doc jbossas 4 2 0 ...

Page 20: ...16 ...

Page 21: ... for use in any sensitive nuclear chemical or biological weapons or missile technology end uses unless authorized by the U S Government by regulation or specific license e Understand and agree that if you are in the United States and export or transfer the Software to eligible end users you will as required by EAR Section 740 17 e submit semi annual reports to the Commerce Department s Bureau of I...

Page 22: ...18 ...

Reviews: