systemd を使用したサービスの管理方法を学びます。サービスの起動・停止、自動起動の設定、ステータス確認、設定のリロードなど、システム管理に必要な systemctl コマンドの使い方を習得しましょう。
# サービスを起動sudo systemctl nginx# 自動起動を有効化sudo systemctl nginx# ステータスを確認systemctl nginx# 設定を再読み込みsudo systemctl nginx# ユニット一覧を表示systemctl