Wednesday, September 1, 2010

Profiles for java, ant, tomcat, apache

1. For Java

#!/bin/bash
#
# /etc/profile.d/jdk.sh
#
PATH=/usr/local/java/bin:$PATH
JAVA_HOME=/usr/local/java
export JAVA_HOME PATH

2. For Ant
#!/bin/bash
#
# /etc/profile.d/ant.sh
#
PATH=/usr/local/ant/bin:$PATH
ANT_HOME=/usr/local/ant
export ANT_HOME PATH

3. For Apache Tomcat Servlet Container
#!/bin/bash
#
# /etc/profile.d/tomcat.sh
#
PATH=/usr/local/tomcat/bin:$PATH
TOMCAT_HOME=/usr/local/tomcat
CATALINA_HOME=/usr/local/tomcat
export CATALINA_HOME TOMCAT_HOME PATH

4. For Apache HTTP Server
#!/bin/bash
#
# /etc/profile.d/apache.sh
#
PATH=/usr/local/ant/bin:$PATH
APACHE_HOME=/usr/local/apache
export APACHE_HOME PATH

No comments:

Post a Comment