摘要: >>>seq = ['one', 'two', 'three'] >>> for i, element in enumerate(seq): ... print i, seq[i] ... 0 one 1 two 2 three >>> enumerate()作用就是对列表进行枚举 求一段文字的位置 阅读全文
posted @ 2018-05-15 23:44 littlevigra 阅读(637) 评论(2) 推荐(0) 编辑
摘要: 今天nagios告警: 172.17.9.76有Alert,看agent的日志有如下: (Agent-Handler-3:null) Connected to the server Lost connection to the server. Dealing with the remai 然后参考这 阅读全文
posted @ 2018-05-15 18:07 littlevigra 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 由于Google的chrome不认可赛门铁克的证书,因此要更换新证书 0.8.6版本 0.9.4版本 - /etc/pki/tls/certs/iRedMail_CA.pem - /etc/ssl/certs/iRedMail.crt - /etc/pki/tls/private/iRedMail. 阅读全文
posted @ 2018-05-15 11:21 littlevigra 阅读(991) 评论(1) 推荐(0) 编辑
摘要: chmod +x /etc/rc.d/rc.localsystemctl enable rc-local.service Note: rc.local is obsolete. OR append commands to /etc/bashrc https://blog.csdn.net/ztgua 阅读全文
posted @ 2018-05-15 10:07 littlevigra 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#author xiaoweige#todo: ip -- > ingredient or ingredient -- > ip #todo: get the ip of the given ingredientfunction ingredient_ip() {#todo: 阅读全文
posted @ 2018-05-15 00:18 littlevigra 阅读(362) 评论(1) 推荐(0) 编辑