Command Line
Helpful Linux command line functions
Nginx
Nginx: Find domain name
$ grep -r mydomain.com /etc/nginx/sites-enabled/*Ports
Kill Node process by Port
$ lsof -i tcp:3000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 3391363 ifactory 22u IPv6 179906924 0t0 TCP *:3008 (LISTEN)
$ kill -9 3391363 [ syntax: kill -9 <PID> ]Check outbound Port is open
Last updated
