Ubuntu中环境变量设置

相比于传统的~/.bashrc (System wide), 最新的方式是在~/.pam_environment(session-wide environment )中设置环境变量 (Ubuntu)。 例如:

 

 

JAVA_HOME     DEFAULT=/usr/lib/jvm/java-6-sun
FEDORA_HOME     DEFAULT=/opt/fedora
CATALINA_HOME     DEFAULT=/var/lib/tomcat6
TOMCAT_HOME     DEFAULT=${CATALINA_HOME}
JAVA_OPTS     DEFAULT="-Dsolr.solr.home=/opt/solr-1.4 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m"
CLASSPATH     DEFAULT=.:${CLASSPATH}
PEP_NOCACHE     DEFAULT=true
PATH     DEFAULT=${PATH}:${FEDORA_HOME}/server/bin:${FEDORA_HOME}/client/bin:${JAVA_HOME}/bin
GSEARCH_CONFIG     DEFAULT=/opt/generic-search
SOLR_HOME     DEFAULT=/opt/solr-1.4
DBXML_HOME     DEFAULT=/opt/dbxml-2.5.13
LD_LIBRARY_PATH     DEFAULT=${DBXML_HOME}/lib:${LD_LIBRARY_PATH}

你可能感兴趣的:(java,jvm,tomcat,ubuntu,Solr)