For explanations of all these commands with their options, see https://www.explainshell.com
Three ways to find processes using port 8080. (May need sudo
.)
ss -lptn 'sport = :8080'
netstat -nlp | grep :8080
lsof -n -i :8080 | grep LISTEN
top
Tree view of processes, where hierarchal relationships are illustrated:
ps axjf # f option doesn't work on my mac
netstat command to find open ports:
netstat --listen
check syntax of nginx configuration files
nginx -t -c /etc/nginx/nginx.conf
socket statistics
ss