温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2022-01-26 11:32:38 来源:亿速云 阅读:426 作者:柒染 栏目:开发技术

这期内容当中小编将会给大家带来有关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

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

上述就是小编为大家分享的Linux系统监测cpu温度的具体方法是什么了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI