启动DNS服务时,卡在Generating /etc/rndc.key:的解决方法

本文介绍了解决DNS服务启动时因生成/etc/rndc.key文件卡住的问题。通过使用rndc-confgen命令生成密钥文件并重启服务,可以有效解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在启动DNS服务时,出现Generating /etc/rndc.key并且卡住导致服务启动不了。

/etc/rndc.key 是一个密钥文件

rndc: Remove Name Domain Controller 远程域名服务器的控制器

先退出以后发现本机并没有/etc/rndc.key文件

解决:rndc-confgen -r /dev/urandom -a  使用命令生成这个密钥文件

重新启动即可


sudo make defconfig-iwlwifi-public [sudo] chenyuqiang 的密码: Generating local configuration database from kernel ...make[1]: gcc: Command not found done. ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found ./lxdialog/check-lxdialog.sh: 12: ./lxdialog/check-lxdialog.sh: cc: not found cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o conf.o conf.c make[2]: cc: Command not found <内置>: recipe for target 'conf.o' failed make[2]: *** [conf.o] Error 127 Makefile.real:53: recipe for target 'defconfig-iwlwifi-public' failed make[1]: *** [defconfig-iwlwifi-public] Error 2 Makefile:40: recipe for target 'defconfig-iwlwifi-public' failed make: *** [defconfig-iwlwifi-public] Error 2
03-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值