Java技术联盟

linux 安装nginx

2019-07-12  本文已影响0人  浅浅浅丿忧伤

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

原文链接

上一篇 下一篇

猜你喜欢

热点阅读