1、日志的查看
系统日志的存放位置 /usr/local/jboss/jboss-4.2.3.GA/server/default/log下
系统启动日志为:boot.log
系统当天的日志为:server.log
历史日志的格式为:server..log.日期
佛山电力系统的日志存放地址为/home/vas/fsepower-iservices/log 可配
当天的日志为:fsepower-iservices.log
历史日志的格式为:fsepower-iservices.log日期
2、日志的定时删除
可定时删除也可手工删除
定时删除命令为
#定时删除系统日志(佛山电力日志)
find /home/vas/ fsepower-iservices /log/ -type f -ctime +365 | xargsrm –rf
#定时删除系统日志
find /usr/local/jboss/jboss-4.2.3.GA/server/default/log / -type f -ctime +365 | xargs rm-rf