操作系统:Centos

下载源码包

http://nginx.org/en/download.html

解压

# tar -zxvf nginx-1.12.2.tar.gz 

编译安装

# cd nginx-1.12.2

指定安装路径及添加SSL模块功能

# ./configure --prefix=/usr/local/nginx --with-http_ssl_module

可能出现的问题:

    ./configure: error: the HTTP rewrite module requires the PCRE library.

    安装pcre-devel

 # yum install pcre-devel

    ./configure: error: SSL modules require the OpenSSL library.

    安装openssl-devel

# yum install openssl-devel

编译安装

# make && make install  


相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2021-04-20
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-01-08
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2022-02-21
相关资源
相似解决方案