Linux系统监测cpu温度的具体方法是什么(cpu,linux,开发技术)

时间:2024-05-09 05:09:33 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

电脑在运行中肯定会产生热量,那么在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温度的具体方法是什么

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:Linux系统监测cpu温度的具体方法是什么的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:Linux系统搭建Apache服务器的步骤是什么下一篇:

11 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18