Linux

lsof: find out what ports are being used in the background.

When working with Linux, sometimes you want to install 2 different pieces of server software. Once you’ve finished doing so, you may run into an error or 2 about it not starting up through either systemd or by running it directly. In most cases, this is usually caused by the both of them attempting to listen on the same port. You may have a hard time diagnosing what’s causing it, but thanks to lsof you won’t have to.