How to view CPU temperature in centos
As the host of AI machine, do we have to ask for help? The following describes how to view the CPU temperature in Linux.
CentOS series:
1. yum install lm_sensors;
2. sensors-detect
3. sensors
Ubuntu series:
1. apt-get install lm-sensors
2. sensors-detect
3. service kmod start
4. sensors
Note: during the execution of these commands, you need YES/NO/SELECT, directly all the way to YES, then OK!
The final information is roughly as follows:
Acpitz-virtual-0
Adapter: Virtual device
Temp1: + 55.0 °C (crit = + 103.0 °C)
Coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: + 55.0 °C (high = + 87.0 °C, crit = + 105.0 °C)
Core 0: + 50.0 °C (high = + 87.0 °C, crit = + 105.0 °C)
Core 1: + 51.0 °C (high = + 87.0 °C, crit = + 105.0 °C)
Finally, the above commands may change due to Driver Upgrade and other reasons, so they can only be used as a reference.