nginx(1)安装

摘要:
您可以使用——without-http_gzip_module禁用该模块选项,或将zlib库安装到系统中,或构建zlib库通过使用——with-zlib=选项静态地从nginx源文件中获取。
./configure --prefix=/usr/local/nginx

安装及设置安装路径

安装遇见的问题

1.

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
./configure: error: HTTP重写模块需要PCRE库。

您可以使用——with -http_rewrite_module禁用模块

选项,或将PCRE库安装到系统中,或构建PCRE库

通过使用——with-pcre=选项静态地从nginx源文件中获取

解决办法:

yum -y install pcre-devel

2.

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
HTTP gzip模块需要zlib库。

您可以使用——without-http_gzip_module禁用该模块

选项,或将zlib库安装到系统中,或构建zlib库

通过使用——with-zlib=选项静态地从nginx源文件中获取。

解决办法:

yum -y install zlib-devel

3.

还有可能出现:

错误提示:./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

免责声明:文章转载自《nginx(1)安装》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇IDEA使用switch传入String编译不通过node mkdirSync 创建多级目录下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

利用Nginx做反向代理搭建ArcGIS 10.1 for Server集群环境

  搭建GIS Server集群环境时,通常不建议在GIS Server之间设置防火墙;而建议在服务器环境的前端设置反向代理来隐藏服务器环境的真实地址及端口,保险起见可将反向代理放入DMZ区(前后都设置防火墙),增加安全性。   ArcGIS 10.1 for Server做出的架构改进使得我们在搭建GIS服务器集群环境时更加容易和省心;Nginx因其高性...

nginx的反向代理缓存

假设有两台物理机,他们分属于不同的域名,以webgame的游戏运营商和开发商为例,运营商需要获取游戏中的排行数据,开发商为了过多对游戏服务器的请求,会在发起请求的机器上设置缓存(或是让运营商定时过来抓取一次数据) nginx设置web缓存,需要用到的相关指令: 1、proxy_cache 2、proxy_cache_path 3、proxy_cache_v...

nginx1.14.0下载、安装、启动

nginx1.14.0下载及安装 wget http://nginx.org/download/nginx-1.14.0.tar.gztar -zxvf nginx-1.14.0.tar.gzcd nginx-1.14.0 下面的configure命令选择其中一种即可: ./configure //如果命令后面不带参数,则安装到默认路径:/usr/lo...

源码方式在ubuntu系统上安装ruby1.9.2

ubuntu 10.4下ruby 1.9.2+rails 3.0开发环境配置      对没 Mac 却希望学习 Rails 的程序员来说,Ubuntu 是最理想的选择。多少令人遗憾地是:Ubuntu 的世界里缺少传说中最好的文本编辑器 TextMate 和事实上最好的图片编辑器 Photoshop,幸好 Emacs 和 GIMP 已经完全满足了我这个蹩脚...

gin-vue-admin 03 项目打包上线

目录 作者视频 思路 环境要求 1. 配置nginx 2.打包前台vue代码 3.打包后台go代码 4. 上传代码到服务器 5. 后台运行power 6. 访问后台 开发场景: 1. nginx 配置 2. 后端代码接上面的 3.打包后台go代码 部署到服务器上 3.前端环境配置: 作者视频 【gin-vue-admin】部署教程:gin-v...

Nginx 开启 debug 日志的办法

激活debug 日志 --prefix=/usr/local/nginx --with-debug 重新make && make install 编译,注意:这里很多说不能make install,只make就好了,其实不然,在执行./configure命令时则已经查出了原有nginx的各个文件的路径,如果原来没有nginx,则会默认安装到...