Chinaunix首页 | 论坛 | 博客
  • 博客访问: 289664
  • 博文数量: 66
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2015-11-25 09:52
个人简介

no pains no gains

文章分类

全部博文(66)

文章存档

2017年(10)

2016年(39)

2015年(17)

我的朋友

分类: 系统运维

2016-10-28 09:21:11

在 6.5 上装了 DHCP 配置好之后,用 "sudo service dhcpd start" 启动报错,但是用 "sudo dhcp" 可以启动,然后查看
"/var/log/messages" 文件  tail -f  /var/log/messages |grep dhcpd

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
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 dhcphost 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 on the release available
Feb  3 09:12:32 dhcphost dhcpd: on ftp.isc.org.  Features have been added and other changes
Feb  3 09:12:32 dhcphost dhcpd: have been made to the base software release in order to make
Feb  3 09:12:32 dhcphost dhcpd: it work better with this distribution.
Feb  3 09:12:32 dhcphost dhcpd:
Feb  3 09:12:32 dhcphost dhcpd: Please report for this software via the CentOS Bugs Database:
Feb  3 09:12:32 dhcphost dhcpd:   
Feb  3 09:12:32 dhcphost dhcpd:
Feb  3 09:12:32 dhcphost dhcpd: exiting.

其中这一行引起注意

Feb  3 09:12:32 dhcphost dhcpd: Can't chown new lease file: Operation not permitted

于是检查 /etc/rc.d/init.d/dhcpd 文件,发现其中有如下两行定义了启动dhcp的user和group

user=dhcpd

group=dhcpd

想到上面提到的用 "sudo service dhcpd start" 不能启动而用 "sudo dhcp" 可以启动,想到可能是用户权限问题,于是把这两个参数修改为:

user=root

group=root

然后再使用 "sudo service dhcpd start" 启动DHCP,问题解决。

Linux系统下构建DHCP服务器

CentOS下配置主从DNS服务器以及DHCP下的DDNS

Linux 11 pxe+DHCP+tftp+ftp 无人值守安装

Linux下架设DHCP服务器过程及3种测试

Linux上一步一步实现DHCP服务器

CentOS 6.5系统下构建DHCP服务器

Linux下DHCP服务器的搭建(RHEL5.2)

更多CentOS相关信息见 专题页面

本文永久更新链接地址

阅读(1160) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~