LoginSignup
0
0

More than 1 year has passed since last update.

【チートシート】Linux systemctlコマンド使い方まとめ

Posted at

はじめに

systemdの使い方はすぐ忘れてしまいます。
忘れてもすぐに思い出せるようにまとめておきました。

目的別

起動

# systemctl start サービス名

停止

# systemctl stop サービス名

ステータス確認

# systemctl status サービス名

再起動

# systemctl restart サービス名

再読み込み

# systemctl reload サービス名

サービス自動起動ON

# systemctl enable サービス名

サービス自動起動OFF

# systemctl diable サービス名

サービス自動起動設定確認

# systemctl is-enabled サービス名

全サービス起動状態の確認

# systemctl list-units -t service

サービス自動起動設定の確認

# systemctl list-unit-files -t service

設定ファイルの再読み込み

# systemctl daemon-reload

おまけ

もう少し詳しく知りたくなった時

# man systemctl
# man systemd
# man journalctl
# man loginctl
# man machinectl
# man systemd.unit
# man systemd.resource-control
# man systemd.special
# man systemd.preset
# man systemd.generator

で詳しい情報が見れます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0