大家晚上好。我的 dhcp 服务器停止工作了。我拉取了状态和功能失败。如果有人能帮助我。
service isc-dhcp-server status 脚本
root@jhn01:~# service isc-dhcp-server restart
root@jhn01:~# service isc-dhcp-server status
● isc-dhcp-server.service - ISC DHCP IPv4 server
Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Qui 2016-01-28 23:58:04 BRST; 6s ago
Docs: man:dhcpd(8)
Process: 1252 ExecStart=/bin/sh -ec CONFIG_FILE=/etc/dhcp/dhcpd.conf; if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp/dhcpd.conf; fi; [ -e /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases; exec dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf $CONFIG_FILE $INTERFACES (code=exited, status=1/FAILURE)
Process: 1248 ExecStartPre=/bin/chown dhcpd:dhcpd /run/dhcp-server (code=exited, status=0/SUCCESS)
Main PID: 1252 (code=exited, status=1/FAILURE)
Jan 28 23:58:04 jhn01 sh[1252]: Can't open /var/lib/dhcp/dhcpd.leases for append.
Jan 28 23:58:04 jhn01 sh[1252]: If you think you have received this message due to a bug rather
Jan 28 23:58:04 jhn01 sh[1252]: than a configuration issue please read the section on submitting
Jan 28 23:58:04 jhn01 sh[1252]: bugs on either our web page at www.isc.org or in the README file
Jan 28 23:58:04 jhn01 sh[1252]: before submitting a bug. These pages explain the proper
Jan 28 23:58:04 jhn01 sh[1252]: process and the information we find helpful for debugging..
Jan 28 23:58:04 jhn01 sh[1252]: exiting.
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, statu...ILURE
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Jan 28 23:58:04 jhn01 systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
版本 SO: 分销商 ID:Ubuntu 描述:Ubuntu Xenial Xerus(开发分支) 发布:16.04 代号:xenial
答案1
这是 isc-dhcp-server/apparmor 中的一个错误。请参阅 https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1543794 寻求进展和可能的解决办法