Last active
August 29, 2015 14:23
-
-
Save rifki/c899c67fe21269fb6cb5 to your computer and use it in GitHub Desktop.
Personal config nginx
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
# show info | |
brew info nginx | |
# start and stop | |
nginx.start | |
nginx.stop | |
nginx.restart | |
# logs | |
nginx.logs.access | |
nginx.logs.default.access | |
nginx.logs.phpmyadmin.access | |
nginx.logs.default-ssl.access | |
nginx.logs.error | |
nginx.logs.phpmyadmin.error | |
# config check | |
sudo nginx -t | |
# PHP-FPM | |
php-fpm.start | |
php-fpm.stop | |
php-fpm.restart | |
# check config | |
php-fpm -t | |
# mysql | |
mysql.start | |
mysql.stop | |
mysql.restart | |
# ext located install (homebrew) | |
/usr/local/etc/php/5.6/conf.d | |
# after new installation ext, do not forget restart and check any error; | |
php-fpm -t | |
nginx -t | |
# restarting | |
nginx.restart | |
php-fpm.restart | |
##################### | |
# Redis use port 6379 | |
##################### | |
# info redis homebrew# | |
brew info redis | |
# redis server | |
redis-server /usr/local/etc/redis.conf | |
# redis cli | |
redis-cli | |
# testing redis | |
set pine "foo" | |
get pine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment