User Tools

Site Tools


ubuntu:networking:ports:port_already_in_use

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:networking:ports:port_already_in_use [2021/02/05 14:29] peterubuntu:networking:ports:port_already_in_use [2021/02/05 14:36] (current) peter
Line 14: Line 14:
 systemd-r 1019 systemd-resolve   13u  IPv4  45567      0t0  TCP 127.0.0.53:domain (LISTEN) systemd-r 1019 systemd-resolve   13u  IPv4  45567      0t0  TCP 127.0.0.53:domain (LISTEN)
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  This shows it is being used by systemd-resolve.
 +</WRAP>
 +
  
 ---- ----
Line 28: Line 33:
 tcp            LISTEN                  4096         127.0.0.53%lo:domain        0.0.0.0:               users:(("systemd-resolve",pid=1019,fd=13))   tcp            LISTEN                  4096         127.0.0.53%lo:domain        0.0.0.0:               users:(("systemd-resolve",pid=1019,fd=13))  
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  This shows it is being used by systemd-resolve.
 +</WRAP>
 +
 +----
 +
 +===== Disable any service that is running on this port =====
 +
 +<code bash>
 +sudo systemctl stop systemd-resolved
 +sudo systemctl disable systemd-resolved
 +sudo systemctl mask systemd-resolved
 +
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The mask is to prevent this service auto starting on reboot.
 +</WRAP>
 +
 +----
 +
 +To undo what you did:
 +
 +<code bash>
 +sudo systemctl unmask systemd-resolved
 +sudo systemctl enable systemd-resolved
 +sudo systemctl start systemd-resolved
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  An alternative to the **enable** command is:
 +
 +<code bash>
 +sudo systemctl defaults systemd-resolved
 +</code>
 +
 +</WRAP>
  
ubuntu/networking/ports/port_already_in_use.1612535363.txt.gz · Last modified: 2021/02/05 14:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki