[Linux] 用 lm_sensors 套件查詢 CPU 的溫度
最近 CentOS 7 的機器出現了一些奇怪的訊息,
感覺上機器的硬體可能出了些問題…
首先想來查一下是不是 CPU 風扇壞掉,
但在 Linux 上要怎麼查呢?
查了一下,原來有 lm_sensors 套件可以幫忙~
首先用 yum 安裝 lm_sensors:
yum -y install lm_sensors
接著執行 sensors,就可以看到目前 CPU 的溫度了:
testuser@localhost ~ $ sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8 C (crit = +105.0 C) temp2: +29.8 C (crit = +105.0 C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +38.0 C (high = +80.0 C, crit = +100.0 C) Core 0: +38.0 C (high = +80.0 C, crit = +100.0 C) Core 1: +34.0 C (high = +80.0 C, crit = +100.0 C) Core 2: +37.0 C (high = +80.0 C, crit = +100.0 C) Core 3: +35.0 C (high = +80.0 C, crit = +100.0 C)
參考資料:How do I get the CPU temperature?
(本頁面已被瀏覽過 1,955 次)