编辑dhcp服务配置文件 vim /etc/dhcp/dhcpd.conf 在末尾加入 log-facility local4; 编辑 rsyslog服务配置文件,修改/var/log/messages加入local4.none /var/log/messages vim /etc/rsyslog.conf 加入 # Save dhcpd messages also to dhcpd.log local4.* /var/log/dhcpd.log #*.info;mail.none;authpriv.none;cron.none /var/log/messages *.info;mail.none;authpriv.none;cron.none;local4.none /var/log/messages 重启 rsyslog 服务 service rsyslog restart 重启 dhcpd 服务 service dhcpd restart tail -f /var/log/dhcpd.conf tail -f /var/log/messges (责任编辑:IT) |