免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4151 | 回复: 1
打印 上一主题 下一主题

[服务应用] dhpc服务启动一直报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2018-04-15 11:59 |只看该作者 |倒序浏览
    linux新手,目前在学习linux中,今天在学习搭建PXE+kickstart无人安装的时候需要配置DHCP服务,我按着要求配置了DHCP服务,但是还是无法启动。
1.下面为dhcp.conf配置文件
[root@test-pxe ~]# cat /etc/dhcp/dhcpd.conf
ddns-update-style none;
ignore client-updates;
subnet 192.168.99.0 netmask 255.255.255.0 {
    range 192.168.99.2 192.168.99.250;
    option subnet-mask 255.255.255.0;
    default-lease-time 21600;
    max-lease-time 43200;
    next-server 192.168.100.100;
    filename "/pxelinux.0";
}
2.因为涉及到多块网卡,我从网上找了下资料编辑了/etc/sysconfig/dhcpd,在下面增加了一行。
DHCPDARGS=eno16777736
3.使用systemctl start dhcpd.service的时候报如下错误:
[root@test-pxe ~]# systemctl start dhcpd
Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.
4.通过systemctl status dhcpd.service,有如下报错,也姑姑了下面的报错信息,但是确实没有找到有用的解决方法。
[root@test-pxe ~]# systemctl status dhcpd.service
● dhcpd.service - DHCPv4 Server Daemon
   Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-04-15 11:57:59 CST; 1min 7s ago
     Docs: man:dhcpd(
           man:dhcpd.conf(5)
  Process: 15995 ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid (code=exited, status=1/FAILURE)
Main PID: 15995 (code=exited, status=1/FAILURE)

Apr 15 11:57:59 test-pxe dhcpd[15995]: it work better with this distribution.
Apr 15 11:57:59 test-pxe dhcpd[15995]:
Apr 15 11:57:59 test-pxe dhcpd[15995]: Please report for this software via the Red Hat Bugzilla site:
Apr 15 11:57:59 test-pxe dhcpd[15995]:     http://bugzilla.redhat.com
Apr 15 11:57:59 test-pxe dhcpd[15995]:
Apr 15 11:57:59 test-pxe dhcpd[15995]: exiting.
Apr 15 11:57:59 test-pxe systemd[1]: dhcpd.service: main process exited, code=exited, status=1/FAILURE
Apr 15 11:57:59 test-pxe systemd[1]: Failed to start DHCPv4 Server Daemon.
Apr 15 11:57:59 test-pxe systemd[1]: Unit dhcpd.service entered failed state.
Apr 15 11:57:59 test-pxe systemd[1]: dhcpd.service failed.


论坛徽章:
17
巨蟹座
日期:2014-11-20 23:04:5215-16赛季CBA联赛之北控
日期:2018-08-01 16:08:4015-16赛季CBA联赛之浙江
日期:2017-12-08 11:25:2415-16赛季CBA联赛之四川
日期:2016-11-21 00:16:50操作系统版块每日发帖之星
日期:2016-07-28 06:20:0015-16赛季CBA联赛之吉林
日期:2016-05-25 15:36:04操作系统版块每日发帖之星
日期:2016-02-12 06:20:002015亚冠之西悉尼流浪者
日期:2015-08-28 14:48:322015亚冠之平阳省
日期:2015-08-19 14:54:162015亚冠之武里南联
日期:2015-07-07 10:49:112015亚冠之城南
日期:2015-06-22 10:15:002015亚冠之山东鲁能
日期:2015-06-18 18:03:44
2 [报告]
发表于 2018-05-03 11:07 |只看该作者
用journalctl -xe看日志
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP