Nginx安装加载ssl错误
2015-10-22 19:57
525 查看
Nginx安装加载ssl错误问题解决
[root@jowei nginx-0.8.9]# make
make -f objs/Makefile
make[1]: Entering directory `/jowei/nginx-0.8.9'
cd /usr/include/openssl/ \
&& make clean \
&& ./config --prefix=/usr/include/openssl//openssl no-shared no-threads
\
&& make \
&& make install
make[2]: Entering directory `/usr/include/openssl'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/include/openssl'
make[1]: *** [/usr/include/openssl//openssl/include/openssl/ssl.h]
Error 2
make[1]: Leaving directory `/jowei/nginx-0.8.9'
make: *** [build] Error 2
出现这个问题决绝办法:将你编译代命了也就是 with-openssl=/______这个路径指向你的源码安装包路径而不是你安装后的路径!
–with-pcre Nginx的rewrite功能需要使用pcre库才能工作,而Nginx的编译参数里面的这个选项并不是像常规的那样指定pcre的安装目录,而是指定pcre源代码的目录。
也就是说,如果你的系统路径下已经可以找到pcre的lib和include文件,这个选项可以不指定了。如果你的系统没有安装pcre,那么就指定该选项,Nginx会在编译的时候从你指定的这个目录把pcre编译进来。
–with-openssl
–with-zlib
–with-md5
–with-sha1
这几个选项跟pcre一样,指定的是源代码目录,不是这些类库的安装目录。
我一开始没有看清楚,就按照常规思路去指定目录,走了很多弯路…
make -f objs/Makefile
make[1]: Entering directory `/jowei/nginx-0.8.9'
cd /usr/include/openssl/ \
&& make clean \
&& ./config --prefix=/usr/include/openssl//openssl no-shared no-threads
\
&& make \
&& make install
make[2]: Entering directory `/usr/include/openssl'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/include/openssl'
make[1]: *** [/usr/include/openssl//openssl/include/openssl/ssl.h]
Error 2
make[1]: Leaving directory `/jowei/nginx-0.8.9'
make: *** [build] Error 2
出现这个问题决绝办法:将你编译代命了也就是 with-openssl=/______这个路径指向你的源码安装包路径而不是你安装后的路径!
–with-pcre Nginx的rewrite功能需要使用pcre库才能工作,而Nginx的编译参数里面的这个选项并不是像常规的那样指定pcre的安装目录,而是指定pcre源代码的目录。
也就是说,如果你的系统路径下已经可以找到pcre的lib和include文件,这个选项可以不指定了。如果你的系统没有安装pcre,那么就指定该选项,Nginx会在编译的时候从你指定的这个目录把pcre编译进来。
–with-openssl
–with-zlib
–with-md5
–with-sha1
这几个选项跟pcre一样,指定的是源代码目录,不是这些类库的安装目录。
我一开始没有看清楚,就按照常规思路去指定目录,走了很多弯路…
相关文章推荐
- nginx_proxy多虚拟主机解决方案
- Linux Ubuntu Nginx负载均衡 安装 配置
- nginx502错误
- supervisor 使用及管理nginx+gunicorn
- Nginx开启Gzip压缩大幅提高页面加载速度(转)
- nginx简易安装
- nginx的功能个人认识
- nginx优化
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- nginx是以多进程的方式来工作的
- 运行和控制Nginx
- nginx伪静态
- nginx负载均衡+keeplived
- nginx负载均衡之upstream
- Window+nginx+php+mysql安装
- nginx安装
- Nginx基础入门之nginx部署前准备工作
- nginx.conf简单配置
- centos6.7x86_64nginx安装笔记 new
- 安装nginx