| 日志远程备份小测 |
 |
作者: 来源: 日期:2009-4-8 15:42:25 点击次数: |
|
日志服务器:192.168.1.220【系统平台:Red Hat Enterprise Linux Server release 5.2 (Tikanga)】 测试机:192.168.2.206【系统平台:Red Hat Enterprise Linux Server release 5.3 (Tikanga)】
日志服务器: 1、编辑/etc/sysconfig/syslog: SYSLOGD_OPTIONS="-m 0" 为 SYSLOGD_OPTIONS="-m 0 -r" 2、重启syslog服务,会发现UDP的514端口处于监听状态。
测试机: 1、编辑/etc/syslog.conf: cron.* /var/log/cron 为 cron.* @192.168.1.220 2、重启syslog服务; 3、在crond处于启动状态的情况下,crontab -e */5 * * * * /usr/bin/free >> ~/free.log 4、逢5、逢10的时候,会发现/root/free.log在不断增大,但是/var/log/cron并没有任何的变化.
测试效果: 查看192.168.1.220的/var/log/cron,会发现: Feb 8 16:20:01 192.168.2.206 crond[2328]: (root) CMD (/usr/bin/free >> ~/free.log) Feb 8 16:25:08 192.168.2.206 crond[2341]: (root) CMD (/usr/bin/free >> ~/free.log) Feb 8 16:30:01 192.168.2.206 crond[2345]: (root) CMD (/usr/bin/free >> ~/free.log)
上一篇:解读防火墙(二) 下一篇:怎样在AIX 防火墙上追踪IP通信的状况 |
|
|
 |
| 北京总部: 4006-505-808 |
| 天 津 部: 4006-505-808 |
| 上 海 部: 4006-505-808 |
| 深 圳 部: 4006-505-808 |
| 广 州 部: 4006-505-808 |
| 重 庆 部: 4006-505-808 |
| 南 京 部: 4006-505-808 |
| 其它地区: 4006-505-808 | |
|
 |
|