#author("2017-02-01T13:10:33+09:00","","")
#navi(../)
* Debianでbootログを確認したい [#nfbb62b8]
Debian起動時にエラー等が出力されている内容を確認しようと思い、~
/var/log/boot.logを確認しようとすると、boot.logが存在しませんでした。~
本資料は、起動時に出力される内容を確認する方法を記します。

#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)

* 使用環境 [#b6f8600d]
 $ lsb_release -a
 No LSB modules are available.
 Distributor ID:	Debian
 Description:	Debian GNU/Linux 8.7 (jessie)
 Release:	8.7
 Codename:	jessie

* journalctlを使用する [#u8654af1]
journalctlを使用することにより、起動時のログ(出力)を確認することができます。

journalctlのヘルプを見ると以下のように-bオプションがあります。
 # journalctl --help
 journalctl [OPTIONS...] [MATCHES...]
 
 Query the journal.
 
 Flags:
 <snip>
   -b --boot[=ID]           Show data only from ID or, if unspecified, the current boot
      --list-boots          Show terse information about recorded boots

オプション-bを使用することにより、起動時の出力を確認することができます。~
尚、rootユーザでjournalctlを起動してください。
 journalctl -b

#ref(01.png)

以上、Debianで起動時のブートログ(出力)を確認する方法でした。

#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS