查找Linux上有没有安装sensors
[root@localhost zhaocx]# rpm -qa |grep sensors
没有的话安装
[root@localhost zhaocx]# yum install lm_sensors
[root@localhost zhaocx]# rpm -qa |grep sensors
lm_sensors-devel-2.10.7-9.el5
lm_sensors-2.10.7-9.el5
[root@localhost zhaocx]# cd /usr/sbin/
[root@ localhost sbin]# rm -rf sensors-detect
[root@ localhost sbin]# wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
--2010-03-24 09:28:48-- http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
Resolving dl.lm-sensors.org... 160.45.254.26
Connecting to dl.lm-sensors.org|160.45.254.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 169608 (166K) [text/plain]
Saving to: `sensors-detect'
100%[=====================================================================================================>] 169,608 246K/s in 0.7s
2010-03-24 09:28:50 (246 KB/s) - `sensors-detect' saved [169608/169608]
[root@ localhost sbin]# chmod 755 sensors-detect
首先查看自己的内核版本信息
[root@localhost zhaocx]# uname -a
Linux localhost 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009 i686 i686 i386 GNU/Linux
下载安装.i686内核的kmod-coretemp
[root@localhost zhaocx]#
wget http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-PAE-1.1-2.el5.i686.rpm
--2010-12-10 13:16:11-- http://www.pperry.f2s.com/linux/coretemp/kmod-coretemp-PAE-1.1-2.el5.i686.rpm
Resolving www.pperry.f2s.com... 94.136.40.100, ::1
Connecting to www.pperry.f2s.com|94.136.40.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47029 (46K) [application/x-rpm]
Saving to: `kmod-coretemp-PAE-1.1-2.el5.i686.rpm'
100%[======================================>] 47,029 50.0K/s in 0.9s
2010-12-10 13:16:12 (50.0 KB/s) - `kmod-coretemp-PAE-1.1-2.el5.i686.rpm' saved [47029/47029]
[root@localhost zhaocx]# rpm -ivh kmod-coretemp-PAE-1.1-2.el5.i686.rpm
Preparing... ########################################### [100%]
1:kmod-coretemp-PAE ########################################### [100%]
[root@localhost zhaocx]# modinfo coretemp
filename: /lib/modules/2.6.18-164.el5PAE/weak-updates/coretemp/coretemp.ko
license: GPL
description: Intel Core temperature monitor
author: Rudolf Marek <[email protected]>
srcversion: 6E167863013C68E51A188A6
depends: hwmon
vermagic: 2.6.18-92.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
[root@localhost zhaocx]# modprobe coretemp
[root@localhost zhaocx]# lsmod|grep coretemp
coretemp 12288 0
hwmon 7365 1 coretemp
[root@localhost zhaocx]# sensors-detect
一直默认选YES 最后出现Starting lm_sensors: [ OK ] 表示成功开启。
[root@localhost zhaocx]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +45掳C (high = +100掳C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +45掳C (high = +100掳C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2: +45掳C (high = +100掳C)
coretemp-isa-0003
Adapter: ISA adapter
Core 3: +45掳C (high = +100掳C)
coretemp-isa-0004
Adapter: ISA adapter
Core 4: +47掳C (high = +100掳C)
coretemp-isa-0005
Adapter: ISA adapter
Core 5: +47掳C (high = +100掳C)
coretemp-isa-0006
Adapter: ISA adapter
Core 6: +45掳C (high = +100掳C)
coretemp-isa-0007
Adapter: ISA adapter
Core 7: +45掳C (high = +100掳C)
附录:
资料
http://www.question-defense.com/2010/03/24/lm_sensors-on-cent-os-5-4-how-to-get-and-install-the-coretemp-module
coretemp
http://www.pperry.f2s.com/linux/coretemp/