MacOS 설치 nginx

910 단어 nginx
brew install nginx 

 시동 을 걸다
$ sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
$ sudo sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist

 error log
sudo mkdir /var/log/nginx/
nginx.conf: error_log  /var/log/nginx/error.log;)

 
Config file directory:
/usr/local/etc/nginx/nginx.conf
/usr/local/etc/php/5.4/php.ini
/usr/local/etc/nginx/fastcgi_params

 common commands
nginx -s stop ;stop
nginx ;start
ngin -s reload ;reload conf file

 
레 퍼 런 스

좋은 웹페이지 즐겨찾기