摘要: [smmprd@(LIVE)smm-app01 ~]$ cat .profile export ANT_HOME=/data/server/ant1.9.2 export JAVA_HOME=/data/server/jdk1.7 export M2_HOME=/data/server/maven3.1.0 export PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$M... 阅读全文
posted @ 2018-07-12 16:26 cornerxin 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash tomcatRoot=/data/server/tomcats for tomcatDir in `ls $tomcatRoot` do logDir="$tomcatRoot/$tomcatDir/logs" find $logDir -type f -name "app*20??-??-??.log" -mtime +7 -exec gzip {} ... 阅读全文
posted @ 2018-07-12 16:24 cornerxin 阅读(954) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash logHome=/data/server/tomcats/tomcat7_8180_apiService/logs resultLog=/data/shell/result_fetch.out cd $logHome filelist=`ls $logHome|grep -w FACEBOOK20140723` for file in $filelist do if... 阅读全文
posted @ 2018-07-12 16:23 cornerxin 阅读(623) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash tomcatRoot=/data/server/tomcats keepDays=30 managerLog="/data/shell/logs/`date '+%F'`.log" logDate=`date -d "-1 day" +%F` deleteLogDate=`date -d "-$keepDays day" +%F` for tomcatDir in `l... 阅读全文
posted @ 2018-07-12 16:21 cornerxin 阅读(136) 评论(0) 推荐(0) 编辑