岚天逸见

04 2016 档案

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 岚天逸见 阅读(768) 评论(0) 推荐(0) 编辑

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

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

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 岚天逸见 阅读(3588) 评论(0) 推荐(0) 编辑

将单个文件上传到多机器工具
摘要:// 使用示例:// ./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 岚天逸见 阅读(102) 评论(0) 推荐(0) 编辑

批量远程执行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 岚天逸见 阅读(252) 评论(0) 推荐(0) 编辑

导航

统计信息

点击右上角即可分享
微信分享提示