... 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()...
...users, load average: 1.00, 0.94, 0.90 Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.3 sy, 99.7 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 501768 total, 281380 used, 220388 free, 15148 buffers KiB Swap: 0 total, 0 ...