linux 安装nginx
下载nginx
wget http://59.80.44.46/nginx.org/download/nginx-1.14.2.tar.gz
安装gcc g++
- centos 执行
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++
- ububtu 执行
apt-get install build-essential
apt-get install libtool
安装pcre
cd /usr/local/src/
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
tar -zxvf pcre-8.43.tar.gz
cd pcre-8.43
./configure
make
make install
安装zlib
wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install
安装nginx
wget http://nginx.org/download/nginx-1.14.2.tar.gz
tar -zxvf nginx-1.14.2.tar.gz
cd nginx-1.1.10
./configure
make
make install
原文链接
网友评论