精华内容
下载资源
问答
  • Linux 查看CPU温度

    千次阅读 2019-09-04 17:05:09
    每种设备查看温度的方式都不同。 树莓派 无需安装工具即可查看: cat /sys/class/thermal/thermal_zone0/temp >>> 62838 # 或者直接以度为单位显示 echo $[$(cat /sys/class/thermal/thermal_zone0/...

    每种设备查看温度的方式都不同。

    树莓派

    无需安装工具即可查看:

    cat /sys/class/thermal/thermal_zone0/temp
    >>> 62838
    
    # 或者直接以度为单位显示
    echo $[$(cat /sys/class/thermal/thermal_zone0/temp)/1000]°
    >>> 63

     

    PC

    直接查看:

    # 查看第一个核心
    $ cat /proc/acpi/thermal_zone/TZS0/temperature
    
    # 查看第二个核心
    $ cat /proc/acpi/thermal_zone/TZS1/temperature
    

    lm_sensors

    Ubuntu:

    # 安装
    sudo apt-get install lm-sensors -y
    yes | sudo sensors-detect
    # 运行
    sensors

    转自简书:  https://www.jianshu.com/p/fcbdebbe7b3f

    展开全文
  • linux查看CPU温度

    2016-08-24 09:57:00
    炎炎夏日到来,我们可能会关心自己的电脑或者服务器CPU的温度,如果在Linux系统中快速查看CPU温度呢? lm_sensors提供了一套方案,可以自动侦测主板传感器的型号和读取方式,可以在命令行模式下快速安装运行。 在...

    炎炎夏日到来,我们可能会关心自己的电脑或者服务器CPU的温度,如果在Linux系统中快速查看CPU温度呢?

    lm_sensors提供了一套方案,可以自动侦测主板传感器的型号和读取方式,可以在命令行模式下快速安装运行。

    在CentOS系统中安装使用实例如下:

    #yum install -y lm_sensors

     

    然后运行sensors-detect来探测传感器类型,此命令会给出一些问题,一律回答Yes即可:

    [root@vm-36 ~]# sensors-detect 

    Stopping lm_sensors:                                       [FAILED]

    # sensors-detect revision 1.1

    # System: Dell Inc. PowerEdge R710

    # Board: Dell Inc. 0XDX06

     

    This program will help you determine which kernel modules you need

    to load to use lm_sensors most effectively. It is generally safe

    and recommended to accept the default answers to all questions,

    unless you know what you're doing.

     

    Some south bridges, CPUs or memory controllers contain embedded sensors.

    Do you want to scan for them? This is totally safe. (YES/no): 

    Silicon Integrated Systems SIS5595...                       No

    VIA VT82C686 Integrated Sensors...                          No

    VIA VT8231 Integrated Sensors...                            No

    AMD K8 thermal sensors...                                   No

    AMD Family 11h thermal sensors...                           No

    Intel digital thermal sensor...                             Success!

        (driver `coretemp')

    Intel AMB FB-DIMM thermal sensor...                         No

    VIA C7 thermal and voltage sensors...                       No

     

    Some Super I/O chips contain embedded sensors. We have to write to

    standard I/O ports to probe them. This is usually safe.

    Do you want to scan for Super I/O sensors? (YES/no): 

    Probing for Super-I/O at 0x2e/0x2f

    Trying family `National Semiconductor'...                   No

    Trying family `SMSC'...                                     Yes

    Found `SMSC EMC2700LPC Super IO'                            

        (no information available)

    Probing for Super-I/O at 0x4e/0x4f

    Trying family `National Semiconductor'...                   No

    Trying family `SMSC'...                                     No

    Trying family `VIA/Winbond/Nuvoton/Fintek'...               No

    Trying family `ITE'...                                      No

     

    Some systems (mainly servers) implement IPMI, a set of common interfaces

    through which system health data may be retrieved, amongst other things.

    We first try to get the information from SMBIOS. If we don't find it

    there, we have to read from arbitrary I/O ports to probe for such

    interfaces. This is normally safe. Do you want to scan for IPMI

    interfaces? (YES/no): 

    Found `IPMI BMC KCS' at 0xca8...                            Success!

        (confidence 8, driver `ipmisensors')

     

    Some hardware monitoring chips are accessible through the ISA I/O ports.

    We have to write to arbitrary I/O ports to probe them. This is usually

    safe though. Yes, you do have ISA I/O ports even if you do not have any

    ISA slots! Do you want to scan the ISA I/O ports? (YES/no): 

     

    Lastly, we can probe the I2C/SMBus adapters for connected hardware

    monitoring devices. This is the most risky part, and while it works

    reasonably well on most systems, it has been reported to cause trouble

    on some systems.

    Do you want to probe the I2C/SMBus adapters now? (YES/no): 

    Sorry, no supported PCI bus adapters found.

    Module i2c-dev loaded successfully.

     

    Now follows a summary of the probes I have just done.

    Just press ENTER to continue: 

    Driver `coretemp':

      * Chip `Intel digital thermal sensor' (confidence: 9)

    Driver `ipmisensors':

      * ISA bus, address 0xca8

        Chip `IPMI BMC KCS' (confidence: 8)

     

    Warning: the required module ipmisensors is not currently installed

    on your system. If it is built into the kernel then it's OK.

    Otherwise, check http://www.lm-sensors.org/wiki/Devices for

    driver availability.

    Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): 

    Starting lm_sensors: loading module ipmi-si coretemp       [  OK  ]

    Unloading i2c-dev... OK

     

    最后运行sensors命令来查看CPU温度:

     

    [root@vm-36 ~]# sensors

    coretemp-isa-0000

    Adapter: ISA adapter

    Core 0:      +44.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 1:      +44.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 9:      +46.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 10:     +48.0°C  (high = +85.0°C, crit = +95.0°C)  

     

    coretemp-isa-0001

    Adapter: ISA adapter

    Core 0:      +45.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 1:      +45.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 9:      +49.0°C  (high = +85.0°C, crit = +95.0°C)  

    Core 10:     +46.0°C  (high = +85.0°C, crit = +95.0°C)  

     

    我们还可以将lm_sensors服务设置为自动启动,以便自动加载相关模块:

    [root@vm-36 ~]# chkconfig lm_sensors on

    [root@vm-36 ~]# service lm_sensors start

    Starting lm_sensors: loading module ipmi-si coretemp       [  OK  ]

     

    lm_sensors项目官方网站:http://lm-sensors.org/

     



    转载于:https://www.cnblogs.com/stache/p/5801727.html

    展开全文
  • LINUX查看CPU温度

    千次阅读 2014-05-29 11:15:20
    linux下可以通过lm_sensors来查看CPU温度(当然你的硬件首先要支持),要使用这个功能要有内核相关模块(比如I2C)的支持,下面说一下操作方法: 先看一下你的机器上是否安装了lm_sensors, $ rpm -q lm_sensors ...
    在linux下可以通过lm_sensors来查看CPU的温度(当然你的硬件首先要支持),要使用这个功能要有内核相关模块(比如I2C)的支持,下面说一下操作方法:
    
    先看一下你的机器上是否安装了lm_sensors,
    $ rpm -q lm_sensors
     

    如果没有安装就先安装一下
    $ sudo yum install -y lm_sensors
     
    检测传感器:
    $ sudo sh -c "yes|sensors-detect"
     
    如果以上步骤没有问题,执行下面的命令就可以查看CPU的温度了:
    $ sensors
    展开全文
  • linux查看cpu温度

    2014-12-09 15:02:00
    分类:linux系统 一、安装 sudo apt-get install lm-sensors ...二、查看 linux@cdyemail:~$sensors k10temp-pci-00c3 Adapter: PCI adapter temp1: +33.6°C (high = +70.0°C) ...

     

     分类: linux系统
    一、安装 
     sudo apt-get install lm-sensors
     
    二、查看
    linux@cdyemail:~$  sensors
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1:        +33.6°C  (high = +70.0°C)
                           (crit = +72.0°C, hyst = +70.0°C)
     
    radeon-pci-0100
    Adapter: PCI adapter
    temp1:        +54.0°C  

     

    转载于:https://www.cnblogs.com/lvdongjie/p/4153321.html

    展开全文
  • LINUX 查看CPU 温度

    千次阅读 2013-04-22 18:54:45
    Linux下可以通过lm_sensors来查看CPU温度(当然你的硬件首先要支持),要使用这个功能要有内核相关模块(比如I2C)的支持,下面说一下操作方法: 先看一下你的机器上是否安装了lm_sensors, $ rpm -q lm_sensors ...
  • linux查看cpu温度,安装lm_sensors工具

    千次阅读 2013-06-05 23:15:49
    linux查看cpu温度,安装lm_sensors工具   安装lm_sensors工具即可查看温度了  www.2cto.com   yum -y install lm_sensors   rpm -qa|grep coretemp 看一下有没有kmod-coretemp,没有的话需要安装这个   ...
  • 为什么80%的码农都做不了... 安装lm_sensors工具即可查看温度了 yum -y install lm_sensors rpm -qa|grep coretemp 看一下有没有kmod-coretemp,没有的话需要安装这个 x86和x64的系统直接wget ...
  • linux 实时查看cpu温度

    2021-07-25 15:58:15
    linux 实时查看cpu温度 安装sensor检测软件 sudo apt install lm-sensors 传感器探测设置 sudo sensors-detect 设置单个传感探测 或者执行 sh -c "yes|sensors-detect"命令,设置所有的检测选项为yes 实时...
  • Linux-CPU温度

    2021-02-05 09:49:13
    Linux-CPU温度 sudo apt-get install lm-sensors sensors
  • linux查看cpu温度,安装lm_sensors工具1、安装lm_sensors工具即可查看温度了yum -y install lm_sensorsrpm -qa|grep coretemp 看一下有没有kmod-coretemp,没有的话需要安装这个x86和x64的系统直接wgethttp://...
  • Linux如何查看CPU温度

    万次阅读 2015-06-11 18:12:14
    下面介绍Linux查看CPU温度的方法. CentOS系列:  1.yum install lm_sensors; 2.sensors-detect 3.sensors Ubuntu系列: 1.apt-get install lm-sensors 2.sensors-detect 3.service kmod start 4.sensor
  • linux查看cpu温度

    千次阅读 2019-05-17 14:55:37
    检查是否安装:rpm -q lm_sensors 如果没有:yum install -y lm_sensors安装 sh -c "yes|sensors-detect"检测传感器 sensors-detect chkconfig --list | grep ‘lm_sensors’ sensors查看cpu温度 ...
  • Linux debian 查看CPU温度

    2021-10-04 06:08:11
    需要软件 lm-sensors apt-get install lm-sensors -y 配置 sensors-detect 一直 enter回车到最后 运行温度检查命令 sensors
  • Linux查看机器CPU温度

    千次阅读 2017-09-09 15:06:48
    Linux查看机器CPU温度一、安装lm_sensors[root@MPI_EXERCISE ~]# yum -y install lm_sensors二、配置[root@MPI_EXERCISE ~]# sensors-detectDo you want to scan for them? This is totally safe. (YES/no): yesDo ...
  • 查看: $ sudo sensors-detect $ sensors Debian,Ubuntu系列 安装 $ sudo apt-get install lm-sensors 查看 $ sudo sensors-detect $ sudo service module-init-tools start $ sensors ...
  • linux下如何查看cpu温度

    千次阅读 2019-12-10 15:18:22
    单次查看cpu温度,使用命令: cat /sys/class/thermal/thermal_zone0/temp 持续监测cpu温度,使用命令: watch -n 1 cat /sys/class/thermal/thermal_zone0/temp
  • 下面介绍Linux查看CPU温度的方法. 1.CentOS系列: 1.yum install lm_sensors; 2.sensors-detect 3.sensors 2.Ubuntu系列: 1.apt-get install lm-sensors 2.sensors-detect 3.service kmod start 4....
  • linux获取CPU温度

    2014-06-08 12:29:00
    linux获取CPU温度 Centos系列 1 yum install lm_sensors 2 sensors-detect 3 sensors Ubuntu系列(多了service module-init-...
  • linux cpu温度命令Most modern servers or computers have sensors to detect the temperature of various components. On Linux, how to get the CPU core temperatur in command linux? 大多数现代服务器或计算机...
  • 最近树莓派上搞一个检测cpu温度及使用率的脚本,可以用来监测硬件状态 温度: temp.sh watch -n 1 cat /sys/class/thermal/thermal_zone0/temp watch-可每1秒用cat打印cpu温度 使用率: cpu.sh #!/bin/bash # # ...
  • 在我们服务器日常维护中,我们可能会关心服务器CPU的温度,如何在Linux系统中快速查看CPU温度呢?lm_sensors提供了一套方案,可以自动侦测主板传感器的型号和读取方式,可以在命令行模式下快速安装运行。这样我们就...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 9,545
精华内容 3,818
关键字:

linux查看cpu温度

linux 订阅