一、安装nginx

  1.1、安装依赖包

yum -y install gcc-c++
yum -y install pcre pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl-devel libssl-dev

 二、下载nginx

wget http://nginx.org/download/nginx-1.9.12.tar.gz
tar -zxvf nginx-1.9.12.tar.gz

   2.1、编译安装  

    使用默认配置

      ./configure
make
make install

   2.2、如果没报错的话,查看是否安装成功

whereis nginx

   2.3、启动nginx

Centos7 minimal 系列之Nginx搭建(三)

Centos7 minimal 系列之Nginx搭建(三)

 

Centos7 minimal 系列之Nginx搭建(三)

 Centos7 minimal 系列之Nginx搭建(三)

 

相关文章:

  • 2022-02-18
  • 2021-10-10
  • 2021-09-13
  • 2021-12-09
  • 2019-08-30
  • 2022-01-19
猜你喜欢
  • 2022-02-19
  • 2021-08-25
  • 2021-08-12
  • 2021-10-26
相关资源
相似解决方案