在LINUX下面如何查看CPU的温度

时间:2016-06-22 12:58:14   收藏:0   阅读:1290

1.

[root@bogon redmine-3.3.0-0]# cat /proc/acpi/thermal_zone/TZ00/temperature 

temperature:             28 C

[root@bogon redmine-3.3.0-0]# cat /proc/acpi/thermal_zone/TZ01/temperature 

temperature:             30 C

[root@bogon redmine-3.3.0-0]# 

2.

如果没有安装就先安装一下

# yum -y install lm_sensors

检测传感器:
# sh -c "yes|sensors-detect"

如果以上步骤没有问题,执行下面的命令就可以查看CPU的温度了:
# sensors

# sensors

acpitz-virtual-0

Adapter: Virtual device

temp1:       +27.8°C  (crit = +105.0°C)                  

temp2:       +29.8°C  (crit = +105.0°C)                  


nouveau-pci-0100

Adapter: PCI adapter

temp1:       +44.0°C  (high = +95.0°C, hyst =  +3.0°C)  

                      (crit = +105.0°C, hyst =  +5.0°C)  


coretemp-isa-0000

Adapter: ISA adapter

Physical id 0: +39.0°C  (high = +80.0°C, crit = +100.0°C)  

Core 0:        +33.0°C  (high = +80.0°C, crit = +100.0°C)  

Core 1:        +35.0°C  (high = +80.0°C, crit = +100.0°C)  

Core 2:        +36.0°C  (high = +80.0°C, crit = +100.0°C)  

Core 3:        +39.0°C  (high = +80.0°C, crit = +100.0°C)  



CentOS下如何查看自己本本的 CPU 和 GPU 的温度及 Fan(风扇) 的转速操作如下:

1、安装 lm_sensors 软件包 (如果已安装了此软件了,1和2步都跳过吧):

  1. $ sudo yum install lm_sensors 

  2. $ sudo apt-get install lm_sensors

2、手动配置下(一路yes或enter就行了):

  1. $ sudo sensors-detect

3、最后打开终端输入:

  1. $ sensors

这样就输出各传感器的温度及风扇转速了





评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!