在配置完DHCP後,執行
/etc/init.d/dhcpd restart
執行結果失敗
查找DHCP執行日誌:
cat /var/log/messages
報錯:
Jul 30 22:24:21 CentOS6 dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Jul 30 22:24:21 CentOS6 dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Jul 30 22:24:21 CentOS6 dhcpd: All rights reserved.
Jul 30 22:24:21 CentOS6 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jul 30 22:24:21 CentOS6 dhcpd: WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Jul 30 22:24:21 CentOS6 dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Jul 30 22:24:21 CentOS6 dhcpd: Can't chown new lease file: Operation not permitted
Jul 30 22:24:21 CentOS6 dhcpd:
Jul 30 22:24:21 CentOS6 dhcpd: This version of ISC DHCP is based on the release available
Jul 30 22:24:21 CentOS6 dhcpd: on ftp.isc.org. Features have been added and other changes
Jul 30 22:24:21 CentOS6 dhcpd: have been made to the base software release in order to make
Jul 30 22:24:21 CentOS6 dhcpd: it work better with this distribution.
Jul 30 22:24:21 CentOS6 dhcpd:
Jul 30 22:24:21 CentOS6 dhcpd: Please report for this software via the CentOS Bugs Database:
Jul 30 22:24:21 CentOS6 dhcpd: http://bugs.centos.org/
Jul 30 22:24:21 CentOS6 dhcpd:
Jul 30 22:24:21 CentOS6 dhcpd: exiting.
問題描述:
通過以下這句,和無數次搜索得知,問題可能是由於dhcpd權限問題導致
CentOS6 dhcpd: Can't chown new lease file: Operation not permitted
解決方案:
修改/etc/init.d/dhcpd執行語句如下:
vi /etc/init.d/dhcpd
修改其中的
user=dhcpd
gropu=dhcpd
把dhcpd替換爲即可
user=root
group=root
再次啓動
/etc/init.d/dhcpd restart
還是執行失敗==!!!
enen,至少不是這個問題了
繼續排除ing,吐血ing。。。。
待續。。。。