55;23;*;*;6;/secure/rotate_log;-n;40;daemonlog;
55;23;*;*;6;/secure/rotate_log;-n;40;kernlog;
55;23;*;*;6;/secure/rotate_log;-n;40;local0log;
55;23;*;*;6;/secure/rotate_log;-n;40;local2log;
55;23;*;*;6;/secure/rotate_log;-n;40;local5log;
55;23;*;*;6;/secure/rotate_log;-n;40;newslog;
55;23;*;*;6;/secure/rotate_log;-n;40;userlog;
55;23;*;*;6;/secure/rotate_log;-n;40;lprlog;
55;23;*;*;6;/secure/rotate_log;-n;40;maillogd;
在root的cron中加入每年清理日志文件的条目;
##Empty;login/logout;records;at;year;end;
0;0;31;12;*;/secure/wtrim.pl;wtmp;20;
0;0;31;12;*;/secure/wtrim.pl;wtmpx;20;
#;
#Solaris;2.x;logs;
0;4;*;*;6;/secure/totate_log;-L;/var/adm;-n;30;loginlog;
0;4;*;*;6;/secure/rotate_log;-L;/var/adm;-n;30;sulog;
0;4;*;*;6;/secure/rotate_log;-L;/var/adm;-n;2;vold.log;
0;4;*;*;6;/secure/rotate_cron;
其它的需要在root的cron设置条目:;
每天与可靠的时间源进行时间同步,使用rdate(NTP会更加精确,但会带来相应的风险);
##Synchronise;the;time:;
0;*;*;*;*;/usr/bin/rdate;YOURTIMEHOST;>/dev/null;2>&1;
安装检查重要进程是否运行的脚本,monitor_processes.pl并在root的cron中加入:;
##Check;that;important;processes;are;running;during;office;hours:;
##[If;you;run;7x24,modify;accordingly];
0,30;8-19;*;*1-5;/secure/monitor_processes.pl;sshd;httpd;
每次安装新的程序后,最好在文件中记录下来,如:;
cat;>/etc/mods<
推荐阅读
- 三 性能调试---CPU性能分析
- 《暗黑破坏神4》将每三个月推出一次重大季度更新
- 日本实体月榜:任天堂Switch三月重登游戏机销量榜首
- 驾照使用有效期是多久
- 直接引用句什么意思
- 买N1110的过程和使用后的一些感受
- 有没有p图软件的小程序?p图软件微信小程序使用教程
- 一 使用Yassp工具包安装安全的Solaris系统
- sk65使用1月纪念
- 汽车喷漆有哪些技巧