... echo $(date +%Y-%m-%d-%H-%M-%S)" fastrestart" >> $res_log sleep 3 res=$(get_check_per $1) echo $try_times'testing .... ' fi done try_times=5 if [[ $res == "0" ]] then ps aux |grep -E "xs-[indexd|searched]" | awk '{...
...SQLdb from DBUtils.PooledDB import PooledDB import urllib from time import sleep if __name__ == '__main__': _pool = PooledDB(creator=MySQLdb, host='数据库地址', port=数据库端口, user='用户名', passwd='密码', db='数据库名') _db = _pool.connection() _cur = _db.cursor()...