以下操作亲测可用,centos 7  64位

1.确定系统是不是64位

uname -p
x86_64

2.安装和配置工具包

#安装包
yum install lm_sensors -y

#配置
sh -c "yes|sensors-detect"

#加载模块
modprobe i2c-dev
modprobe coretemp 

3. 命令行查看CPU温度

sensors


输出类似
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +32.0°C  (high = +88.0°C, crit = +98.0°C)
Core 0:        +31.0°C  (high = +88.0°C, crit = +98.0°C)
Core 1:        +30.0°C  (high = +88.0°C, crit = +98.0°C)
Core 2:        +32.0°C  (high = +88.0°C, crit = +98.0°C)
Core 3:        +30.0°C  (high = +88.0°C, crit = +98.0°C)
Core 4:        +31.0°C  (high = +88.0°C, crit = +98.0°C)
Core 8:        +32.0°C  (high = +88.0°C, crit = +98.0°C)
Core 9:        +29.0°C  (high = +88.0°C, crit = +98.0°C)
Core 10:       +30.0°C  (high = +88.0°C, crit = +98.0°C)
Core 11:       +29.0°C  (high = +88.0°C, crit = +98.0°C)
Core 12:       +30.0°C  (high = +88.0°C, crit = +98.0°C)

 

参考:

https://blog.slogra.com/post-591.html

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐