centos源码安装Nginx问题解决

来源:互联网 发布:汉化软件安卓版下载 编辑:程序博客网 时间:2024/06/06 03:04

1、下载Nginx压缩包


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

        如提示缺少wget::命令、yum  -y  install  wget


2、./configure编译


   缺少c++、、、、、

    命令:yum   -y  install  gcc  gcc-c++


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


  缺少PCRE库: yum -y install pcre-devel openssl openssl-devel


一切ok啦,,,接着执行命令:./configure     、  make     、 make  install