dnsmasq:无法为端口53创build侦听套接字:地址已在使用中

当我完成设置dnsmasq时,我得到了这个错误。

ashokkrishna@krishna:~$ sudo dnsmasq dnsmasq: failed to create listening socket for port 53: Address already in use ashokkrishna@krishna:~$ netstat -lpn | grep :53 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN - tcp6 0 0 :::53 :::* LISTEN - tcp6 0 0 :::53755 :::* LISTEN - udp 0 0 0.0.0.0:53 0.0.0.0:* - udp 0 0 0.0.0.0:5353 0.0.0.0:* - udp6 0 0 :::53 :::* - udp6 0 0 :::5353 :::* - 

所以如何解决这个问题或者如何阻止这些套接字

你可以这样做:

 netstat -tupln 

你会得到这样的结果:

 tcp 0 0 :::80 :::* LISTEN 713/httpd 

把端口53上侦听的进程的pid,并用这个命令杀死它

 kill -9 pid