通过lm_sensors组件,可以在Linux下来查看CPU的温度,要使用这个功能要有内核相关模块的支持,在CentOS下开启步骤如下: 1. 安装监控组件 yum install -y lm_sensors 2. 检测传感器 sh -c “yes|sensors-detect” 3. 执行监测命令 sensors [root@index115 ~]# sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8°C (crit = +106.0°C) temp2: +29.8°C (crit = +106.0°C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +52.0°C (high = +85.0°C, crit = +105.0°C) Core 0: +52.0°C (high = +85.0°C, crit = +105.0°C) Core 1: +42.0°C (high = +85.0°C, crit = +105.0°C) Core 2: +47.0°C (high = +85.0°C, crit = +105.0°C) Core 3: +47.0°C (high = +85.0°C, crit = +105.0°C) (责任编辑:IT) |