Skip to content

Latest commit

 

History

History
36 lines (35 loc) · 836 Bytes

pm2.md

File metadata and controls

36 lines (35 loc) · 836 Bytes

General

  • Running script python with no autorestart
    pm2 start <file> --interpreter python3 --no-autorestart --name <process_name>
  • Passing arguments
    pm2 start <file.py> --<arg1> <arg2>  --interpreter python3 --no-autorestart --name <process_name>
    pm2 start 77115.py --interpreter ../venv/bin/python3 --no-autorestart --name 77115
  • Show a terminal dashboard
    pm2 monit
  • Show logs from a process
    pm2 log <id_pm2_process>
  • Stop process
    pm2 stop <id_pm2_process>
  • List all running application
    pm2 list
  • Display metadata about an application
    pm2 show <id_pm2_process>
  • Remove a process
    pm2 delete <id_pm2_process>