歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 給centos安裝cpu監測工具

給centos安裝cpu監測工具

日期:2017/2/28 16:57:16   编辑:Linux教程

windows下的硬件檢測工具和cpu監測工具一堆堆的,可Linux的就少的可憐了。

lm_sensors就是一個在Linux非常有用的CPU監測工具,可以檢測CPU的工作電壓,風扇轉速、溫度等數據。這些數據我們在主板的BIOS也可以看到,但是如果是遠程怎麼辦只能靠sensors了。我們可以在機器運行的時候通過lm_sensors隨時來監測著CPU的溫度變化,可以預防和保護因為CPU過熱而會燒掉。

CentOS下安裝lm_sensors非常簡單,執行yum -y install lm_sensors就可以了。安裝完後執行

#sensors-detect

之後會出現一大堆詢問,全部選擇YES

 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):

然後我們開啟動lm_sensors
# /etc/rc.d/init.d/lm_sensors start

確認啟動後,就可以看cpu信息了,執行下面的命令查看CPU信息

# sensors

Copyright © Linux教程網 All Rights Reserved