Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Create a new account
      Forgot your password?

Side Menu

  • Overview
  • Activity
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leafModalität
        • Expanded. Click to collapseCollapsed. Click to showThemen
          • Hierarchy leaf00) Installation GNU/Linux in Virtualbox
          • Hierarchy leaf01) GNU/Linux Basics & Bash commandos
          • Hierarchy leaf02) Schulinternes APT Repository
          • Hierarchy leaf03) Fernwartung über SSH
          • Hierarchy leaf04) Prozesse und Systemd
          • Hierarchy leaf05) UFW
          • Hierarchy leaf06) MySQL
          • Hierarchy leaf07) Abfragen an die Mondial Datenbank
          • Hierarchy leaf08) PostgreSQL
          • Hierarchy leaf10) Crontab
          • Hierarchy leaf11) Wordpress
          • Expanded. Click to collapseCollapsed. Click to show12) Docker
            • Hierarchy leaf00) MySQL - Volumes - Ports ...
            • Hierarchy leaf01) PostgreSQL
            • Hierarchy leaf02) Docker-Compose
You are here:
  • Wiki
  • Themen
  • 04) Prozesse und Systemd

Content

04) Prozesse und Systemd

  • More
    • Print
    • Table of contents

Prozesse

Welche Prozesse laufen zur Zeit

top
ps aux

Filtern nach einem bestimmten Prozess (bsp.: ssh):

ps aux | grep ssh

Prozess beenden:

#Mittels pid (eine höfliche Aufforderung)
kill [pid]
#Mittels pid (aber wirklich, nicht mehr höflich)
kill -9 [pid]
#Mittels Pattern (eine höfliche Aufforderung)
pkill [-Signal]? [pid]

Nettes graphisches Tool zur Prozess und Systemüberwachung:

sudo apt-get install htop
htop

Systemd

Systemd ist das bevorzugte init System von Ubuntu. Das init System ist dafür zuständig, Prozesse/Services beim hochfahren des Computers zu starten.

Systemd bietet die Möglichkeit Services zu starten und zu beenden, im Folgenden Beispiel den ssh daemon:

#Aktuellen Status des Services abfragen
sudo systemctl status ssh
#Stoppen
sudo systemctl stop ssh
#Starten
sudo systemctl start ssh
#Neu starten
sudo systemctl restart ssh
#Neu laden (nicht bei jedem Service verfügbar)
sudo systemctl reload ssh
#Deaktivieren, Service wird beim Hochstarten nicht mehr gestartet
sudo systemctl disable ssh
#Aktivieren, Service wird beim Hochstarten gestartet
sudo systemctl enable ssh
Loading...