1 http://nginx.org
2 taobao's book:http://tengine.taobao.org/book/index.html
3 installation notes(install nginx 1.5.4 to ubuntu 12.04):
3.1 pcre may need to be download manually, download from here:
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
3.2 zlib may need to be download manually, download form here:
http://www.zlib.net/
3.3 extract source code of pcre and zlib to somewhere, e.g. /usr/opt/pcre-8.33 and /usr/opt/zlib-1.2.8
3.3.1 configure nginx with this command, assume nginx source code is in /usr/opt/nginx-1.5.4, and enter it:
./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.33 --with-zlib=../zlib-1.2.8
for more detail of configure option, please reference to http://nginx.org/en/docs/configure.html
3.3.2 make install
3.3.3 check /usr/local/nginx, there should be for directories:conf,html,logs,sbin
3.3.4 cd /usr/local/nginx/ && ./sbin/nginx, then browse http://localhost/ something like "welcome to nginx!" shoule be shown
3.3.4 enjoy it.
注意以上版本zlib pcre和nginx,否则幺蛾子满天飞