上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 34 下一页
摘要: 1.先用top查询某进程的线程CPU占用情况,定位到cpu占用高的进程pid 2.根据pid定位具体的线程top -p PID -H ,找出占用cpu最大的pid,此处占用cpu比较平均,我们随便选择一个线程进行定位即可 3.用jstack PID> 28137.log 将具体的线程... 阅读全文
posted @ 2017-02-23 19:16 reblue520 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 登陆流程图: 代码实现: #-*- coding=utf-8 -*-import os,sys,getpass'''user.txt 格式账号 密码 是否锁定 错误次数jack 123 unlock 0tom 123 unlock 0lily 123 unlock 0hanmeimei 1... 阅读全文
posted @ 2017-02-17 14:47 reblue520 阅读(394) 评论(0) 推荐(0) 编辑
摘要: zabbix3.0.4安装grapha图形展示系统 操作系统 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 1.安装grafana-2.6.0-1的rpm包 yum install fontconfig -... 阅读全文
posted @ 2017-02-16 12:29 reblue520 阅读(324) 评论(0) 推荐(0) 编辑
摘要: zabbix3.0.4安装grapha图形展示系统 操作系统 # cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) 1.安装grafana-2.6.0-1的rpm包 yum install fontconfig -y # rpm 阅读全文
posted @ 2017-02-16 12:29 reblue520 阅读(955) 评论(0) 推荐(0) 编辑
摘要: zabbix3.0.4获取数据库登陆用户趋势详解 主要思路: 通过zabbix客户端shell脚本mysql命令取出用户表中的数据将结果反馈给zabbix,画出趋势图 1.修改zabbix-agent客户端配置: 添加zabbix用户的sudo权限 visudo # 添加如下这行 zabbix AL 阅读全文
posted @ 2017-02-13 17:53 reblue520 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 安装file zilla server的时候报错: could not load tls libraries filezilla 搜索了下发现是新版本有这个问题,降低到0.9.43就没这个问题了 阅读全文
posted @ 2017-02-06 16:35 reblue520 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: elasticsearch5.0.1安装 marvel 插件 1.在elasticsearch上安装x-pach插件 在elasticsearch的根目录(每个节点),运行 bin/elasticsearch-plugin进行安装 # bin/elasticsearch-plugin install 阅读全文
posted @ 2017-01-19 15:48 reblue520 阅读(1556) 评论(0) 推荐(0) 编辑
摘要: 云服务器 linux文件系统异常an error occurren during the file system check导致服务器启动失败 文件系统宕机,重启后报错,无法启动 处理流程: 1.编辑/etc/fstab将文件系统挂载去掉 # vim /etc/fstab #/dev/x... 阅读全文
posted @ 2017-01-16 19:43 reblue520 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 简单命令监控elasticsearch集群状态 原理: 使用curl命令模拟访问任意一个es节点可以反馈的集群状态,集群的状态需要为green curl -sXGET http://serverip:9200/_cluster/health/?pretty { "cluster_name... 阅读全文
posted @ 2017-01-13 22:13 reblue520 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 简单命令监控elasticsearch集群状态 原理: 使用curl命令模拟访问任意一个es节点可以反馈的集群状态,集群的状态需要为green curl -sXGET http://serverip:9200/_cluster/health/?pretty { "cluster_name" : "y 阅读全文
posted @ 2017-01-13 22:13 reblue520 阅读(1688) 评论(0) 推荐(0) 编辑
摘要: 执行修改语句update tbl_user_details set nickname=CONCAT("用户",yunva_id) where nickname = yunva_id; 报错: ERROR 1292 (22007): Truncated incorrect DOUBLE val... 阅读全文
posted @ 2017-01-12 17:21 reblue520 阅读(4326) 评论(0) 推荐(0) 编辑
摘要: 一、普通磁盘分区管理方式 1.对磁盘进行分区 列出磁盘 # fdisk -l # fdisk /dev/vdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to 阅读全文
posted @ 2017-01-07 15:08 reblue520 阅读(2029) 评论(0) 推荐(0) 编辑
摘要: 一、普通磁盘分区管理方式 1.对磁盘进行分区 列出磁盘 # fdisk -l # fdisk /dev/vdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to 阅读全文
posted @ 2017-01-07 15:08 reblue520 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: Zabbix Agent active批量调整客户端为主动模式监控 zabbix_server端当主机数量过多的时候,由Server端去收集数据,Zabbix会出现严重的性能问题,主要表现如下: 1、当被监控端到达一个量级的时候,Web操作很卡,容易出现502 2、图层断裂 3、开启的进程(Poll 阅读全文
posted @ 2017-01-06 19:19 reblue520 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: ecs绑定的域名被ddos攻击后,阿里云黑洞ecs服务器一个月,此时zabbix服务端无法联系到zabbix-agent会一直报错 解决办法: 1.在ecs前添加slb并把之前指向ecs的域名a.chinasoft.com指向slb,在slb上开放10050端口的映射 2.在zabbix... 阅读全文
posted @ 2017-01-04 14:19 reblue520 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 自动化安装jdk软件部署脚本 准备工作: 1.在执行脚本的服务器上生成免密码公钥: 安装expect命令 yum install -y expect ssh-keygen 三次回车 2.将jdk-7u80-linux-x64.gz软件包放到http服务器中,供下载 3.运行脚本 ... 阅读全文
posted @ 2016-12-30 14:35 reblue520 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 自动化安装jdk软件部署脚本 准备工作: 1.在执行脚本的服务器上生成免密码公钥: 安装expect命令 yum install -y expect ssh-keygen 三次回车 2.将jdk-7u80-linux-x64.gz软件包放到http服务器中,供下载 3.运行脚本 boot.sh ca 阅读全文
posted @ 2016-12-30 14:35 reblue520 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: zabbix数据库mariadb从本机迁移到云mysql数据库的操作 1.将zabbix数据库导出,并导入到云数据库中 由于数据库较大,如果直接使用shell会话中断会导致数据库导出或者导入失败,使用screen screen -S backzbx 导出zabbix数据库: mysqldump -h 阅读全文
posted @ 2016-12-28 19:41 reblue520 阅读(426) 评论(0) 推荐(0) 编辑
摘要: elasticsearch5.0集群+kibana5.0+head插件插件的安装 es集群的规划: 两台16核64G内存的服务器: yunva_etl_es1 ip:1.1.1.1 u04es01.chinasoft.com yunva_etl_es2 ip:2.2.2.2 操作... 阅读全文
posted @ 2016-12-28 16:07 reblue520 阅读(2560) 评论(0) 推荐(0) 编辑
摘要: 1.工具的安装 下载rpm包安装即可http://mirror.ghettoforge.org/distributions/gf/el/6/gf/x86_64/nmon-14i-1.gf.el6.x86_64.rpm # rpm -ivh nmon-14i-1.gf.el6.x86_64.r... 阅读全文
posted @ 2016-12-16 10:20 reblue520 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 请求为f.chinasoft.com/file f.chinasoft.com 域名指向slb(3.3.3.3) 业务方式: ios-->slb(3.3.3.3)-->ecs集群(每一台ecs都有一个nginxweb服务器)-->mysql 从mysql中获取的数据为数据库的I... 阅读全文
posted @ 2016-12-15 18:25 reblue520 阅读(609) 评论(0) 推荐(0) 编辑
摘要: zookeeper.out报错: 2016-12-10 18:05:46,958 [myid:3] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception causing clos... 阅读全文
posted @ 2016-12-10 20:45 reblue520 阅读(8747) 评论(0) 推荐(0) 编辑
摘要: 阿里云和ucloud服务器配置ssl证书将http服务https化的配置详解 项目背景: 苹果App于2017年1月1日将启用App Transport Security安全功能,即强制App通过HTTPS连接网络服务,各公司猜测按照苹果的一贯作风可能会强制要求开发厂商实施http向https化,否 阅读全文
posted @ 2016-12-09 14:12 reblue520 阅读(804) 评论(0) 推荐(0) 编辑
摘要: Fiddle配置android代理 在wifi的同一个局域网环境的windows主机中安装fiddler,并且启动,如本次192.168.3.14 在android手机端配置代理为该主机 还有一种方式通过wireshark抓手机的包 通过wireshark抓包 配置手提电脑的无线网卡,手机通过电脑的 阅读全文
posted @ 2016-12-05 19:32 reblue520 阅读(933) 评论(0) 推荐(0) 编辑
摘要: java服务端程序报错后会生成hprof文件,我们可以通过mat工具MemoryAnalyzer进行分析 下载地址: http://www.eclipse.org/mat/downloads.php 说明: 查看HPROF快照 JProfiler能打开用JVM工具(比如jconsole... 阅读全文
posted @ 2016-11-25 15:35 reblue520 阅读(3269) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 34 下一页