Modify the record location of dhcp service logs in centos
Source: Internet
Author: User
Modify the record location of the dhcp service log in centos. 1. edit the dhcp service configuration file vim/etc/dhcp/dhcpd. add www.2cto to the end of conf. comlog-facilitylocal4; 2 edit rsyslog service configuration file vim/etc/rsyslog. add conf...
Modify the record location of the dhcp service log in centos. 1. edit the dhcp service configuration file vim/etc/dhcp/dhcpd. add www.2cto.com log-facility local4 to the end of conf; 2. edit the rsyslog service configuration file vim/etc/rsyslog. add # Save dhcpd messages also to dhcpd to conf. log local4. */var/log/dhcpd. log 3 creates/var/log/dhcpd. log file, with the same permissions as/var/log/messages touch/var/log/dhcpd. log www.2cto.com chmod 600/var/log/dhcpd. log 4 restart rsyslog service rsyslog restart 5 restart the dhcpd service to check whether the service dhcpd restart tail-f/var/log/dhcpd is successful. conf author kakane
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service