系统:centos 7.x(64位,ps:32位系统的请不要浪费你的时间了,这篇文章不适合你)
1.先确定你系统是不是64位
uname -p
x86_64
如果是x84_64,那么恭喜你,你可以继续看下去了,如果是i686和i386的,那不好意思,请你去重装系统吧.
2.安装
yum install lm_sensors -y
#配置
sh -c "yes|sensors-detect"
#加载模块
modprobe i2c-dev
modprobe coretemp (如果是64位系统,这步就直接通过了,如果是32位系统,这步是我弄死都过不去的一道坎)
#查看CPU温度
sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +70°C (high = +85°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +70°C (high = +85°C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2: +69°C (high = +85°C)
coretemp-isa-0003
Adapter: ISA adapter
Core 3: +69°C (high = +85°C)
可以看到温度,如果是pc,这个温度要注意了,服务器可以稍微高一点。
ps:
其他查看cpu温度命令:
cat /proc/acpi/thermal_zone/THRM/temperature (这条我在我机器上是可以用的)
这两条没有测试过:
cat /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp
cat /proc/acpi/thermal_zone/THM0/temperature
版权属于: 三三世界-百宝箱
本文链接: http://33f.net/linux/centos_check_cpu_temperature.html
本文最后更新于2022年07月15日 ,已超过505天没有更新,若内容或图片失效,请留言反馈。
本文允许转载,但请在转载时请以超链接或其它形式标明文章出处
@ 权限问题,试试sudo 再加命令。
你好提示Permission denied 怎么办啊