nginx installation error encountered

1. During the process of installing pcre, the following error occurs, you can switch to the system administrator through su to install

  

 

2. The following error occurs when using the command make when installing nginx , indicating that the prerequisites are not resolved during installation

  

  $:prec-config --version

  $:openssl version -a

  $:gcc -v

  $:whereis zlib

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

  yum -y install openssl openssl-devel  

4. Install nginx

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

  --prefix indicates the installation path

  --with-pcre indicates the source code path where pcre is located

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324853463&siteId=291194637