Part1:Install nginx
#为了源码能正常的编译运行先安装开发工具
yum group install “Development Tools”
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar xvf pcre-8.39.tar.gz
cd pcre-8.39
./configure
make
make install
wget http://nginx.org/download/nginx-1.6.3.tar.gz
tar xvf nginx-1.6.3.tar.gz
cd nginx-1.6.3
[root@instance-1 nginx-1.6.3]# ./configure –prefix=/usr/local/nginx
#检查系统环境:
./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 -wget http://jp2.php.net/distributions/php-7.0.12.tar.gzy zlib-devel
make
make install
继续阅读Centos7下的LNMP源码安装