上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: varnish 隐藏方法: 修改default.vcl配置文件。 找到或添加 vcl_deliver 子程序,代码如下: 1 2 3 4 5 sub vcl_deliver { unset resp.http.Via; //varnish 默认显示版本信息 unset resp.http.X-Var 阅读全文
posted @ 2016-10-06 23:28 fengjian1585 阅读(859) 评论(0) 推荐(0)
摘要: codec 插件 goeip插件 input { file { path => ["/data/nginx/logs/access.log"] type =>"type" start_position => "end" codec => json } } filter { geoip { sourc 阅读全文
posted @ 2016-10-06 23:12 fengjian1585 阅读(222) 评论(0) 推荐(0)
摘要: logstash 客户端收集 haproxy tcp日志 input { file { path => "/data/haproxy/logs/haproxy_http.log" start_position => "beginning" type => "haproxy_http" } file 阅读全文
posted @ 2016-09-29 14:05 fengjian1585 阅读(1442) 评论(0) 推荐(0)
摘要: 1.安装 Email Extension Plugin 插件 2.进入系统管理--系统设置 3.按照如下图设置 首先找到 Extended E-mail Notification 阅读全文
posted @ 2016-09-28 10:09 fengjian1585 阅读(172) 评论(0) 推荐(0)
摘要: GitLab的安装方式 GitLab的两种安装方法: 编译安装 优点:可定制性强。数据库既可以选择MySQL,也可以选择PostgreSQL;服务器既可以选择Apache,也可以选择Nginx。 缺点:国外的源不稳定,被墙时,依赖软件包难以下载。配置流程繁琐、复杂,容易出现各种各样的问题。依赖关系多 阅读全文
posted @ 2016-09-26 10:26 fengjian1585 阅读(634) 评论(0) 推荐(0)
摘要: log_format logstash_json '{ "@timestamp": "$time_local", ' '"@fields": { ' '"remote_addr": "$remote_addr", ' '"remote_user": "$remote_user", ' '"body_ 阅读全文
posted @ 2016-09-25 10:49 fengjian1585 阅读(1908) 评论(0) 推荐(0)
摘要: yum下载rpmyum update --downloadonly --downloaddir=/root/rpm_package/ python-pip yum reinstall --downloadonly 仅下载已安装包 yumdownloader --resolve 下载包及依赖 yum 阅读全文
posted @ 2016-09-22 15:57 fengjian1585 阅读(134) 评论(0) 推荐(0)
摘要: 317 git commit -m "add txt" 318 git push -u origin 319 ls 320 cd configserver/ 340 git fetch 是不变的 341 ls 342 git status 查看所有状态 343 git branch -r 查看所有分支 344 pull = ... 阅读全文
posted @ 2016-09-22 15:55 fengjian1585 阅读(239) 评论(0) 推荐(0)
摘要: codis集群配置 Codis 是一个分布式 Redis 解决方案, 对于上层的应用来说, 连接到 Codis Proxy 和连接原生的 Redis Server 没有明显的区别 (不支持的命令列表), 上层应用可以像使用单机的 Redis 一样使用, Codis 底层会处理请求的转发, 不停机的数 阅读全文
posted @ 2016-09-21 11:03 fengjian1585 阅读(1200) 评论(0) 推荐(0)
摘要: mongodb集群配置 1 Mongo使用sharding集群 mongodb副本集群 mongos1 192.168.20.137 mongos2 192.168.20.138 mongo_config1 192.168.20.139 mongo_config2 192.168.20.129 mo 阅读全文
posted @ 2016-09-21 10:49 fengjian1585 阅读(830) 评论(0) 推荐(0)
摘要: 使用curl命令操作elasticsearch 大岩不灿 发表于 2015年4月25日 浏览 7,426 次 第一:_cat系列_cat系列提供了一系列查询elasticsearch集群状态的接口。你可以通过执行curl -XGET localhost:9200/_cat获取所有_cat系列的操作= 阅读全文
posted @ 2016-09-13 17:49 fengjian1585 阅读(1433) 评论(0) 推荐(0)
摘要: Elasticsearch 配置 Elasticsearch不仅仅是Lucene和全文搜索,我们还能这样去描述它: 分布式的实时文件存储,每个字段都被索引并可被搜索 分布式的实时分析搜索引擎 可以扩展到上百台服务器,处理PB级结构化或非结构化数据 Elastic Search git clone h 阅读全文
posted @ 2016-09-13 14:01 fengjian1585 阅读(2656) 评论(0) 推荐(0)
摘要: zookeeper1 : 192.168.1.103zookeeper2 : 192.168.1.104zookeeper3 : 192.168.1.105solr1 : 192.168.1.106solr2 : 192.168.1.107solr3 : 192.168.1.108 JDK安装目录: 阅读全文
posted @ 2016-09-09 22:55 fengjian1585 阅读(3618) 评论(0) 推荐(0)
摘要: http://kibana.logstash.es/content/logstash/examples/nginx-access.html http://es.xiaoleilu.com/030_Data/10_Index.html 阅读全文
posted @ 2016-09-09 21:23 fengjian1585 阅读(973) 评论(0) 推荐(0)
摘要: ELK+kafka构建日志收集系统 原文 http://lx.wxqrcode.com/index.php/post/101.html 原文 http://lx.wxqrcode.com/index.php/post/101.html 背景: 最近线上上了ELK,但是只用了一台Redis在中间作为消 阅读全文
posted @ 2016-09-05 11:08 fengjian1585 阅读(15850) 评论(0) 推荐(2)
摘要: 基于docker+etcd+confd + haproxy构建高可用、自发现的web服务 基于docker+etcd+confd + haproxy构建高可用、自发现的web服务 2016-05-16 15:12 595人阅读 评论(0) 收藏 举报 2016-05-16 15:12 595人阅读  阅读全文
posted @ 2016-08-31 08:59 fengjian1585 阅读(1386) 评论(0) 推荐(0)
摘要: Mongodb1. 安装2. CRUD3. 索引4. 副本及(replica sets)5. 分片(sharding) nosql 简单数据模型 元数据和应用数据分离 弱一致性 优势: 避免不必要的复杂性 高吞吐量 高水平扩展能力和低端硬件集群 不实用对象 - 关系映射 劣势 不支持ACID 功能简 阅读全文
posted @ 2016-08-29 09:07 fengjian1585 阅读(350) 评论(0) 推荐(0)
摘要: server 192.168.1.107 registry push client 192.168.1.103 --pull 【192.168.1.107上操作】 docker pull docker.io/registry docker pull nginx 启动私有仓库 docker run - 阅读全文
posted @ 2016-08-27 13:54 fengjian1585 阅读(405) 评论(0) 推荐(0)
摘要: 目前方案是GitLab + Jenkins + Docker + Kubernetes。 方案的工作流程如下:首先,开发人员提交代码代码提交;随后,GitLab 会自动触发Jenkins job,Jenkins job会构建相应的镜像,放在一个Kubernetes的Pod里面;接下来,Kuberne 阅读全文
posted @ 2016-08-27 06:17 fengjian1585 阅读(1777) 评论(1) 推荐(0)
摘要: ansible ansible源码安装 yum -y install python-jinja2 PyPAML python-parmiko python-babel python-crypto tar -zxf ansible-1.5.4.tar.gz cd ansible-1.5.4 pytho 阅读全文
posted @ 2016-08-22 16:52 fengjian1585 阅读(1306) 评论(0) 推荐(0)
摘要: Docker采用Linux(内核)技术,所以只能运行在linux上, 1. Boot2Docker是一个专为Docker而设计的轻量级linux发型包 docker.repo 1.8 yum源 [dockerrepo]name=Docker Repositorybaseurl=https://yum 阅读全文
posted @ 2016-08-18 18:41 fengjian1585 阅读(316) 评论(0) 推荐(0)
摘要: #user nobody;worker_processes 2;#worker_cpu_affinity 0001 0010 0100 1000 #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/er 阅读全文
posted @ 2016-08-15 14:32 fengjian1585 阅读(232) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-07-08 17:56 fengjian1585 阅读(467) 评论(0) 推荐(0)
摘要: erlang rabbitmq-server安装 yum -y install xsltproc fop tk unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel yum –y in 阅读全文
posted @ 2016-07-06 16:10 fengjian1585 阅读(598) 评论(0) 推荐(0)
摘要: Git 服务器搭建 yum 安装git yum -y install git git-daemon 创建 puppet repo目录 mkdir -pv /tmp/puppet_repo/puppet.git 进入到git 仓库目录 cd /tmp/puppet_repo/puppet.git 创建 阅读全文
posted @ 2016-07-06 10:32 fengjian1585 阅读(216) 评论(0) 推荐(0)
摘要: 客户端分片 程序端实现 代理proxy,访问proxy,proxy指定redis保存位置。 Twemproxy Redis cluster ,会造成一部分数据丢失,无中心化1.将数据自动切分(split)到多个节点的能力2.当集群中的一部分节点失效或者无法进行通信时,仍然可以继续处理命令请求的能力。 阅读全文
posted @ 2016-07-01 18:02 fengjian1585 阅读(459) 评论(0) 推荐(0)
摘要: exportJAVA_HOME=/opt/jdk1.8.0_92 exportJRE_HOME=${JAVA_HOME}/jre exportCLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib exportPATH=$JAVA_HOME/bin:$JRE_HOM 阅读全文
posted @ 2016-06-23 14:45 fengjian1585 阅读(116) 评论(0) 推荐(0)
摘要: info.py [{"endpoint":"master","counter":"feng-count","consolFun":"GAUGE","step":60,"filename":"/data/6070/c0/c0c426be18bf40971d0f2b6cc4331818_GAUGE_60 阅读全文
posted @ 2016-06-22 11:58 fengjian1585 阅读(264) 评论(0) 推荐(0)
摘要: 触发graph的索引全量更新、补救手工操作带来的异常。触发方式为,运行curl -s "http://$hostname:$port/index/updateAll",其中$hostname为graph所在的服务器地址,$port为graph的http监听端口。这种方式,不会删除已上报的监控数据,但 阅读全文
posted @ 2016-06-22 11:50 fengjian1585 阅读(374) 评论(0) 推荐(0)
摘要: 1. linux客户端部署agent 2. 编写脚本,比如: #!/usr/bin/env python #!-*- coding:utf8 -*- import requests import time import json import random import os while True: time.sleep(20) payload_list = [] ... 阅读全文
posted @ 2016-06-22 11:49 fengjian1585 阅读(2905) 评论(1) 推荐(0)
摘要: open falcon dashboard 安装 阅读全文
posted @ 2016-05-27 18:05 fengjian1585 阅读(376) 评论(0) 推荐(0)
摘要: FIO是测试IOPS的非常好的工具,用来对硬件进行压力测试和验证,支持13种不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio 等等。 安装 下载地址 wge 阅读全文
posted @ 2016-05-21 20:33 fengjian1585 阅读(688) 评论(0) 推荐(0)
摘要: @ 最近测试 open-falcon. @ 首先得准备报警接口. sms-provider 邮件发送http接口: params: content: 邮件内容 subject: 邮件标题 tos: 使用逗号分隔的多个邮件地址 falcon将这样调用该接口: params: content: 邮件内容 阅读全文
posted @ 2016-05-21 20:33 fengjian1585 阅读(388) 评论(0) 推荐(0)
摘要: openfalcon 规划 拓扑图 transfer 配置文件 judge配置文件 graph配置文件 alarm配置文件 dashboard配置文件 fe 配置文件 hbs配置文件 sender配置文件 mail_provider配置文件, sender通过mail_provider发送邮件 no 阅读全文
posted @ 2016-05-14 20:44 fengjian1585 阅读(4524) 评论(0) 推荐(0)
摘要: 1. curl 查看web站点rt 2. curl的参数 -o:把curl 返回的html、js 写到垃圾回收站[ /dev/null] -s:去掉所有状态 curl -o /dev/null -w %{time_namelookup}::%{time_connect}::%{time_startt 阅读全文
posted @ 2016-05-11 09:15 fengjian1585 阅读(575) 评论(0) 推荐(0)
摘要: bbs网站 models #!/usr/bin/env python #_*_coding:utf-8_*_ from django.db import models from django.contrib.auth.models import User # Create your models h 阅读全文
posted @ 2016-04-20 16:18 fengjian1585 阅读(215) 评论(0) 推荐(0)
摘要: from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User # Create your models here. class Host(models.Model): hostname=models.CharField(m... 阅读全文
posted @ 2016-04-18 17:10 fengjian1585 阅读(242) 评论(0) 推荐(0)
摘要: from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models # Create your models here. class Host(models.Model): hostame = models.CharField(... 阅读全文
posted @ 2016-04-15 11:59 fengjian1585 阅读(336) 评论(0) 推荐(0)
摘要: Ajax例子,views返回,html接收数据 views ajax.html 阅读全文
posted @ 2016-04-14 16:29 fengjian1585 阅读(432) 评论(0) 推荐(0)
摘要: selected对话框全选 阅读全文
posted @ 2016-04-14 12:17 fengjian1585 阅读(234) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页