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

Linux停安装nginx时注意事项

2012-07-01 
Linux下安装nginx时注意事项1、下载最新的稳定版? wget http://nginx.org/download/nginx-1.0.6.tar.gz???2

Linux下安装nginx时注意事项

1、下载最新的稳定版

?

wget http://nginx.org/download/nginx-1.0.6.tar.gz

??

?

2、执行如下命令

?

tar zxf nginx-1.0.6.tar.gz
cd nginx-1.0.6./configure --prefix=/usr/local/nginx1.0.6makemake install

?

3、如果在./configure时出现:

the HTTP rewrite module requires the PCRE library

则检查系统是否安装了pcre-devel包,

? ? ? ?可以使用:

? ? ? ?yum install pcre-devel

4、如果提示:

? ??error: the HTTP cache module requires md5 functions from OpenSSL library.

?

? ? 可以使用:

? ?yum install openssl openssl-devel

?

5、如果没有yum,方法如下:

?

?

? ? 去 ??http://www.pcre.org/ 下载最新版文件

?

? ?解压到服务器指定目录,并

? ?./configure --prefix=/usr/local/pcre8.12,让pcre生成Makefiles文件

?

之后,进入nginx安装目录,执行:

?

?

./configure --prefix=/usr/local/nginx1.0.6 -with-pcre=/usr/local/pcre8.12
makemake install
?

?

热点排行