After CentOS6.5 has DHCP configured, start the error with "sudo service dhcpd start", but use "sudo DHCP" to start, and then view the "/var/log/messages" file
Feb 3 09:12:32 dhcphost dhcpd:internet Systems Consortium DHCP Server 4.1.1-p1 Feb 3 09:12:32 dhcphost dhcpd:copyright
2004-2010 Internet Systems Consortium.
Feb 3 09:12:32 dhcphost dhcpd:all rights reserved. Feb 3 09:12:32 dhcphost dhcpd:for info, please visit Https://www.isc.org/software/dhcp/Feb 3 09:12:32 dhcphost dhcpd: Not searching LDAP since Ldap-server, Ldap-port and LDAP-BASE-DN were not specified in the config file Feb 3 09:12:32 Phost Dhcpd:can ' t chown new lease File:operation not permitted Feb 3 09:12:32 dhcphost dhcpd:feb 3 09:12:32 dhcphost Dhcpd:this version of ISC DHCP is based in the release available Feb 3 09:12:32 dhcphost dhcpd:on. Features have been added and other changes Feb 3 09:12:32 dhcphost Dhcpd:have been made to the base software
Order to make Feb 3 09:12:32 dhcphost dhcpd:it work and this better. Feb 3 09:12:32 dhcphost dhcpd:feb 3 09:12:32 dhcphost dhcpd:please to this software Via the CentOS Bugs Database:feb 3 09:12:32 dhcphost dhcpd:http://bugs.centos.org/feb 3 09:12:32 dhcphost dhcpd: Feb 3 09:12:32 dhcphost dhcpd:exiting.
One of the lines drew attention.
Feb 3 09:12:32 dhcphost dhcpd:can ' t chown new lease File:operation not permitted
So check the/ETC/RC.D/INIT.D/DHCPD file and find that there are two lines that define the user and group that started DHCP
USER=DHCPD
GROUP=DHCPD
Think of the above mentioned "sudo service dhcpd start" can not start with "sudo dhcp" to start, think of the possibility of user rights issues, and then modify these two parameters to:
User=root
Group=root
Then use "sudo service dhcpd start" to start DHCP and solve the problem.