Akagi201
3/4/2015 - 12:29 PM

nginx.md

nginx with https support

  1. Download the stable version.
  2. ./configure --with-http_ssl_module
  3. make
  4. sudo make install

nginx websocket module

nginx都有哪些c module

  • 官方的 直接在 nginx 的 src 下 find . -name "*.c" | grep module

NGINX执行阶段概念

wiki

config

cross compile

tutorial

performance

开发包

NDK

lua-nginx-module

site

homebrew

Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

- Tips -
Run port 80:
 $ sudo chown root:wheel /usr/local/Cellar/nginx-full/1.6.2/sbin/nginx
 $ sudo chmod u+s /usr/local/Cellar/nginx-full/1.6.2/sbin/nginx
Reload config:
 $ nginx -s reload
Reopen Logfile:
 $ nginx -s reopen
Stop process:
 $ nginx -s stop
Waiting on exit process
 $ nginx -s quit

To have launchd start nginx-full at login:
    ln -sfv /usr/local/opt/nginx-full/*.plist ~/Library/LaunchAgents
Then to load nginx-full now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx-full.plist