免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3386 | 回复: 10

[其他] centos 6.3 安装dhcp的问提 [复制链接]

论坛徽章:
0
发表于 2014-12-19 14:26 |显示全部楼层
本帖最后由 mengcun123 于 2014-12-19 14:44 编辑

贴出代码:为什么启动失败

dncp服务器端的ip地址192.168.1.1 掩码255.255.255.0  网关192.168.1.254  分配网段192.168.1.2-192.168.1.250

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.250;
  option domain-name-servers 8.8.8.8;
  option routers 192.168.1.254;
  option broadcast-address 192.168.1.255;
  default-lease-time 600;
  max-lease-time 7200;
}

host fantasia {
    hardware ethernet EC:17:2F:BD:EC:B8;
    fixed-address 192.168.1.1;
}

log:

Dec 19 14:38:47 localhost dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Dec 19 14:38:47 localhost dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Dec 19 14:38:47 localhost dhcpd: All rights reserved.
Dec 19 14:38:47 localhost dhcpd: For info, please visit
Dec 19 14:38:47 localhost dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Dec 19 14:38:47 localhost dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Dec 19 14:38:47 localhost dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Dec 19 14:38:47 localhost dhcpd: All rights reserved.
Dec 19 14:38:47 localhost dhcpd: For info, please visit
Dec 19 14:38:47 localhost dhcpd: Can't chown new lease file: Operation not permitted
Dec 19 14:38:47 localhost dhcpd:
Dec 19 14:38:47 localhost dhcpd: This version of ISC DHCP is based on the release available
Dec 19 14:38:47 localhost kernel: type=1400 audit(1418971127.037:34407): avc:  denied  { chown } for  pid=29897 comm="dhcpd" capability=0  scontext=unconfined_u:system_r:dhcpd_t:s0 tcontext=unconfined_u:system_r:dhcpd_t:s0 tclass=capability
Dec 19 14:38:47 localhost dhcpd: on ftp.isc.org.  Features have been added and other changes
Dec 19 14:38:47 localhost dhcpd: have been made to the base software release in order to make
Dec 19 14:38:47 localhost dhcpd: it work better with this distribution.
Dec 19 14:38:47 localhost dhcpd:
Dec 19 14:38:47 localhost dhcpd: Please report for this software via the CentOS Bugs Database:
Dec 19 14:38:47 localhost dhcpd:     
Dec 19 14:38:47 localhost dhcpd:
Dec 19 14:38:47 localhost dhcpd: exiting.

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
发表于 2014-12-22 13:50 |显示全部楼层
看看是不是文件权限的问题

Can't chown new lease file: Operation not permitted

还有selinux有没有关掉。

论坛徽章:
0
发表于 2014-12-22 17:07 |显示全部楼层
权限问题是

论坛徽章:
0
发表于 2014-12-22 17:24 |显示全部楼层
回复 3# linuxzkq
什么权限问题,能具体说一下吗,谢谢

   

论坛徽章:
0
发表于 2014-12-22 17:27 |显示全部楼层
回复 2# cryboy2001

已经掉了,但是service dhcpd start 还是启动不了


    ,

论坛徽章:
0
发表于 2014-12-22 22:05 |显示全部楼层
什么掉了?说清楚回复 5# mengcun123


   

论坛徽章:
0
发表于 2014-12-23 08:08 |显示全部楼层
回复 6# linuxzkq
selinux关掉了


   

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
发表于 2014-12-23 10:00 |显示全部楼层
Dec 19 14:38:47 localhost dhcpd: Can't chown new lease file: Operation not permitted

dhcpd无权写lease文件,将该文件权限改为666试试

论坛徽章:
0
发表于 2014-12-23 10:32 |显示全部楼层
回复 8# jixuuse


你是说把dhcp里面所有的文件权限全部赋成666??我已经赋予到775了


   

论坛徽章:
41
操作系统版块每日发帖之星
日期:2016-08-21 06:20:00每日论坛发贴之星
日期:2016-05-05 06:20:00操作系统版块每日发帖之星
日期:2016-05-05 06:20:00IT运维版块每日发帖之星
日期:2016-05-05 06:20:0015-16赛季CBA联赛之山西
日期:2016-04-27 08:49:00操作系统版块每日发帖之星
日期:2016-04-25 06:20:00操作系统版块每日发帖之星
日期:2016-04-17 06:23:2815-16赛季CBA联赛之吉林
日期:2016-03-25 15:46:3415-16赛季CBA联赛之四川
日期:2016-03-25 14:26:19操作系统版块每日发帖之星
日期:2016-05-27 06:20:00操作系统版块每日发帖之星
日期:2016-05-28 06:20:00IT运维版块每日发帖之星
日期:2016-08-18 06:20:00
发表于 2014-12-23 10:56 |显示全部楼层
看清楚提示好么?lease这个文件默认应该是在/var/xxx/目录里,你改dhcp当前目录下的文件有用么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP