Y
Y
Yuri Gavrilyuk2021-01-18 23:14:00
linux
Yuri Gavrilyuk, 2021-01-18 23:14:00

How to close TCP 443, TCP 80 and UDP 53 ports on ubuntu server?

When working on the server, an error occurred that these ports are occupied by other processes, how to release processes
Error type
[20:13:20] [!!!] Failed to start nameserver on port 53
[20:13:21] [!!!] listen tcp :443: bind: address already in use

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-01-18
@ky0

To begin with, why is your DNS server going to listen on port 443?
To find out what process is listening on the port, you can use ss, netstatand similar utilities. Then, if you want to free the port, just turn off the corresponding service.

H
hint000, 2021-01-19
@hint000

Failed to start nameserver on port 53

sudo systemctl stop systemd-resolved.service
sudo systemctl disable systemd-resolved.service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question