LoginSignup
40
35

More than 5 years have passed since last update.

Linuxをシングルユーザーモードで起動する

Last updated at Posted at 2016-10-02

はじめに

シングルユーザーモードで起動すると必要最小限のデーモンを起動し、パスワードを入力することなく、rootアカウントでログインするモードになります。
Windowsのセーフモードに当たるもので、主にメンテナンスの際に利用されます。

起動

  1. まずサーバーを起動します。

  2. 「Press any key to enter the menu」という画面が表示されたら「ESC」キーを押下します。
    linux_single01.png

  3. 「CentOS ・・・」と表示されるので、「e」キーを押下します。
    もし、複数カーネルが表示された場合は起動時に利用しているカーネルを指定してください。
    linux_single02.png

  4. 「kernel ・・・」のところで「e」キーを押下します。
    linux_single03.png

  5. 行の末尾に「single」を入力して「Enter」キーを押下します。
    linux_single05.png

  6. 「b」キーを押下します。
    linux_single06.png

  7. あとは起動してプロンプトが返ってきたら終わりです。
    linux_single07.png

おわりに

最近ではAWSなどのクラウドの普及によって物理サーバーに触れる機会がほとんどないと思いますが、ここら辺は一応基本知識なので、インフラエンジニアは知っておいた方がいざという時に恥をかかないで済むかもしれません。

40
35
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
40
35