$ brew install nginx
インストールされる場所:
/usr/local/Cellar/nginx/1.2.4/
nginx.conf の場所
/usr/local/etc/nginx/nginx.conf
手動で start:
$ /usr/local/sbin/nginx
or
$ /usr/local/sbin/nginx -c /usr/local/etc/nginx/nginx.conf
stop:
$ /usr/local/sbin/nginx -s quit
reload config:
$ /usr/local/sbin/nginx -s reload
test configuration and exit:
$ /usr/local/sbin/nginx -t
show version and configure options then exit:
$ /usr/local/sbin/nginx -V
nginx の formula を開き
$ brew edit nginx
configure のオプションに --with-debug
を追加して brew install nginx
ログは /usr/local/Cellar/nginx/1.2.4/logs/error.log
に出力される。