上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页
摘要: 使用nginx时, 有可能遇到connect() failed (111: Connection refused) while connecting to upstream的问题。 如果upstream是fastcgi://127.0.0.1:9000,造成这个问题的原因大致有三个 1.php-fp 阅读全文
posted @ 2018-04-13 19:22 大数据从业者FelixZh 阅读(11325) 评论(0) 推荐(0)
摘要: 下载php源码包 http://www.php.net/downloads.php 安装php 可能出现的错误 出现错误: congigure error: xml2-config not found 解决办法: 1.执行命令: 2.查看是否成功: 出现错误: congigure error: Ca 阅读全文
posted @ 2018-04-13 18:44 大数据从业者FelixZh 阅读(2033) 评论(0) 推荐(0)
摘要: 问题出现背景: 今天把原来电脑中的jdk版本由1.7换到了1.8,,重新在Eclipse中配置环境后出现了此问题 问题解决办法: 在你的项目中,选中ant文件,右键》》Run As 》》 External Tools Configuration 阅读全文
posted @ 2018-04-11 13:59 大数据从业者FelixZh 阅读(1272) 评论(0) 推荐(0)
摘要: 问题原因是velocity的日志框架导致(velocity是使用自己封装的日志框架记录日志的),velocity在初始化Logger时,如果没有读取到配置文件,则会使用默认的velocity.log做为文件输出路径,源代码里使用了 File file = new File(“velocity.log 阅读全文
posted @ 2018-04-11 13:56 大数据从业者FelixZh 阅读(713) 评论(0) 推荐(0)
摘要: 对于一些冗长的代码完全可以粘贴的时候,vi粘贴所有格式全部错乱,完全无法阅读。 解决办法:esc进入命令行模式后,输入 :set paste,然后再i进入粘贴编辑模式,即可正常复制并保留原有格式~ 阅读全文
posted @ 2018-04-09 18:54 大数据从业者FelixZh 阅读(2460) 评论(0) 推荐(0)
摘要: [root@dev240 logrotate.d]# /usr/sbin/logrotate -v /etc/logrotate.conf reading config file /etc/logrotate.conf including /etc/logrotate.d reading config file chrony reading config file cups reading co... 阅读全文
posted @ 2018-04-09 11:15 大数据从业者FelixZh 阅读(2609) 评论(0) 推荐(0)
摘要: traceroute命令用于追踪数据包在网络上的传输时的全部路径,它默认发送的数据包大小是40字节。 通过traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可能会不 阅读全文
posted @ 2018-04-04 19:22 大数据从业者FelixZh 阅读(603) 评论(0) 推荐(0)
摘要: 在日常的使用中,或者在服务器中,有两个网卡配置两个地址,访问不同的网络段,这种情况是非常常见的现象,但是,我们需要额外的添加路由表来决定发送的数据包经过正确的网关和interface才能正确的进行通信 显示现在所有路由 #routeroot@Ubuntu:~# routeKernel IP rout 阅读全文
posted @ 2018-04-04 19:09 大数据从业者FelixZh 阅读(24300) 评论(0) 推荐(0)
摘要: nginx自己不会对日志文件进行切割,可以通过两种不同的方式进行,分别是:通过logrotate和通过shell脚本。 如果是yum方式安装的nginx,系统默认会自动通过logrotate这个日志管理软件,按天进行分割(配置如下,具体含义可看下文)。 下面分别对这两种方法进行介绍下: 一、使用lo 阅读全文
posted @ 2018-04-04 16:09 大数据从业者FelixZh 阅读(2369) 评论(0) 推荐(0)
摘要: Nginx 的 access log 默认是以空格分隔的字符串形式记录的,格式如下 官方支持json格式 Specifies the log format, for example: The escape parameter (1.11.8) allows setting json or defau 阅读全文
posted @ 2018-04-03 18:54 大数据从业者FelixZh 阅读(4473) 评论(0) 推荐(0)
摘要: 关于 http://openresty.org/cn/about.html 这个开源 Web 平台主要由章亦春(agentzh)维护。在 2011 年之前曾由淘宝网赞助,在后来的 2012 ~ 2016 年间主要由美国的 CloudFlare 公司 提供支持。目前,OpenResty® 主要由 Op 阅读全文
posted @ 2018-04-03 18:35 大数据从业者FelixZh 阅读(936) 评论(0) 推荐(0)
摘要: lua-nginx-module模块地址 https://github.com/openresty/lua-nginx-module It is highly recommended to use OpenResty releases which integrate Nginx, ngx_lua, 阅读全文
posted @ 2018-04-03 16:20 大数据从业者FelixZh 阅读(11809) 评论(0) 推荐(0)
摘要: 问题分析 Nginx没有添加modules/ngx_http_stub_status_module.o模块。 问题解决 没有安装的话,可以在tar包安装编译的时候添加如下参数: # ./configure --prefix=/usr/local/nginx --with-http_stub_stat 阅读全文
posted @ 2018-04-03 16:04 大数据从业者FelixZh 阅读(9924) 评论(0) 推荐(0)
摘要: lua.c:80:31: fatal error: readline/readline.h: No such file or directory#include <readline/readline.h>^compilation terminated.make[2]: *** [lua.o] Err 阅读全文
posted @ 2018-04-03 13:35 大数据从业者FelixZh 阅读(1039) 评论(0) 推荐(0)
摘要: 官网http://www.lua.org/download.html Building Lua is implemented in pure ANSI C and compiles unmodified in all platforms that have an ANSI C compiler. L 阅读全文
posted @ 2018-04-03 13:33 大数据从业者FelixZh 阅读(701) 评论(0) 推荐(0)
摘要: nginx自1.9.0开始提供tcp/udp的反向代理功能,直到1.11.4才开始提供session日志功能。 启用stream日志配置文件 主配置文件/etc/nginx/nginx.conf增加内容: stream { log_format proxy '$remote_addr [$time_ 阅读全文
posted @ 2018-04-03 10:50 大数据从业者FelixZh 阅读(11905) 评论(1) 推荐(0)
摘要: In March, 2013 we released the first version of the “nginx web server” plug‑in for New Relic monitoring of the open source NGINX software and NGINX Pl 阅读全文
posted @ 2018-04-03 09:29 大数据从业者FelixZh 阅读(428) 评论(0) 推荐(0)
摘要: This chapter describes how to configure health checks for TCP. Introduction NGINX and NGINX Plus can continually test your TCP upstream servers, avoid 阅读全文
posted @ 2018-04-02 19:41 大数据从业者FelixZh 阅读(495) 评论(0) 推荐(0)
摘要: This chapter describes how to configure different types of health checks for UDP servers in a load-balanced upstream server group. Prerequisites You h 阅读全文
posted @ 2018-04-02 19:41 大数据从业者FelixZh 阅读(434) 评论(0) 推荐(0)
摘要: This chapter describes how to use NGINX Plus and open source NGINX to proxy and load balance TCP and UDP traffic. Introduction Load balancing refers t 阅读全文
posted @ 2018-04-02 19:40 大数据从业者FelixZh 阅读(1907) 评论(0) 推荐(0)
摘要: This article describes how to configure and use HTTP health checks in NGINX Plus and open source NGINX. Overview NGINX and NGINX Plus can continually 阅读全文
posted @ 2018-04-02 19:39 大数据从业者FelixZh 阅读(943) 评论(0) 推荐(0)
摘要: This chapter describes how to use NGINX and NGINX Plus as a load balancer. Overview Load balancing across multiple application instances is a commonly 阅读全文
posted @ 2018-04-02 19:38 大数据从业者FelixZh 阅读(1138) 评论(0) 推荐(0)
摘要: The ngx_stream_upstream_module module (1.9.0) is used to define groups of servers that can be referenced by the proxy_pass directive. Example Configur 阅读全文
posted @ 2018-04-02 19:29 大数据从业者FelixZh 阅读(2815) 评论(0) 推荐(0)
摘要: –prefix=<path> – Nginx安装路径。如果没有指定,默认为 /usr/local/nginx。 –sbin-path=<path> – Nginx可执行文件安装路径。只能安装时指定,如果没有指定,默认为<prefix>/sbin/nginx。 –conf-path=<path> – 阅读全文
posted @ 2018-04-02 10:33 大数据从业者FelixZh 阅读(902) 评论(0) 推荐(0)
摘要: 第1章 keepalived服务说明 1.1 keepalived是什么? Keepalived软件起初是专为LVS负载均衡软件设计的,用来管理并监控LVS集群系统中各个服务节点的状态,后来又加入了可以实现高可用的VRRP功能。因此,Keepalived除了能够管理LVS软件外,还可以作为其他服务( 阅读全文
posted @ 2018-04-02 10:31 大数据从业者FelixZh 阅读(1120) 评论(0) 推荐(0)
摘要: 高可用有2中方式。 1、Nginx+keepalived 主从配置 这种方案,使用一个vip地址,前端使用2台机器,一台做主,一台做备,但同时只有一台机器工作,另一台备份机器在主机器不出现故障的时候,永远处于浪费状态,对于服务器不多的网站,该方案不经济实惠。 2、Nginx+keepalived 双 阅读全文
posted @ 2018-04-02 10:30 大数据从业者FelixZh 阅读(1377) 评论(0) 推荐(0)
摘要: 前言 使用集群是网站解决高并发、海量数据问题的常用手段。当一台服务器的处理能力、存储空间不足时,不要企图去换更强大的服务器,对大型网站而言,不管多么强大的服务器,都满足不了网站持续增长的业务需求。这种情况下,更恰当的做法是增加一台服务器分担原有服务器的访问及存储压力。通过负载均衡调度服务器,将来自浏 阅读全文
posted @ 2018-04-02 10:29 大数据从业者FelixZh 阅读(745) 评论(0) 推荐(0)
摘要: 1.1、Keepalived简介 Keepalived是Linux下一个轻量级别的高可用解决方案。高可用(High Avalilability,HA),其实两种不同的含义:广义来讲,是指整个系统的高可用行,狭义的来讲就是之主机的冗余和接管, 它与HeartBeat RoseHA 实现相同类似的功能, 阅读全文
posted @ 2018-04-02 10:28 大数据从业者FelixZh 阅读(554) 评论(0) 推荐(0)
摘要: keepalived可以将多个无状态的单点通过虚拟IP(以下称为VIP)漂移的方式搭建成一个高可用服务,常用组合比如 keepalived+nginx,lvs,haproxy和memcached等。它的实现基础是VRRP协议,包括核心的MASTER竞选机制都是在VRRP协议所约定的。 一、配置说明: 阅读全文
posted @ 2018-04-02 10:17 大数据从业者FelixZh 阅读(2118) 评论(0) 推荐(0)
摘要: 在自己环境做keepalived+redis实验时,当重启了备用redies机器后,发现两台redies主机都拿到了VIP [plain] view plain copy [root@redis2 ~]# ip addr list 1: lo: <LOOPBACK,UP,LOWER_UP> mtu  阅读全文
posted @ 2018-04-02 10:14 大数据从业者FelixZh 阅读(756) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 32 下一页
大数据从业者