摘要: 开发数据库程序流程: 1.创建connection对象,获取cursor 2.使用cursor执行SQL 3.使用cursor获取数据、判断执行状态 4.提交事务 或者 回滚事务 import: 数据库连接对象:connection 数据库交互对象: #!/usr/bin/python# -*- c 阅读全文
posted @ 2018-02-13 16:11 littlevigra 阅读(181) 评论(1) 推荐(0) 编辑
摘要: 从进程中看到,好像是postfix有问题。我这postfix主要是用来给程序发达邮件用的,如报警,程序外发邮件等。平时postfix进程不会像现在这样异常,这在postf主进程CPU占用高,其它的相关进程,也占用很高,如smtp,qmgr等。当然,也看到了不少error的进程,而且属主是postfi 阅读全文
posted @ 2018-02-13 11:13 littlevigra 阅读(795) 评论(4) 推荐(0) 编辑
摘要: 测试:用shell执行一个脚本很麻烦的,用script执行 1)推送脚本过去,并授权 ansible george -m copy -a "src=/tmp/test.sh dest=/tmp mode=+x" 2)运行脚本 ansible george -m shell -a "/tmp/test 阅读全文
posted @ 2018-02-13 10:40 littlevigra 阅读(181) 评论(2) 推荐(0) 编辑