一、普通安装
安装zlib 库
yum install zlib-devel
pcre
下载pcre并解压
tar -xvf pcre-8.35.tar.gz
配置安装
下载nginx并解压,在解压目录下执行命令
./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/
make
make install
二、支持https
指定模块
./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/ --with-http_ssl_module
报错
1、报错You need a C++ compiler for C++ support
yum install -y gcc gcc-c++
2、报错SSL modules require the OpenSSL library
yum -y install openssl openssl-devel
- 版权所有:奇站网络 转载请注明出处
- 厦门奇站网络科技有限公司,专业提供网站建设,响应式网站建设,小程序开发,系统定制开发。
- 软件开发咨询热线:吴小姐 13313868605