linux获取CPU温度

时间:2014-06-08 19:34:19   收藏:0   阅读:655

Centos系列

 

1 yum install lm_sensors
2 sensors-detect
3 sensors
Ubuntu系列(多了service module-init-tools start一步骤)

 

1 apt-get install lm-sensors
2 sensors-detect
3 service module-init-tools start
4 sensors
也可以通过sys系统读取cpu的温度: /sys/class/hwmon/hwmon0/device/


参考:http://www.mjmwired.net/kernel/Documentation/thermal/sysfs-api.txt

linux获取CPU温度,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!