[root@icloud bin]# /etc/init.d/dhcpd restart
正在启动 dhcpd: [失败]
查看/var/log/message
May 10 15:10:13 icloud dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
May 10 15:10:13 icloud dhcpd: Copyright 2004-2010 Internet Systems Consortium.
May 10 15:10:13 icloud dhcpd: All rights reserved.
May 10 15:10:13 icloud dhcpd: For info, please visit https://www.isc.org/software/dhcp/
May 10 15:10:13 icloud dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
May 10 15:10:13 icloud dhcpd: Can't open /var/lib/dhcpd/dhcpd.leases for append.
M
rm -f /var/lib/dhcpd/dhcpd.leases 新建一个 touch /var/lib/dhcpd/dhcpd.leases
[root@icloud bin]# /etc/init.d/dhcpd restart
正在启动 dhcpd: [失败]
查看/var/log/message
May 10 15:08:23 icloud dhcpd: No subnet declaration for virbr0 (192.168.122.1).
May 10 15:08:23 icloud dhcpd: ** Ignoring requests on virbr0. If this is not what
May 10 15:08:23 icloud dhcpd: you want, please write a subnet declaration
May 10 15:08:23 icloud dhcpd: in your dhcpd.conf file for the network segment
May 10 15:08:23 icloud dhcpd: to which interface virbr0 is attached. **
设置/etc/sysconfig/dhcpd DHCPDARGS="eth0"
[root@icloud bin]# /etc/init.d/dhcpd restart
正在启动 dhcpd: [确定][root@icloud bin]# /etc/init.d/dhcpd status
dhcpd 已死,但 pid 文件仍存
查看/var/log/message
May 10 15:08:56 icloud dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
May 10 15:08:56 icloud dhcpd: Can't create new lease file: Permission denied
selinux权限问题,设置SELINUX=disabled 或者执行 setsebool -P dhcpd_disable_trans 1