有时候,我们需要单独安装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
一切搞定
分享到:
相关推荐
Nginx 安装成Windows 服务方法
nginx安装环境及nginx_1.18.0安装包,gcc、g++、pcre、zlib、nginx包
Nginx所需环境的安装,及nginx安装,nginx相关功能开启,后端节点健康检查插件安装,静态资源缓存插件,缩略图插件安装等。
nginx离线安装依赖项_linux系统/麒麟v10系统. 离线安装 内网离线安装Nginx 安装Nginx的依赖包如下: PCRE(Perl Compatible Regular Expressions):Nginx使用PCRE来支持正则表达式,可以使用它更灵活地匹配和处理...
自己整理的nginx安装部署相关的一些经验,供参考
nginx安装使用教程nginx安装使用教程
nginx安装全流程,包括安装流程,配置流程,还有开机自启动
linux系统nginx一键自动离线安装包,含安装脚本。内含zlib、pcre、openssl、nginx等安装包
Nginx1.8.0安装简述
nginx安装与使用 http://blog.163.com/njut_wangjian/blog/static/1657964252013327103716818/ Nginx开发从入门到精通 http://tengine.taobao.org/book/index.html nginx官网上下载相应的安装包,--- 直接解压就...
nginx安装,有什么不好的多提宝贵意见
Nginx安装的时候不指定安装目录,会默认安装到/usr/local/nginx下,因此如果需要改变安装目录的同学,可以按照以下方法安装。
nginx安装.
centos7.6离线安装nginx
在linux 下安装nginx, 解决网页访问时报跨域问题, 只用改配置文件, 亲测有效
nginx 安装及配置文档包含 下载安装及相关配置步(反向代理,负载均衡)骤说明。
nginx安装插件包和部署包含了文档和脚本以及其中nginx的安装包是直接在linux在线下载。不是非常详细啊!
此文档详细介绍了Windows下Nginx的安装与配置,可以让用户在最短的时间内完全配置好nginx!
安装Nginx依赖组件