Where to start First steps track · 15 stages
Linux Labs

Services and systemd

20 articles, grouped by kind; the order follows the tracks.

Concepts 5

  • Service

    What a service is, how it differs from an ordinary program, and how to manage it.

    systemctl statussystemctl startsystemctl stop

    5 min
  • systemd

    The init system and service manager (PID 1): units, targets, dependencies, journals.

    systemctl statussystemctl startsystemctl stop

    8 min
  • Cron — the task scheduler

    Running tasks on a schedule: crontab syntax, classic cron and modern systemd timers.

    crontab -ecrontab -lsystemctl list-timers

    6 min
  • systemd timers — scheduled jobs

    A systemd timer is a .timer unit that starts the service of the same name on a schedule; its output goes to the journal.

    systemctl list-timerssystemctl enablesystemctl start

    11 min
  • KVM and libvirt

    Virtual machines on Linux — managed with virsh, networks, storage, console.

    virsh listvirsh startvirsh shutdown

    4 min

Commands 3

Services 12

  • nginx — web server and reverse proxy

    nginx serves sites from disk and forwards requests to applications; it picks a site by Host, nginx -t checks the config.

    nginx -tsystemctl reloadnginx -T

    13 min
  • PostgreSQL — access, pg_hba.conf, dump and restore

    PostgreSQL is a relational DBMS: roles and databases, pg_hba.conf access rules, pg_dump dumps and pg_restore restores.

    systemctl startpg_lsclusterspsql -h

    14 min
  • Redis — in-memory key-value store

    Cache, queues, and sessions in RAM; KEYS * blocks the server on large databases — use --scan instead.

    redis-cli pingredis-cli inforedis-cli --bigkeys

    5 min
  • chrony: time synchronization over NTP

    An NTP client and server: keeps the system clock in step with time servers and can serve time to your machines.

    chronyc trackingchronyc sourceschronyc sourcestats

    13 min
  • Prometheus — metrics collection

    Collecting metrics with a pull model — targets, PromQL, exporters, alerts.

    promtool checkcurl

    3 min
  • Grafana — dashboards

    Visualizing metrics and logs — data sources, dashboards, variables, alerts.

    systemctl statusss -tlnpgrafana-cli admin

    4 min
  • Samba — file sharing over SMB

    An SMB server for Windows-compatible shares; the SMB password is separate from the system one, easy to forget to set.

    smbpasswd -atestparmsmbstatus

    5 min
  • Postfix — a mail server

    Sending and receiving mail — config, the queue, logs, typical delivery debugging.

    postconf -nmailqpostqueue -f

    4 min
  • BIND9 — DNS server

    Running your own DNS — zones, records, config checks, resolving debug.

    named-checkconfnamed-checkzonerndc reload

    3 min
  • DHCP server

    Handing out addresses on a network — pool, reservations, leases, diagnostics.

    dhcpd -tcatjournalctl -u

    3 min
  • HAProxy — load balancer

    Load balancing and proxying TCP/HTTP — backends, health checks, statistics.

    haproxy -csystemctl reloadecho

    4 min
  • keepalived — high availability with VRRP

    High availability through a virtual IP — failover between nodes using VRRP.

    ip ajournalctl -u

    4 min

Nothing found. Try a shorter query.

Loading…