2.11.10. Forced termination of processes

Hanging or long-running processes can be forcibly terminated in several ways.

  1. Open the "Linux configuration" section.
  2. In the "Hanging processes" block, click "Terminate all processes":
  1. Connect to the hosting via SSH.
  2. Run the htop utility:
    htop
  3. Select the process you want to forceterminate (use the F3 and F4 keys to search and filter processes, and the F5 key to switch between list and tree view).
  4. Press F9, select 15 SIGTERM and press Enter:
  1. Connect to the hosting via SSH.
  2. Run the necessary command:
    • View the list of running processes:
      ps aux
    • Terminate a specific process (instead of PID, use the process ID from the output of ps aux — the number in the PID column):
      kill PID
    • Terminate all PHP processes:
      kill $(pgrep -f php)
    • Terminate all processes (the current SSH connection will also be terminated):
      pkill -9 -u $(whoami)
目录

    (9)