Last active
August 29, 2015 14:25
-
-
Save RELATO/af9668633edb1d6401df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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