1. 程式人生 > >LINUX 檢視CUP溫度

LINUX 檢視CUP溫度

先看一下你的機器上是否安裝了lm_sensors,
$ rpm -q lm_sensors

如果沒有安裝就先安裝一下
$ sudo yum install -y lm_sensors

檢測感測器:
$ sudo sh -c "yes|sensors-detect"


如果以上步驟沒有問題,執行下面的命令就可以檢視CPU的溫度了:
$ sensors

it8718-isa-0290
Adapter: ISA adapter
in0:       +1.07 V  (min =  +0.00 V, max =  +4.08 V)
in1:       +1.82 V  (min =  +0.00 V, max =  +4.08 V)
in2:       +3.36 V  (min =  +0.00 V, max =  +4.08 V)
in3:       +2.94 V  (min =  +0.00 V, max =  +4.08 V)
in4:       +0.29 V  (min =  +0.00 V, max =  +2.10 V)
in5:       +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in6:       +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in7:       +3.07 V  (min =  +0.00 V, max =  +4.08 V)
in8:       +3.09 V
fan1:     2463 RPM  (min =    0 RPM)
fan2:        0 RPM  (min =    0 RPM)
temp1:       -55°C  (low  =  +127°C, high =  +127°C)   sensor = thermistor                                        
temp2:        -2°C  (low  =  +127°C, high =  +127°C)   sensor = thermistor                                        
temp3:       +21°C  (low  =  +127°C, high =  +127°C)   sensor = diode
vid:      +2.050 V

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +44°C  (high =  +100°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +27°C  (high =  +100°C)