我使用的是VPS,使用Ubuntu16.04映像,我可以成功地安装bind9,但它不会在启动时启动。在named或bind9下没有/etc/init.d。运行service bind9 start就像预期的那样工作。有什么想法吗?
发布于 2016-07-13 13:59:51
然后,您可以尝试手动激活它:
http://manpages.ubuntu.com/manpages/xenial/man8/update-rc.d.8.html
(遗产)示例:
# update-rc.d bind9 enable关于系统d,它将是:
# systemctl enable bind9发布于 2016-07-14 02:08:17
只是在roothahn的答案上添加一下,因为我觉得它需要一些解释,您想要做的是systemctl enable bind9。Ubuntu16.04使用的是systemd而不是init,所以大多数服务都是通过systemctl完成的,而不是service和/etc/init.d脚本(我认为由于兼容性原因,这些脚本仍然存在)。
就启动、重新启动和停止服务而言,这不是一个巨大的变化。例如,您可以执行systemctl restart ssh而不是service ssh restart、systemctl stop mysql而不是service mysql restart等等。程序名现在排在最后,这使得别名变得更容易(我已经将:r别名为systemctl reload-or-restart,所以我可以:r ssh重新启动sshd)。
https://serverfault.com/questions/789574
复制相似问题