为什么80%的码农都做不了架构师?>>>
Centos系列
yum install lm_sensors
sensors-detect
sensors
Ubuntu系列(多了service module-init-tools start一步骤)
apt-get install lm-sensors
sensors-detect
service module-init-tools start
sensors
也可以通过sys系统读取cpu的温度:
/sys/class/hwmon/hwmon0/device/
参考:http://www.mjmwired.net/kernel/Documentation/thermal/sysfs-api.txt