在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/

java获取CPU温度centos,CentOS终端下查看CPU温度相关推荐

  1. 【mac】MAC电脑下查看CPU详细信息

    Date: 2018.9.30 1.MAC电脑(Mac OSX系统)下查看CPU详细信息 sysctl machdep.cpu 2.Linux系统下查看CPU详细信息 cat /proc/cpuinf ...

  2. Java获取任务管理器内存、各磁盘内存、CPU使用率数据

    文章目录 1.获取任务管理器运行内存.各磁盘内存 2.获取CPU使用率 1.获取任务管理器运行内存.各磁盘内存 1.代码实现: /*** 获取内存使用情况*/public static void ge ...

  3. ubuntu篇---系统下查看CPU和GPU温度

    ubuntu篇---系统下查看CPU和GPU温度 1. 安装lm-sensors 2. 查看温度 3. 实时查看温度 4. 安装 psensor 5. 打开软件 1. 安装lm-sensors lm- ...

  4. Ubuntu 系统下查看CPU和GPU温度

    Ubuntu 系统下查看CPU和GPU温度 lm-sensors lm-sensors软件可以帮助我们来监控主板,CPU 的工作电压,风扇转速.温度等数据.这些数据我们通常在主板的 BIOS 也可以看 ...

  5. Linux工作笔记036---Centos下查看cpu、磁盘、内存使用情况以及如何清理内存

    JAVA技术交流QQ群:170933152 Centos下查看cpu.磁盘.内存使用情况以及如何清理内存 核查服务器基本情况 查看内存使用情况 free -m 查看cpu使用情况 top #查看进程运 ...

  6. 20210427瑞芯微RK3399在Android10下查看芯片温度

    20210427瑞芯微RK3399在Android10下查看芯片温度 2021/4/30 16:52 开发板:天启(t-firefly)AIO-3399J https://www.t-firefly. ...

  7. linux下查看cpu负载及分析

    linux下查看cpu负载有两个命令可以看:uptime 和 top. 其中load average的三个值分别表示1分钟.5分钟.15分钟的CPU负载情况,是运维需要经常关注的 那么怎么确定这些值展 ...

  8. win10系统下查看cpu是否启动虚拟化

    win10系统下查看cpu是否启动虚拟化

  9. linux系统下查看cpu功耗,Linux系统下查看CPU信息

    Linux系统下查看CPU信息 查看CPU信息(型号): # cat /proc/cpuinfo| grep name | cut -f2 -d: | uniq -c 8 Intel(R) Xeon( ...

最新文章

  1. 【Java】反射( reflection)机制 详解
  2. AGG第七课 内存分配策略
  3. mysql与java的计算效率_java mysql数据库查询效率问题
  4. layui table 添加img_layui中table表格的基本操作
  5. 【转】x.509证书在WCF中的应用(CS篇)
  6. 使用.NET Core创建Windows服务(二) - 使用Topshelf方式
  7. TCP重组数据包分析
  8. SQLServer 的存储过程与java交互
  9. 证券 计算机系统,证券商电脑网络系统
  10. 在layoutsubviews中设置子控件的frame,保证执行alpha和frame动画流畅度
  11. java修改文件的名称_Java修改文件名称
  12. LAN、WAN、WLAN、VLAN、WiFi之间的区别
  13. docker ADD命令的用法
  14. Jmeter .jmx 改为.jtl
  15. vs code里面的less插件一直报错_ipad4现在怎么登微信?一直显示微信版本过低怎么办...
  16. ibm服务器显示器接口,显示器接口类型怎么选,4种主流接口要了解
  17. QPushButton去掉虚线框
  18. 【深度学习】时间注意力模块与空间注意力模块
  19. Linux各版本内核下载地址
  20. rails 密码加密

热门文章

  1. 计算机 屏幕卡住,电脑屏幕突然卡死应该怎么办?
  2. oracle12c安装卡住_oracle 12c 安装指南(各种问题总结)
  3. 电子化工作方式:方便保存,提高效率
  4. c语言实现通讯录管理
  5. Vert.x MySQL Client中文版
  6. 2020年下一个创业风口是什么?
  7. 将GLFW窗口嵌入Win32 SDK窗口及其多线程渲染方法
  8. FFmpeg从入门到出家(FLV文件结构解析)
  9. 候选码、主码、全码、外码、主属性、主键、主关键字、非主属性
  10. 实验2-4-5 简单实现x的n次方(10分)