nginx 安装问题
2015-06-25 17:19
465 查看
yum -y install xxx
pcre-devel openssl-devel zlib-devel 这个三个包需要
有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法:
wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx-0.8.33.tar.gz
cd nginx-0.8.33
./configure --prefix=/usr/local/nginx
安装Nginx时报错
./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel
错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
解决办法:
yum -y install openssl openssl-devel
总结:
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/usr/local/nginx
make
make install
一切搞定
pcre-devel openssl-devel zlib-devel 这个三个包需要
有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法:
wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx-0.8.33.tar.gz
cd nginx-0.8.33
./configure --prefix=/usr/local/nginx
安装Nginx时报错
./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel
错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
解决办法:
yum -y install openssl openssl-devel
总结:
yum -y install pcre-devel openssl openssl-devel
./configure --prefix=/usr/local/nginx
make
make install
一切搞定
相关文章推荐
- 使用 varnish + nginx + lua 搭建网站的降级系统
- NGINX引入线程池 性能提升9倍
- nginx php-fpm安装配置
- nginx后端代理多台php-fpm服务器;(补充上一篇博客)
- ubuntu下nginx编译安装
- nginx filter
- 提高web性能!nginx和php-fpm分别部署在不同服务器;
- Nginx配置文件nginx.conf中文详解
- Nginx和PHP-FPM的启动、重启、停止脚本
- nginx php解析过慢
- nginx负载均衡配置,宕机自动切换
- nginx location匹配规则
- nginx搭建pathinfo模式支持
- 深入 NGINX: 我们如何设计性能和扩展
- nginx+uwsgi+flask搭建python-web应用程序
- LVS+keeplived+nginx+apache搭建高可用、高性能php集群
- Nginx无法解析php文件
- Nginx 性能调优 Tuning NGINX for Performance
- Nginx Cache中$request_filename(转)
- win7下搭建nginx+php的开发环境(转)