問題一覧に戻る
上級システム管理
問題56: systemctl - サービス管理

systemd を使用したサービスの管理方法を学びます。サービスの起動・停止、自動起動の設定、ステータス確認、設定のリロードなど、システム管理に必要な systemctl コマンドの使い方を習得しましょう。

# サービスを起動
sudo systemctl nginx

# 自動起動を有効化
sudo systemctl nginx

# ステータスを確認
systemctl nginx

# 設定を再読み込み
sudo systemctl nginx

# ユニット一覧を表示
systemctl