nginx安装遇到的错误

1、在安装pcre的过程中,出现如下所示的错误,可以通过su切换到系统管理员进行安装

  

 

2、安装nginx时使用命令make出现如下错误,表示安装时候没有解决先决条件

  

  $:prec-config --version

  $:openssl version -a

  $:gcc -v

  $:whereis zlib

  $:/usr/local/webserver/nginx/sbin/nginx -v  --检查nginx版本

3、./configure: error: SSL modules require the OpenSSL library. You can either do not enable the module

  yum -y install openssl openssl-devel  

4、安装nginx

  ./configure --prefix=/usr/userNginx/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/userNginx/pcre-8.35

  --prefix表示安装路径

  --with-pcre表示pcre所在源码路径

posted @ 2018-04-25 14:43  ffzzblog  阅读(227)  评论(0)    收藏  举报