Nginx는 다음 3개 패키지를 사용해야 합니다
<code>yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel yum -y groupinstall <span>"Development Tools"</span><span>"Development Libraries"</span> 此命令可以一键安装开发工具包</code>
<code>openssl: tar -xzvf openssl-<span>1.0</span><span>.1</span><span>.tar</span><span>.gz</span> cd openssl-<span>1.0</span><span>.1</span> ./config(注意) && make && make install <span>pcre:</span> tar -xzvf pcre-<span>8.21</span><span>.tar</span><span>.gz</span> cd pcre-<span>8.21</span> ./configure && make && make install <span>zlib:</span> tar -xzvf zlib-<span>1.2</span><span>.8</span><span>.tar</span><span>.gz</span> cd zlib-<span>1.2</span><span>.8</span> ./configure && make && make install</code>
<code>#注意 \ 前面至少一个有空格 ./configure --prefix=/home/renwh/nginx -<span>-with-http_ssl_module \ </span>-<span>-with-pcre=../pcre-<span>8.21</span> \ <span>#指向解压的源码目录</span></span>-<span>-with-zlib=../zlib-<span>1.2</span>.<span>8</span> \ <span>#指向解压的源码目录</span></span>-<span>-with-openssl=../openssl-<span>1.0</span>.<span>1</span> \ <span>#指向解压的源码目录</span></span></code>
그런 다음 만들고 설치하십시오.