#!/bin/bash
#author: QingFeng
#qq: 530035210
#blog: https://my.oschina.net/pwd/blog
#检测含有关键字的文件的总大小
logdir=/data/log/clear #日志路径
log=$logdir/clear.log #日...
#!/bin/bash
IPTABLES=/sbin/iptables
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -t nat -F POSTROUTING
$IPTABLES -t nat -F PREROUTING
$IPTABLES -t nat -F OUTPUT
$IPTA...
#!/bin/bash
#author: QingFeng
#qq: 530035210
#blog: https://my.oschina.net/pwd/blog
#批量清理某目录下的文件或移除某目录下的文件
#缺省的配置如下
#basedir=/data/db/renewal/snapshots #执行目录
#mvdir=/data/m...
#!/bin/bash
base_dir=/data/Mysql-BackCenter
delete_day=30
delete_log_dir=/data/log/delete
download_dir=$base_dir/ZZB-7
vardate=$(date +%Y%m%d)
datebefore=$(date -d "1 days ago" ...
[先上标准化启动脚本:]
#!/bin/bash
# chkconfig: 2345 93 11
# description:$INS_APP Server
. /etc/rc.d/init.d/functions
JAVA_HOME="/usr/local/jdk"
PATH=/usr/local/bin:/usr/local/sbin:/usr/b...