CentOS系统中不同发行版本,日志位置可能不同,目前碰到两种情况: 1. /etc/syslog.conf 2./etc/rsyslog.conf 下面,修改配置文件内容后,需要/etc/init.d/rsyslog restart 重启下日志系统,即修改生效