发布时间:2016-05-13 14:49:38
find /opt/soft/log/ -mtime +30 -name "*.log" -exec rm -rf {} \;-mtme 修改时间-exec 执行{} 代表前面查找出的内容\;是固定格式......【阅读全文】
发布时间:2016-04-30 22:20:53
ERROR 1290 (HY000): The MySQL server is running with the --read-only option so it cannot execute this statement mysql> set global read_only=off===================================================================================启动mysqld时报错: ERROR! The server quit without updat.........【阅读全文】
发布时间:2016-04-23 16:57:10
把一直尝试登录服务器的非法ip加入防火墙黑名单,可以按这个思路扩展为把攻击的ip加入防火墙黑名单。有问题欢迎指教,感恩啦。#!/bin/bash##block the illegal ip that attempt to access server###1.get the illegal ipcat /var/log/secure |grep 'Failed password for root'| awk '{print $11}' | uniq -c|awk.........【阅读全文】