官网下载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


没有登录不能评论
头像 123
121
2015-09-07 12:35:17