摘要:
>>>seq = ['one', 'two', 'three'] >>> for i, element in enumerate(seq): ... print i, seq[i] ... 0 one 1 two 2 three >>> enumerate()作用就是对列表进行枚举 求一段文字的位置 阅读全文
摘要:
今天nagios告警: 172.17.9.76有Alert,看agent的日志有如下: (Agent-Handler-3:null) Connected to the server Lost connection to the server. Dealing with the remai 然后参考这 阅读全文
摘要:
由于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. 阅读全文
摘要:
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 阅读全文
摘要:
#!/bin/bash#author xiaoweige#todo: ip -- > ingredient or ingredient -- > ip #todo: get the ip of the given ingredientfunction ingredient_ip() {#todo: 阅读全文