我是靠谱客的博主 瘦瘦皮带,这篇文章主要介绍nginx安装常见错误,现在分享给大家,希望可以做个参考。

1、常见错误:

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl= option.
加配置:
–with-openssl=/opt/src/openssl-1.0.2d
去除:
–with-http_ssl_module


make: *** No rule to make target build', needed bydefault’. Stop.
./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl= option.

ubuntu下

apt-get install openssl
apt-get install libssl-dev

centos下

yum -y install openssl openssl-devel

2.安装C++编译环境

yum install gcc-c++

3.安装PCRE库

1.获取pcre编译安装包,在http://www.pcre.org/上可以获取当前最新的版本
2.解压缩pcre-xx.tar.gz包。 (.tar.gz 用:tar -zxvf .tar.bz 用: tar -xjf
3.进入解压缩目录,执行./configure。
4.make & make install

4.安装openssl库

1.获取openssl编译安装包,在http://www.openssl.org/source/上可以获取当前最新的版本。
2.解压缩openssl-xx.tar.gz包。
3.进入解压缩目录,执行./configure。
4.make & make install

5.安装zlib库

1.获取zlib编译安装包,在http://www.zlib.net/上可以获取当前最新的版本。
2.解压缩openssl-xx.tar.gz包。
3.进入解压缩目录,执行./config
4.make & make install

最后

以上就是瘦瘦皮带最近收集整理的关于nginx安装常见错误的全部内容,更多相关nginx安装常见错误内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(99)

评论列表共有 0 条评论

立即
投稿
返回
顶部