Skip to content

Instantly share code, notes, and snippets.

View hanhpv's full-sized avatar
🎯
Focusing

Hans Phung hanhpv

🎯
Focusing
View GitHub Profile
@hanhpv
hanhpv / osx-nginx-phpfpm-mysql-aliases
Last active September 15, 2016 08:46
OSX nginx, php-fpm, mysql command aliases
### SERVER SERVICES ALIAS
# Nginx
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
# PHP-FPM
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php70.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
@hanhpv
hanhpv / nginx.md
Last active September 15, 2016 07:34
Mac OS X nginx.conf
worker_processes  1;
 
error_log  /usr/local/etc/nginx/logs/error.log debug;
 
events {
    worker_connections  1024;
}
 
http {