1.安装lm_sensors
[root@localhost ~]# rpm -qa |grep sensors
没有的话安装
[root@localhost ~]# yum install lm_sensors*
[root@localhost ~]# rpm -qa |grep sensors
lm_sensors-devel-2.10.7-9.el5
lm_sensors-2.10.7-9.el5
2.下载新的sensors-detect
[root@localhost bin]#cd /usr/bin
[root@localhost bin]# ll sen*
-rwxr-xr-x 1 root root 13272 May 24 2008 sendiso
-rwxr-xr-x 1 root root 151976 Mar 30 2010 sensors
[root@localhost bin]# wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
[root@localhost bin]# chmod 755 sensors-detect
[root@localhost bin]# ll sen*
-rwxr-xr-x 1 root root 13272 May 24 2008 sendiso
-rwxr-xr-x 1 root root 151976 Mar 30 2010 sensors
-rwxr-xr-x 1 root root 191310 May 26 02:56 sensors-detect
3. 下载适合的coretemp
查看自己的内核版本信息
[root@localhost bin]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
下载安装x86_64内核的kmod-coretemp
把kmod-coretemp的rpm包下载到/root/目录下,并安装:
[root@localhost bin]#cd
[root@localhost ~]# wget http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-1.1-2.el5.x86_64.rpm
[root@localhost ~]# rpm -ivh kmod-coretemp-1.1-2.el5.x86_64.rpm
4.加载coretemp
[root@localhost ~]# modinfo coretemp
filename: /lib/modules/2.6.18-164.el5/weak-updates/coretemp/coretemp.ko
license: GPL
description: Intel Core temperature monitor
author: Rudolf Marek <r.marek@assembler.cz>
srcversion: 6E167863013C68E51A188A6
depends: hwmon
vermagic: 2.6.18-92.el5 SMP mod_unload gcc-4.1
[root@localhost ~]# modprobe coretemp
[root@localhost ~]# lsmod|grep coretemp
coretemp 42496 0
hwmon 36553 1 coretemp
5.运行sensors
[root@localhost ~]# /usr/bin/sensors-detect
一直默认选YES 最后出现Starting lm_sensors: [ OK ] 表示成功开启。
[root@localhost ~]# /usr/bin/sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +48°C (high = +100°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +48°C (high = +100°C)
转载于:https://blog.51cto.com/luyadong/589695