岚天逸见

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 78 下一页

2016年6月1日 #

Linux上查看造成IO高负载的进程

摘要: 方法1:使用iotop工具这是一个python脚本工具,使用方法如:iotop -o方法2:使用工具dmesg使用dmesg之前,需要先开启内核的IO监控:echo 1 >/proc/sys/vm/block_dump或sysctl vm.block_dump=1然后... 阅读全文

posted @ 2016-06-01 17:55 岚天逸见 阅读(5603) 评论(0) 推荐(0)

2016年5月16日 #

Redis Cluster原理初步

摘要: 目录目录 11. 前言 12. 槽(slots) 13. 路由配置(node.conf) 14. 总slots数(cluster.h:16384) 25. key的路由 26. 将key转成整数值(crc16.c:crc16) 27. 计算key所在slot(clus... 阅读全文

posted @ 2016-05-16 17:03 岚天逸见 阅读(177) 评论(0) 推荐(0)

Linux磁盘相关命令

摘要: sfdisk -lsfdisk -sfdisk -ldmesg |grep SCSIdmesg |grep -i raiddf -hcat /proc/scsi/scsihdparm /dev/sdamount 加载一块硬盘mkfs 创建文件系统/etc/fstab ... 阅读全文

posted @ 2016-05-16 09:48 岚天逸见 阅读(145) 评论(0) 推荐(0)

2016年5月12日 #

测试setsockopt设置超时是否生效代码

摘要: // 测试setsockopt设置超时是否生效代码#include #include #include #include #include #include #include #include // 编译:// g++ -g -o x x.cppint main(){... 阅读全文

posted @ 2016-05-12 14:55 岚天逸见 阅读(1194) 评论(0) 推荐(0)

2016年5月1日 #

mac windows蓝牙问题

摘要: 如果是win7、win8或win10三者的64位版本,可以下载驱动解决:http://file2.mydrivers.com/2014/notebook/apple_broadcom_bluetooth_5040_win64.zip或:http://drivers.m... 阅读全文

posted @ 2016-05-01 21:37 岚天逸见 阅读(338) 评论(0) 推荐(0)

2016年4月15日 #

java thrift返回List异常

摘要: 对于下段代码:public List hmget(String key, List fields) throws org.apache.thrift.TException{ JedisCluster jedis_cluster = RedisClusterPro... 阅读全文

posted @ 2016-04-15 15:28 岚天逸见 阅读(796) 评论(0) 推荐(0)

2016年4月14日 #

log4j日志文件路径设置

摘要: 假设有如下标准化的目录结构:$HOME|-- log|-- conf|-- bin|-- lib|-- datajar包放在lib目录,启动脚本放在bin目录,日志文件放在log目录,配置文件放在conf目录(包括log4j的配置文件log4j.properties)... 阅读全文

posted @ 2016-04-14 10:08 岚天逸见 阅读(1573) 评论(0) 推荐(0)

2016年4月6日 #

passwd: Have exhausted maximum number of retries for service

摘要: 使用命令passwd修改密码时,遇到如下问题:# echo 'utf8'|passwd zhangsan --stdinChanging password for user zhangsan.passwd: Have exhausted maximum number ... 阅读全文

posted @ 2016-04-06 16:06 岚天逸见 阅读(3708) 评论(0) 推荐(0)

2016年4月5日 #

将单个文件上传到多机器工具

摘要: // 使用示例:// ./mooon_upload -h=192.168.10.11,192.168.10.12 -p=6000 -u=root -P='root123' -s=./abc -d=/tmp/// 表示将本地的文件./abc上传到两台机器192.168.... 阅读全文

posted @ 2016-04-05 17:02 岚天逸见 阅读(108) 评论(0) 推荐(0)

2016年4月1日 #

批量远程执行shell命令工具

摘要: 使用示例(使用了默认用户root,和默认端口号22):./mooon_ssh --h=192.168.4.1,192.168.4.2 -P=password -c='cat /etc/hosts'#include "mooon/net/libssh2.h" // 提供... 阅读全文

posted @ 2016-04-01 09:50 岚天逸见 阅读(268) 评论(0) 推荐(0)

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 78 下一页

导航