国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > Linux > 正文

用軟件lm_sensors監(jiān)測Linux系統(tǒng)和CPU溫度

2020-07-08 13:06:52
字體:
供稿:網(wǎng)友

lm_sensors的軟件可以幫助我們來監(jiān)控主板,CPU的工作電壓,風(fēng)扇轉(zhuǎn)速、溫度等數(shù)據(jù)。這些數(shù)據(jù)我們通常在主板的 BIOS也可以看到。當(dāng)我們可以在機(jī)器運(yùn)行的時候通過lm_sensors隨時來監(jiān)測著CPU的溫度變化,可以預(yù)防呵保護(hù)因?yàn)镃PU過熱而會燒掉。

  1. 安裝lm_sensors

  現(xiàn)在基本上每個Linux都已經(jīng)有l(wèi)m_sensors包了,我們主要安裝了就可以了?;蛘呶覀円部梢酝ㄟ^源文件來自己編譯。

  1)在FC,RH, CENTOS下,用rpm:

  [root@securitycn ~]# rpm -ivh lm_sensors-2.10.0-3.1.i386.rpm

  3)編譯源文件安裝

  我們可以通過:這里下載源文件

  這里我們要注意的問題是要先安裝libsysfs庫,是Sysfsutils,Sysfsutils-devel軟件

  tar xzvf lm-sensors-xxx.tar.gz

  make user

  make user_install testing

  下面我們就用一些簡單的命令來利用lm_sensors來得到CPU的數(shù)據(jù)。我們要用root的身份來:

  sensors-detect,然后它會自動搜索主板上的chipset和相應(yīng)的driver,我們?nèi)看餣ES就可以了

  [root@securitycn ~]# sensors-detect

  # sensors-detect revision 1.413 (2006/01/19 20:28:00)

  This program will help you determine which I2C/SMBus modules you need to

  load to use lm_sensors most effectively. You need to have i2c and

  lm_sensors installed before running this program.

  Also, you need to be `root', or at least have access to the /dev/i2c-*

  files, for most things.

  If you have patched your kernel and have some drivers built in, you can

  safely answer NO if asked to load some modules. In this case, things may

  seem a bit confusing, but they will still work.

  It is generally safe and recommended to accept the default answers to all

  questions, unless you know what you're doing.

  We can start with probing for (PCI) I2C or SMBus adapters.

  You do not need any special privileges for this.

  Do you want to probe now? (YES/no):

  全部默認(rèn)YES即可。

  然后我們啟動lm_sensors :

  /etc/init.d/lm_sensors start

  Starting lm_sensors: [ OK ]

  我們可以通過lsmod來確定我們需要的driver已經(jīng)加載了沒有

  lsmod | grep i2c

  i2c_isa 9153 2 w83627hf,w83781d

  i2c_i801 11341 0

  i2c_dev 12613 0

  i2c_ec 9025 1 sbs

  i2c_core 23745 6 w83627hf,w83781d,i2c_isa,i2c_i801,i2c_dev,i2c_ec

  然后我們用sensors的命令就可以了:

  [root@securitycn ~]# sensors

  w83627hf-isa-0290

  Adapter: ISA adapter共2頁。

  VCore 1: +3.33 V (min = +0.00 V, max = +0.00 V) ALARM

  VCore 2: +3.36 V (min = +0.00 V, max = +0.00 V) ALARM

  +3.3V: +0.93 V (min = +3.14 V, max = +3.46 V) ALARM

  +5V: +5.11 V (min = +4.73 V, max = +5.24 V)

  +12V: +4.56 V (min = +10.82 V, max = +13.19 V) ALARM

  -12V: -7.10 V (min = -13.18 V, max = -10.88 V) ALARM

  -5V: -1.93 V (min = -5.25 V, max = -4.75 V) ALARM

  V5SB: +5.51 V (min = +4.73 V, max = +5.24 V) ALARM

  VBat: +0.02 V (min = +2.40 V, max = +3.60 V) ALARM

  fan1: 0 RPM (min = 2732 RPM, div = 2) ALARM

  fan2: 0 RPM (min = 0 RPM, div = 2)

  fan3: 0 RPM (min = 0 RPM, div = 2)

  temp1: +38

主站蜘蛛池模板: 百色市| 阿坝县| 斗六市| 正宁县| 全州县| 普兰店市| 南平市| 广平县| 和硕县| 新丰县| 玉林市| 青龙| 博野县| 余姚市| 鹤峰县| 历史| 临江市| 东乌珠穆沁旗| 白城市| 娱乐| 泸西县| 安福县| 镶黄旗| 龙川县| 商南县| 阿拉善左旗| 新晃| 巴青县| 油尖旺区| 新干县| 闵行区| 荔浦县| 东至县| 长宁区| 温宿县| 高青县| 阿勒泰市| 神木县| 白水县| 昂仁县| 遵义县|