nginx 1.0.4 在ubuntu上安装
1.需要文件: (1) pcre 下载: http://download.chinaunix.net/download/0008000/7913.shtml tar zxvf pcre-7.9.tar.gz cd pcre-7.9/ ./configure make && make install cd ../
(2)zlib 下载: http://download.chinaunix.net/download/0013000/12241.shtml (3) openssl 下载 http://download.chinaunix.net/download/0001000/11.shtml
2. tar zxvf nginx-1.0.4.tar.gz cd nginx-1.0.4
./configure -with-pcre=/home/ken/download/pcre -with-openssl=/home/ken/download/openssl ( pcre,openssl的源码目录,不是安装目录) sudo make sudo make install
3.运行 sudo nohup /usr/local/nginx/sbin/nginx &
打开firefox 输入http://127.0.0.1 welcome nginx! 一切顺利
更具体的教程请看: http://blog.s135.com/nginx_php_v6/