感谢支持
我们一直在努力

给centos安装cpu监测工具

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 

赞(0) 打赏
转载请注明出处:服务器评测 » 给centos安装cpu监测工具
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏