tag:crieit.net,2005:https://crieit.net/tags/systemctl/feed 「systemctl」の記事 - Crieit Crieitでタグ「systemctl」に投稿された最近の記事 2021-05-31T16:00:31+09:00 https://crieit.net/tags/systemctl/feed tag:crieit.net,2005:PublicArticle/17335 2021-05-31T16:00:31+09:00 2021-05-31T16:00:31+09:00 https://crieit.net/posts/LInux-systemctl LInuxでサーバの起動とか停止を管理してくれるsystemctlコマンド <h1 id="systemctlコマンドとは"><a href="#systemctl%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A8%E3%81%AF">systemctlコマンドとは</a></h1> <p>Linuxの起動処理やシステム管理をコントロールするためのコマンド。<br /> サービスの起動や停⽌の操作をする際に⽋かせない。<br /> systemctlは、<strong>systemd</strong>を採⽤しているディストリビューションで使われる。</p> <pre><code># systemctl [サブコマンド] [サービス名(ユニット名)] 例(Webサーバを自動起動設定する場合) # systemctl enable httpd </code></pre> <h1 id="サブコマンド集"><a href="#%E3%82%B5%E3%83%96%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E9%9B%86">サブコマンド集</a></h1> <pre><code>サブコマンド 効果 start 開始する restart 再起動する stop 停⽌する status 状態を確認する enable ⾃動起動を有効にする disable ⾃動起動を無効にする is-enabled ⾃動起動の状態を確認する list-unitfiles インストールされているユニットを表⽰する </code></pre> tobara