阿里云 centos6.5 nginx编译安装

  1. 新闻资讯
  2. 技术百科
公司新闻 案例分享 技术百科 行业动态

阿里云 centos6.5 nginx编译安装

来源:奇站网络 浏览量:1578 发布日期: 2018-03-01

一、普通安装

安装zlib 库

  1. yum install zlib-devel

pcre

下载pcre并解压

  1. tar -xvf pcre-8.35.tar.gz

配置安装

下载nginx并解压,在解压目录下执行命令

  1. ./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/
  2. make
  3. make install

二、支持https

指定模块

  1. ./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/ --with-http_ssl_module

报错

1、报错You need a C++ compiler for C++ support
  1. yum install -y gcc gcc-c++
2、报错SSL modules require the OpenSSL library
  1. yum -y install openssl openssl-devel
标签:

厦门奇站网络科技有限公司

电话:13313868605

QQ:3413772931

地址:厦门集美区软件园三期

网站地图


                    扫一扫加我咨询