安装nginx
1、下载nginx
wget http://nginx.org/download/nginx-1.10.3.tar.gz
2、解压
tar -zxvf nginx-1.10.3.tar.gz
3、配置信息
./configure --prefix=/usr/local/nginx
第三步通常会报错,安装各种库即可。
安装 pcre
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz
tar -zxvf pcre-8.40.tar.gz
cd pcre2-10.21
./configure & make & make install
安装zlib
wget https://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure & make & make install