linux-nginx安装

步骤


下载

http://nginx.org/en/download.html   #官方地址

wget http://nginx.org/download/nginx-1.17.6.tar.gz

安装依赖

yum install  -y gcc-c++ 

yum install -y pcre pcre-devel 

yum install -y zlib zlib-devel

yum install -y openssl openssl-devel

#查看是否安装

yum list installed |grep gcc

yum list installed |grep pcre-devel

yum list installed |grep zlib-devel 

yum list installed |grep openssl-devel

解压

tar -zxvf nginx-1.17.6.tar.gz

安装

cd nginx-1.17.6

./configure

make

make install

安装成功进入/usr/local/nginx/目录

你可能感兴趣的:(linux-nginx安装)