- 浏览: 644858 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (820)
- java开发 (110)
- 数据库 (56)
- javascript (30)
- 生活、哲理 (17)
- jquery (36)
- 杂谈 (15)
- linux (62)
- spring (52)
- kafka (11)
- http协议 (22)
- 架构 (18)
- ZooKeeper (18)
- eclipse (13)
- ngork (2)
- dubbo框架 (6)
- Mybatis (10)
- 缓存 (28)
- maven (20)
- MongoDB (3)
- 设计模式 (3)
- shiro (10)
- taokeeper (1)
- 锁和多线程 (3)
- Tomcat7集群 (12)
- Nginx (34)
- nodejs (1)
- MDC (1)
- Netty (7)
- solr (15)
- JSON (8)
- rabbitmq (32)
- disconf (7)
- PowerDesigne (0)
- Spring Boot (31)
- 日志系统 (6)
- erlang (2)
- Swagger (3)
- 测试工具 (3)
- docker (17)
- ELK (2)
- TCC分布式事务 (2)
- marathon (12)
- phpMyAdmin (12)
- git (3)
- Atomix (1)
- Calico (1)
- Lua (7)
- 泛解析 (2)
- OpenResty (2)
- spring mvc (19)
- 前端 (3)
- spring cloud (15)
- Netflix (1)
- zipkin (3)
- JVM 内存模型 (5)
- websocket (1)
- Eureka (4)
- apollo (2)
- idea (2)
- go (1)
- 业务 (0)
- idea开发工具 (1)
最新评论
-
sichunli_030:
对于频繁调用的话,建议采用连接池机制
配置TOMCAT及httpClient的keepalive以高效利用长连接 -
11想念99不见:
你好,我看不太懂。假如我的项目中会频繁调用rest接口,是要用 ...
配置TOMCAT及httpClient的keepalive以高效利用长连接
linux系统为Centos 64位
第一步:从http://nginx.org/download/上下载相应的版本(或者wget http://nginx.org/download/nginx-1.9.8.tar.gz直接在Linux上用命令下载)
第二步:解压 tar -zxvf nginx-1.9.8.tar.gz
第三步:设置一下配置信息 ./configure --prefix=/usr/local/nginx ,或者不执行此步,直接默认配置
第四步:
make 编译 (make的过程是把各种语言写的源码文件,变成可执行文件和各种库文件)
make install 安装 (make install是把这些编译出来的可执行文件和库文件复制到合适的地方)
在配置信息的时候,也就是在第三步,出现了一下错误:
错误为:./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
还有可能出现:
./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.
则需要安装“zlib-devel”即可。SSH执行以下命令:
yum install -y zlib-devel
参考:http://www.cnblogs.com/kunhu/p/3633002.html
Nginx源码安装:http://blog.csdn.net/xyang81/article/details/51476293
Nginx 服务器安装及配置文件详解:
http://www.cnblogs.com/bluestorm/p/4574688.html
第一步:从http://nginx.org/download/上下载相应的版本(或者wget http://nginx.org/download/nginx-1.9.8.tar.gz直接在Linux上用命令下载)
第二步:解压 tar -zxvf nginx-1.9.8.tar.gz
第三步:设置一下配置信息 ./configure --prefix=/usr/local/nginx ,或者不执行此步,直接默认配置
第四步:
make 编译 (make的过程是把各种语言写的源码文件,变成可执行文件和各种库文件)
make install 安装 (make install是把这些编译出来的可执行文件和库文件复制到合适的地方)
在配置信息的时候,也就是在第三步,出现了一下错误:

错误为:./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
还有可能出现:
./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.
则需要安装“zlib-devel”即可。SSH执行以下命令:
yum install -y zlib-devel
参考:http://www.cnblogs.com/kunhu/p/3633002.html
Nginx源码安装:http://blog.csdn.net/xyang81/article/details/51476293
Nginx 服务器安装及配置文件详解:
http://www.cnblogs.com/bluestorm/p/4574688.html
发表评论
-
nginx 反向代理 解析域名变成ipv6,关于DNS TTL的一点看法
2022-09-04 21:36 384nginx 反向代理 解析域名变成ipv6 Nginx服务配 ... -
nginx优化之request_time 和upstream_response_time差别
2017-06-29 20:36 1767http://blog.sina.com.cn/s/blog_ ... -
nginx map使用方法
2017-06-26 11:24 1252http://www.ttlsa.com/nginx/usin ... -
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
2017-06-26 11:11 1385nginx查看安装了哪些模块 http://www.blogj ... -
Nginx 内置变量,细化规则,真实IP获取及限制连接请求
2017-06-26 09:58 389https://yq.aliyun.com/articles/ ... -
nginx启动,重启,关闭命令
2017-06-23 16:49 347http://www.cnblogs.com/derekche ... -
Nginx常用负载均衡策略(接上一篇文章)
2017-06-22 17:01 424http://wiki.jikexueyuan.com/pro ... -
OpenResty初步使用
2017-06-17 17:17 446http://blog.csdn.net/yoara/arti ... -
nginx location匹配规则
2017-06-16 14:57 424http://www.nginx.cn/115.html h ... -
使用Nginx+Lua(OpenResty)开发高性能Web应用
2017-06-02 09:36 427http://jinnianshilongnian.iteye ... -
Nginx SSL+tomcat集群,request.getScheme() 取到https正确的协议
2017-05-27 09:39 509http://feitianbenyue.iteye.com/ ... -
Nginx做代理时X-Forwarded-For信息头的处理
2017-05-25 23:02 820http://blog.csdn.net/xybelieve1 ... -
NGINX.CONF各参数的意义
2017-05-18 20:51 425http://www.cnblogs.com/justbio/ ... -
Nginx实战系列之功能篇----后端节点健康检查
2017-04-20 15:08 1059http://blog.csdn.net/moqiang02/ ... -
无法获取proxy_set_header的变量值
2017-04-15 11:26 710http://www.thinksaas.cn/ask/que ... -
nginx指令之——tcp_nodelay
2017-04-15 11:11 706指令tcp_nodelay作用于socket参数TCP_NOD ... -
Module ngx_http_limit_req_module
2017-03-09 16:38 805The ngx_http_limit_req_module m ... -
Ngnix中的fastcgi参数性能优化和解释
2017-03-08 09:27 579优化性能参数设置,在ngnix.conf中的http 层加上f ... -
Nginx中502和504错误详解
2017-03-08 08:32 1177在使用Nginx时,经常会 ... -
Nginx服务器拒绝非GET方式请求保障安全性
2017-03-06 22:27 1278upstream tomcat { ip_hash; serv ...
相关推荐
在Linux环境下安装Nginx,需要先确保系统已经准备好所有必要的依赖包,这样才能确保Nginx能够正常运行。 首先,我们要知道Linux发行版的不同会影响安装方式和依赖包的选择。常见的Linux发行版如Ubuntu/Debian和...
linux安装nginx/1.25.2,并配置systemctl管理nginx的启动关闭状态等
linux安装nginx并支持ssl,使得服务器支持证书签名,提升应用的安全性
本文将详细介绍如何使用RPM包在Linux上安装Nginx,以实现高效稳定的Web服务。 首先,了解RPM(Red Hat Package Manager)是Linux发行版如CentOS、Fedora等常用的一种软件包管理器,它负责安装、升级和卸载软件。在...
Linux 下安装 Nginx 步骤及命令 Linux 操作系统中安装 Nginx 服务器的步骤和命令详解。该文档将指导用户从头开始安装 Nginx,包括安装 OpenSSL、GCC、PCRE 和 Zlib 库,并最终安装 Nginx 服务器。 安装 OpenSSL --...