linux java tomcat grails 全配置

vi  /etc/profile文件

 段落最后添加 相应的文件路径

#set java

exportJAVA_HOME=/usr/local/jdk

exportCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

exportPATH=$JAVA_HOME/bin:$PATH

#settomcat

exportCATALINA_BASE=/usr/local/tomcat

exportCATALINA_HOME=/usr/local/tomcat

#setgrails

exportGRAILS_HOME=/usr/local/grails-1.3.7

exportPATH=$PATH:$GRAILS_HOME/bin

相关推荐