LINUX下得到CPU温度

需要安装内核模块,REDHAT安装包可在CENTOS镜像找
软件包名:lm-sensor




安装 
yum install lm_sensors-* -y
bash -c "yes|sensors-detect"
查看命令
sensors
得到结果如下:
acpitz-virtual-0
Adapter: Virtual device
temp1:        +8.3°C  (crit = +31.3°C)                  




power_meter-acpi-0
Adapter: ACPI interface
power1:       0.00 nW  (interval = 300.00 s)




coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +40.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 0:        +36.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 1:        +35.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 2:        +37.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 3:        +40.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 4:        +40.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 5:        +37.0°C  (high = +81.0°C, crit = +91.0°C)  




coretemp-isa-0006
Adapter: ISA adapter
Physical id 1: +47.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 0:        +46.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 1:        +47.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 2:        +46.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 3:        +42.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 4:        +46.0°C  (high = +81.0°C, crit = +91.0°C)  
Core 5:        +44.0°C  (high = +81.0°C, crit = +91.0°C)  

你可能感兴趣的:(Linux系统服务,LINUX系统优化)