Nginx安装记录和问题解决

新逸网络 1.1K 0

官网下载nginx:http://nginx.org/en/download.html

设置安装路径

#./configure --prefix=/usr/local/nginx

编译安装

#make && make install

安装Nginx报错:

一、./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel解决问题:

yum -y install pcre-devel

二、./configure: error: the HTTP gzip module requires the zlib library.

安装zlib-devel解决问题:

yum -y install zlib-devel

三、./configure: error: the HTTP cache module requires md5 functions from OpenSSL library.

安装openssl openssl-devel解决问题:

yum -y install openssl openssl-devel

发表评论 取消回复
表情 图片 链接 代码

分享