安装nginx
1.安装pcre和 pcre-devel
yum install -y pcre
yum install -y pcre-devel
2.安装zlib-devel
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using –without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using –with-zlib= option.需要安装
yum install -y zlib-devel
3.解压nginx1.8
tar -zvxf nginx-1.8.1.tar.gz
./configure –prefix=/usr/local/nginx
make && make install
Linux nginx安装
最新推荐文章于 2024-09-21 16:02:20 发布