我在现有的bind9安装上安装了pihole。现在,我无法启动FTL:
pihole-FTL dnsmasq: failed to create listening socket for 192.168.0.2: Address already in use
我是否必须关闭bind9,还是可以更改bind9的端口(当pihole工作时,我不再需要我的bind9了,但是也许pihole需要bind9了-但我找不到任何东西(关于仍然存在的配置文件一无所有)在Ubuntu 18.04中)。附件:
整体输出:
# systemctl status pihole-FTL.service
● pihole-FTL.service - LSB: pihole-FTL daemon
Loaded: loaded (/etc/init.d/pihole-FTL; generated)
Active: active (exited) since Mon 2020-09-28 21:18:59 CEST; 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 21530 ExecStop=/etc/init.d/pihole-FTL stop (code=exited, status=0/SUCCESS)
Process: 21546 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)
Sep 28 21:18:59 ubuntu1804 pihole-FTL[21530]: Not running
Sep 28 21:18:59 ubuntu1804 systemd[1]: Stopped LSB: pihole-FTL daemon.
Sep 28 21:18:59 ubuntu1804 systemd[1]: Starting LSB: pihole-FTL daemon...
Sep 28 21:18:59 ubuntu1804 pihole-FTL[21546]: Not running
Sep 28 21:18:59 ubuntu1804 su[21581]: Successful su for pihole by root
Sep 28 21:18:59 ubuntu1804 su[21581]: + ??? root:pihole
Sep 28 21:18:59 ubuntu1804 su[21581]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 28 21:18:59 ubuntu1804 pihole-FTL[21546]: dnsmasq: failed to create listening socket for 192.168.0.2: Address already in use
Sep 28 21:18:59 ubuntu1804 su[21581]: pam_unix(su:session): session closed for user pihole
Sep 28 21:18:59 ubuntu1804 systemd[1]: Started LSB: pihole-FTL daemon.
最佳答案
我找到了可行的解决方案。我停止了bind9和pihole-FTL。然后我重新启动pihole-FTL。然后它起作用了。我禁用bind9以确保它不会再困扰我。
systemctrl stop bind9 pihole-FTL
systemctrl start pihole-FTL
systemctrl disable bind9
关于sockets - 在bind9上安装pihole,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64108400/