怪咖晨

linux 安装nginx

。一笑奈何 nginxlinux

linux 安装nginx

下载nginx

wget http://59.80.44.46/nginx.org/download/nginx-1.14.2.tar.gz

安装gcc g++

  1. centos 执行
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++
  1. 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
。一笑奈何
高山仰止,景行行止。虽不能至,心向往之