Hello, I’ve been messing around with prosody and snikket and that means I’ve been messing around with nginx. I was having some issues so I decided to uninstall nginx and after anothet round of messing around with snikket, decided to install nginx again. It showed this error and I don’t really know what to do, since I’m really not that good with self-hosting yet. Please help. I will give more info as needed.
Only one program can listen on a port at a given time usually. Something’s listening on port 443 (the standard HTTPS port), and when nginx starts up it tries to listen on that port and can’t. You can figure out what’s already listening on that port with commands like
lsof
ornetstat
, see here for examples:https://superuser.com/questions/42843/finding-the-process-that-is-using-a-certain-port-in-linux
Just to clarify, you can attach one listener per IP and port tuple. This means you can have separate processes listening on, for example, 127.0.0.1:80 and 192.168.0.1:80.
That’s really interesting. What about 0.0.0.0? Does it resolve to localhost or the “public” ip?
0.0.0.0 means listen on all IPs