良许Linux教程网 干货合集 Linux系统监测cpu温度的具体方法

Linux系统监测cpu温度的具体方法

电脑在运行中肯定会产生热量,那么在Linux系统中如何检查cpu的温度呢?本篇文章良许教程网为大家分享一下Linux系统检查cpu温度的具体方法。

Linux系统监测cpu温度的具体方法

一、安装lm_sensors

[root@MPI_EXERCISE ~]# yum -y install lm_sensors

二、配置

[root@MPI_EXERCISE ~]# sensors-detect

Do you want to scan for them? This is totally safe. (YES/no): yes

Do you want to scan for Super I/O sensors? (YES/no): yes

This is normally safe. Do you want to scan for IPMI interfaces? (YES/no): yes

Do you want to scan the ISA I/O ports? (YES/no): yes

Do you want to probe the I2C/SMBus adapters now? (YES/no): yes

Next adapter: i915 gmbus ssc (i2c-0)

Do you want to scan it? (YES/no/selectively): yes

Next adapter: i915 gmbus vga (i2c-1)

Do you want to scan it? (YES/no/selectively): yes

Next adapter: i915 gmbus panel (i2c-2)

Do you want to scan it? (YES/no/selectively): yes

Next adapter: i915 gmbus dpc (i2c-3)

Do you want to scan it? (YES/no/selectively): yes

Next adapter: i915 gmbus dpb (i2c-4)

Do you want to scan it? (YES/no/selectively): yes

Next adapter: i915 gmbus dpd (i2c-5)

Do you want to scan it? (YES/no/selectively): yes

Now follows a summary of the probes I have just done.

Just press ENTER to continue:

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): yes

Starting lm_sensors: loading module coretemp        [ OK ]

Unloading i2c-dev… OK

三、查看温度

[root@MPI_EXERCISE ~]# sensors

acpitz-virtual-0

Adapter: Virtual device

temp1:    +27.8°C (crit = +103.0°C)        

temp2:    +29.8°C (crit = +103.0°C)        

coretemp-isa-0000

Adapter: ISA adapter

Physical id 0: +30.0°C (high = +82.0°C, crit = +102.0°C)

Core 0:    +25.0°C (high = +82.0°C, crit = +102.0°C)

Core 1:    +30.0°C (high = +82.0°C, crit = +102.0°C)

用watch sensors可以观察cpu温度的变化,每隔两秒更新一次。

[root@localhost ~]# watch sensors

wKioL1m3N2vBvH2AAAC8zgvIjQ8347.png

至此关于Linux系统监测cpu温度的方法分享结束,欢迎大家在评论区留言。

以上就是良许教程网为各位朋友分享的Linux系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你!

137e00002230ad9f26e78-265x300

本文由 良许Linux教程网 发布,可自由转载、引用,但需署名作者且注明文章出处。如转载至微信公众号,请在文末添加作者公众号二维码。
良许

作者: 良许

良许,世界500强企业Linux开发工程师,公众号【良许Linux】的作者,全网拥有超30W粉丝。个人标签:创业者,CSDN学院讲师,副业达人,流量玩家,摄影爱好者。
上一篇
下一篇

发表评论

联系我们

联系我们

公众号:良许Linux

在线咨询: QQ交谈

邮箱: yychuyu@163.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部