上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: 1. 添加一个classmethod 这里要用到装饰器(Decorator)。装饰器的概念可以看这里: "http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/0013868... 阅读全文
posted @ 2015-10-25 08:26 过去的我 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: delete old data in elasticsearch 0.正文。 其实很简单,就是用他的rest api 发一个delete 请求到 localhost:9200/[indices] [indices]怎么获取?可以用过插件,比如head,marvel等。但是最简单还是通过他的... 阅读全文
posted @ 2015-10-15 08:43 过去的我 阅读(378) 评论(0) 推荐(0) 编辑
摘要: iptables做nat网络地址转换。 0. 权威文档 "http://www.netfilter.org/documentation/HOWTO/NAT HOWTO 6.html" e文好的直接跳过本文。 1. Source NAT 在POSTROUTING链里面定义,用 j SNAT... 阅读全文
posted @ 2015-10-13 10:32 过去的我 阅读(892) 评论(0) 推荐(0) 编辑
摘要: zabbix trapper items 1. 一种很灵活的item方式 有别于agent那种方式。他和zabbix_sender配合使用,主动的将数据推(push)给zabbix。 To use a trapper item you must: 1. have a trapper ite... 阅读全文
posted @ 2015-10-13 08:46 过去的我 阅读(329) 评论(0) 推荐(0) 编辑
摘要: pssh -h hosts.txt -l irb2 -o /tmp/foo uptime-l 后面加用户,很好理解,执行uptime,然后把结果写入/tmp/foo目录。pscp -h hosts.txt -l irb2 foo.txt /home/irb2/foo.txt远程传输命令。将foo.t... 阅读全文
posted @ 2014-12-24 15:37 过去的我 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 更新系统emerge --syncemerge --update world安装apacheemerge www-servers/apacherc-update add apache2 default安装mysql emerge dev-db/mysqlemerge --config =dev-db... 阅读全文
posted @ 2014-12-18 16:17 过去的我 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 其实很简单1 xshell 生成pub key 。 在工具 -> 用户密钥管理。 生成 。另存为id_rsa_1024.pub2.服务器上ssh-keygen3.将生成的文件id_rsa_1024.pub 上传到服务器。mv id_rsa_1024.pub /root/.ssh/authorized... 阅读全文
posted @ 2014-12-16 08:24 过去的我 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 1 安装mysqlyum -y install mariadb-serversystemctl start mariadb.servicesystemctl enable mariadb.servicemysql_secure_installation 默认安装的是5.5.40-MariaDB ... 阅读全文
posted @ 2014-12-14 16:14 过去的我 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: 博客n久没更新了,一些工作上面的琐事,静不下心来。白天高强度的对着电脑,回到家还真不想碰linux上面的东西。兴趣减退了,最好的老师没了,也就没动力写博客了。其实真没必要上班花8小时在上面,人的注意力其实集中不了那么久,更何况会时常被人打断。技术积累也停滞不前了。 看到一篇好文档,http:/... 阅读全文
posted @ 2014-12-13 16:44 过去的我 阅读(118) 评论(0) 推荐(0) 编辑
摘要: chap-secrets # Secrets for authentication using CHAP# client server secret IP addressestest * 123123 *设置chap-secrets 文件的时候注意server 填 * ,不要填 pptpd... 阅读全文
posted @ 2014-11-28 16:07 过去的我 阅读(34) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页