上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: centos7 搭建GlusterFS 转载http://zhaijunming5.blog.51cto.com/10668883/1704535 实验需求:4台机器安装GlusterFS组成一个集群 4个节点的硬盘空间不整合成一个硬盘空间,要求每个节点都存储一份,保证数据安全 环境规划server 阅读全文
posted @ 2016-11-03 09:34 fengjian1585 阅读(653) 评论(0) 推荐(0)
摘要: cat /data/tomcat/conf/server.xml <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=". 阅读全文
posted @ 2016-10-21 18:09 fengjian1585 阅读(1312) 评论(0) 推荐(0)
摘要: mongodb_server.py monodb_monitor.py 阅读全文
posted @ 2016-10-21 11:47 fengjian1585 阅读(738) 评论(0) 推荐(0)
摘要: #!/bin/env python #-*- coding:utf-8 -*- import json import time import socket import os import re import sys import commands import urllib2, base64 import requests class RedisStats: redis_cli =... 阅读全文
posted @ 2016-10-19 22:32 fengjian1585 阅读(2710) 评论(0) 推荐(1)
摘要: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple python-requests 阅读全文
posted @ 2016-10-19 16:01 fengjian1585 阅读(449) 评论(0) 推荐(0)
摘要: 1,tomcat设置jvm参数 设置方法: 在tomcat bin 目录增加配置:setenv.sh #add tomcat pid CATALINA_PID="$CATALINA_BASE/conf/tomcat.pid" #add java opts JAVA_OPTS=" -Djava.awt 阅读全文
posted @ 2016-10-10 12:20 fengjian1585 阅读(2947) 评论(0) 推荐(0)
摘要: dataDir=/data/zookeeper/data dataLogDir=/data/zookeeper/log zk事物日志(快照)存放目录,高负荷工作的时候,会产生大量的日志,需要进行日志清理。 如果不配置dataLogDir,事物日志和数据都会记录到/data/zookeeper/dat 阅读全文
posted @ 2016-10-10 12:17 fengjian1585 阅读(1224) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-10-10 10:49 fengjian1585 阅读(1539) 评论(0) 推荐(1)
摘要: 统计IP前五的数据 统计相应时间 状态码统计 统计IP地图 阅读全文
posted @ 2016-10-07 00:04 fengjian1585 阅读(2499) 评论(0) 推荐(0)
摘要: 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 阅读(878) 评论(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 阅读(249) 评论(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 阅读(1471) 评论(0) 推荐(0)
摘要: 1.安装 Email Extension Plugin 插件 2.进入系统管理--系统设置 3.按照如下图设置 首先找到 Extended E-mail Notification 阅读全文
posted @ 2016-09-28 10:09 fengjian1585 阅读(189) 评论(0) 推荐(0)
摘要: GitLab的安装方式 GitLab的两种安装方法: 编译安装 优点:可定制性强。数据库既可以选择MySQL,也可以选择PostgreSQL;服务器既可以选择Apache,也可以选择Nginx。 缺点:国外的源不稳定,被墙时,依赖软件包难以下载。配置流程繁琐、复杂,容易出现各种各样的问题。依赖关系多 阅读全文
posted @ 2016-09-26 10:26 fengjian1585 阅读(652) 评论(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 阅读(1935) 评论(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 阅读(173) 评论(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 阅读(248) 评论(0) 推荐(0)
摘要: codis集群配置 Codis 是一个分布式 Redis 解决方案, 对于上层的应用来说, 连接到 Codis Proxy 和连接原生的 Redis Server 没有明显的区别 (不支持的命令列表), 上层应用可以像使用单机的 Redis 一样使用, Codis 底层会处理请求的转发, 不停机的数 阅读全文
posted @ 2016-09-21 11:03 fengjian1585 阅读(1215) 评论(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 阅读(863) 评论(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 阅读(1458) 评论(0) 推荐(0)
摘要: Elasticsearch 配置 Elasticsearch不仅仅是Lucene和全文搜索,我们还能这样去描述它: 分布式的实时文件存储,每个字段都被索引并可被搜索 分布式的实时分析搜索引擎 可以扩展到上百台服务器,处理PB级结构化或非结构化数据 Elastic Search git clone h 阅读全文
posted @ 2016-09-13 14:01 fengjian1585 阅读(2685) 评论(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 阅读(3650) 评论(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 阅读(999) 评论(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 阅读(15882) 评论(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 阅读(1418) 评论(0) 推荐(0)
摘要: Mongodb1. 安装2. CRUD3. 索引4. 副本及(replica sets)5. 分片(sharding) nosql 简单数据模型 元数据和应用数据分离 弱一致性 优势: 避免不必要的复杂性 高吞吐量 高水平扩展能力和低端硬件集群 不实用对象 - 关系映射 劣势 不支持ACID 功能简 阅读全文
posted @ 2016-08-29 09:07 fengjian1585 阅读(387) 评论(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 阅读(434) 评论(0) 推荐(0)
摘要: 目前方案是GitLab + Jenkins + Docker + Kubernetes。 方案的工作流程如下:首先,开发人员提交代码代码提交;随后,GitLab 会自动触发Jenkins job,Jenkins job会构建相应的镜像,放在一个Kubernetes的Pod里面;接下来,Kuberne 阅读全文
posted @ 2016-08-27 06:17 fengjian1585 阅读(1806) 评论(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 阅读(1323) 评论(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 阅读(328) 评论(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 阅读(252) 评论(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 阅读(624) 评论(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 阅读(240) 评论(0) 推荐(0)
摘要: 客户端分片 程序端实现 代理proxy,访问proxy,proxy指定redis保存位置。 Twemproxy Redis cluster ,会造成一部分数据丢失,无中心化1.将数据自动切分(split)到多个节点的能力2.当集群中的一部分节点失效或者无法进行通信时,仍然可以继续处理命令请求的能力。 阅读全文
posted @ 2016-07-01 18:02 fengjian1585 阅读(474) 评论(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 阅读(149) 评论(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 阅读(288) 评论(0) 推荐(0)
摘要: 触发graph的索引全量更新、补救手工操作带来的异常。触发方式为,运行curl -s "http://$hostname:$port/index/updateAll",其中$hostname为graph所在的服务器地址,$port为graph的http监听端口。这种方式,不会删除已上报的监控数据,但 阅读全文
posted @ 2016-06-22 11:50 fengjian1585 阅读(404) 评论(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 阅读(2932) 评论(1) 推荐(0)
摘要: open falcon dashboard 安装 阅读全文
posted @ 2016-05-27 18:05 fengjian1585 阅读(402) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页