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