首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

nginx 1.0.4 在ubuntu上装配

2012-08-14 
nginx 1.0.4 在ubuntu上安装1.需要文件:(1) pcre下载:http://download.chinaunix.net/download/0008000/79

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/

热点排行