标题: linux 实时查看cpu温度 [打印本页] 作者: 郑全 时间: 2022-8-24 11:03 标题: linux 实时查看cpu温度 LINUX下,要检查物理服务器CPU温度,可以使用 lm_sensors 软件实现,该软件是一款linux的硬件监控的软件,可以帮助我们来监控主板,CPU的工作电压,风扇转速、温度等数据。这些数据我们通常在主板的 BIOS也可以看到。当我们可以在机器运行的时候通过lm_sensors随时来监测着CPU的温度变化,可以预防和保护因为CPU过热而会烧掉。
1.yum安装lm_sensors
[root@hisdb02 ~]# yum install lm_sensors
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
os | 4.1 kB 00:00:00
(1/2): os/group_gz | 136 kB 00:00:00
(2/2): os/primary_db | 3.6 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.x86_64 0:3.3.4-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Installing:
lm_sensors x86_64 3.3.4-11.el7 os 137 k
Total download size: 137 k
Installed size: 409 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : lm_sensors-3.3.4-11.el7.x86_64 1/1
Verifying : lm_sensors-3.3.4-11.el7.x86_64 1/1
Installed:
lm_sensors.x86_64 0:3.3.4-11.el7
Complete!
[root@hisdb02 ~]#
2.查看sensors版本
[root@hisdb02 ~]# sensors -v
sensors version 3.3.4 with libsensors version 3.3.4
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 10h thermal sensors... No
AMD Family 11h thermal sensors... No
AMD Family 12h and 14h thermal sensors... No
AMD Family 15h thermal sensors... No
AMD Family 15h power sensors... No
AMD Family 16h power sensors... No
Intel digital thermal sensor... Success!
(driver `coretemp')
Intel AMB FB-DIMM thermal sensor... No
VIA C7 thermal sensor... No
VIA Nano thermal sensor... No