コマンドの使い方
- systemctl command XXの形。
- commandにはやりたいコマンド。XXには、systemdのserviceや、timerなどを指定する。
- XXはスペース区切りで、複数に対して一括でコマンド実行できる。
コマンドの種類
systemctl status XX
XXの状況を調べることができる。
systemctl start XX
XXを起動する。
systemctl stop XX
XXを停止する。
systemctl enable XX
XXのOS起動時の自動起動を有効にする。
初期構築で使うものであり、statusやstart、stopとは少し経路が違う。
systemctl disable XX
XXのOS起動時の自動起動を無効にする。
初期構築で使うものであり、statusやstart、stopとは少し経路が違う。
