Created
February 10, 2010 17:47
-
-
Save cduruk/300602 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
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
#Java and Tomcat | |
export JAVA_HOME=/Library/Java/Home | |
export CATALINA_HOME=/Library/Tomcat/Home | |
#Tomcat | |
alias start_tomcat='/Library/Tomcat/Home/bin/startup.sh' | |
alias stop_tomcat='/Library/Tomcat/Home/bin/shutdown.sh' | |
alias restart_tomcat='stop_tomcat;start_tomcat' | |
#MySQL | |
alias start_mysql='sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist' | |
alias stop_mysql='sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist' | |
#PostgreSQL | |
alias start_postgres='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' | |
alias stop_postgres='pg_ctl -D /usr/local/var/postgres stop -s -m fast' | |
#Apache | |
alias start_apache='sudo apachectl start' | |
alias stop_apache='sudo apachectl stop' | |
alias restart_apache='sudo apachectl restart' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment