Nesula
1.0.0
1.0.0
  • Introduction
  • Overview
    • First steps
    • Architecture
    • Authentication
    • Authorization
    • Routing
    • Meta
    • Mail
    • Security
      • Content Security Policy
    • Configuration
    • Service Worker
    • Logger
  • Development
    • Angular
    • NestJS
  • Nesula Devops
    • Nesula Setup
      • Files: Git
      • Database: Postgres
      • Server: Nginx
      • .Env & environment.ts
      • SSL
      • Build & Serve
    • Deployment
      • Deploy: Development
      • Deploy: Staging
      • Deploy: Production
    • Installation [ Old ]
  • Developer Setup
    • Visual Studio Code
      • Extensions
      • Run & Debug: Launch.json
      • Remote SSH
    • Chrome
    • Postman
  • Server Setup
    • Ubuntu Server Setup
      • Settings
      • Security
      • Users
    • App Server Setup
    • Node.js Hello World
    • Command Line
Powered by GitBook
On this page
  • Nginx
  • Ports

Was this helpful?

  1. Server Setup

Command Line

Helpful Linux command line functions

PreviousNode.js Hello World

Last updated 3 years ago

Was this helpful?

Nginx

Nginx: Find domain name

Search for all references to a domian in nginx config files

bash
$ grep -r mydomain.com /etc/nginx/sites-enabled/*

Ports

Kill Node process by Port

Find and Kill the node process on a port:

bash
$ 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

Use to check if issue is related to a blocked outbound port.

bash
$ curl portquiz.net:465   [ Check outbound port 465 ]
Port 465 test successful!
Your IP: 177.77.77.77
http://portquiz.net/