Skip to content

Instantly share code, notes, and snippets.

@RELATO
Last active August 29, 2015 14:25
Show Gist options
  • Save RELATO/af9668633edb1d6401df to your computer and use it in GitHub Desktop.
Save RELATO/af9668633edb1d6401df to your computer and use it in GitHub Desktop.
# criar o arquivo javatomcat.sh com as linhas abaixo na pasta
#
# /etc/profile.d
#
# Testado em Ubuntu 12.04 e 14.04 LTS
alias tstartup="/opt/tomcat/bin/startup.sh"
alias tshutdown="/opt/tomcat/bin/shutdown.sh"
alias tl="tail -f /opt/tomcat/logs/catalina.out"
alias torestart="/opt/tomcat/bin/shutdown.sh;killall -9 java;killall -9 java;rm -rf /opt/tomcat/work/Catalina/;/opt/tomcat/bin/startup.sh;tl"
JAVA_HOME=/opt/java
TOMCAT_HOME=/opt/tomcat
ANT_HOME=/usr/share/ant
export TOMCAT_HOME
export JAVA_HOME
export ANT_HOME
PATH=$PATH:/opt/java/bin:/opt/ant/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment