Linux系統(tǒng)下查看CPU溫度的方法是:

成都網(wǎng)絡(luò)公司-成都網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)十余年經(jīng)驗(yàn)成就非凡,專業(yè)從事做網(wǎng)站、成都網(wǎng)站建設(shè),成都網(wǎng)頁(yè)設(shè)計(jì),成都網(wǎng)頁(yè)制作,軟文發(fā)稿,1元廣告等。十余年來(lái)已成功提供全面的成都網(wǎng)站建設(shè)方案,打造行業(yè)特色的成都網(wǎng)站建設(shè)案例,建站熱線:13518219792,我們期待您的來(lái)電!
__首先打開(kāi)linux系統(tǒng),找到查詢軟件來(lái)查看cpu的溫度,然后打開(kāi)終端輸入命令:查看相關(guān)軟件。
接著安裝感應(yīng)器,在感應(yīng)器里輸入安裝命令,一路默認(rèn)即可,直接輸入感應(yīng)器命令即可。
_真實(shí)的物理機(jī)中溫度正常。這些命令執(zhí)行的過(guò)程中,需要你選擇是個(gè)否,只要直接一路是,就可以查看cpu溫度啦。
cat /proc/acpi/thermal_zone/THRM/temperature
但是有個(gè)前提條件是:
要有內(nèi)核相關(guān)模塊(比如I2C)支持,還要找出系統(tǒng)的傳感器型號(hào),然后在內(nèi)核中打開(kāi)相應(yīng)選項(xiàng)
安裝psensor進(jìn)行執(zhí)行命令,執(zhí)行后就可監(jiān)測(cè)。
1、在Linux桌面系統(tǒng)中安裝psensor。
2、在啟動(dòng)psensor之前,需要先配置lm_sensors和hddtemp。
3、運(yùn)行以下命令,配置lm_sensors,每一項(xiàng)都選擇YES。
4、這個(gè)命令將會(huì)探查和檢測(cè)硬件中嵌入的傳感器,然后自動(dòng)決定系統(tǒng)中哪個(gè)驅(qū)動(dòng)模塊需要載入并監(jiān)測(cè)其溫度。
裝之后的老電腦改成了linux服務(wù)器,運(yùn)行久了想看看cpu溫度什么的。
看是否有kmod-coretemp,沒(méi)有的話需要安裝這個(gè)
執(zhí)行 sensors-detect 命令,選擇使用哪些模塊,不使用哪些模塊,可以一般回車(chē)默認(rèn)選擇到底,也可以一路yes到底即可。
使用 sensors 命令可以查看溫度
:: Core 0: +32.0°C (high = +80.0°C, crit = +99.0°C)
如果是云服務(wù)器或虛擬機(jī)中,是取不到sensors傳感器參數(shù)的。
Lm_sensors是一個(gè) 命令 行工具,用于顯示所有芯片傳感器數(shù)據(jù)的當(dāng)前讀數(shù),包括CPU溫度。默認(rèn)情況下,Ubuntu LInux沒(méi)有安裝Lm_Sensors,因此,我們必須自己安裝它們。
bob@bob-PC:~$ sudo apt install lm-sensors
檢測(cè)硬件
接下來(lái),我們需要檢測(cè)安裝在電腦上的硬件監(jiān)控芯片。現(xiàn)在我們可以開(kāi)始檢測(cè)電腦的硬件傳感器了:
bob@bob-PC:~$ sudo sensors-detect
# sensors-detect revision 6284 (2015-05-31 14:00:33 +0200)
# System: VMware, Inc. VMware Virtual Platform [None]
# Board: Intel Corporation 440BX Desktop Reference Platform
# Kernel: 4.15.0-30Ubuntu-generic x86_64
# Processor: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (6/158/10)
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): yes
Silicon Integrated Systems SIS5595...? ? ? ? ? ? ? ? ? ? ? No
VIA VT82C686 Integrated Sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
VIA VT8231 Integrated Sensors...? ? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD K8 thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 10h thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 11h thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 12h and 14h thermal sensors...? ? ? ? ? ? ? ? ? No
AMD Family 15h thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 16h thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 17h thermal sensors...? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 15h power sensors...? ? ? ? ? ? ? ? ? ? ? ? ? ? No
AMD Family 16h power sensors...? ? ? ? ? ? ? ? ? ? ? ? ? ? No
Intel digital thermal sensor...? ? ? ? ? ? ? ? ? ? ? ? ? ? Success!
(driver `coretemp')
Intel AMB FB-DIMM thermal sensor...? ? ? ? ? ? ? ? ? ? ? ? No
Intel 5500/5520/X58 thermal sensor...? ? ? ? ? ? ? ? ? ? ? No
VIA C7 thermal sensor...? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? No
VIA Nano thermal sensor...? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 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): yes
..................
顯示cpu溫度
可以通過(guò)一下命令查看溫度數(shù)據(jù)了:
bob@bob-PC:~$ sensors
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:? ? ? ? +33.0°C?
pch_skylake-virtual-0
Adapter: Virtual device
temp1:? ? ? ? +38.5°C?
BAT0-acpi-0
Adapter: ACPI interface
in0:? ? ? ? +12.45 V?
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:? +39.0°C? (high = +100.0°C, crit = +100.0°C)
Core 0:? ? ? ? +39.0°C? (high = +100.0°C, crit = +100.0°C)
Core 1:? ? ? ? +38.0°C? (high = +100.0°C, crit = +100.0°C)
thinkpad-isa-0000
Adapter: ISA adapter
fan1:? ? ? ? ? 0 RPM
temp1:? ? ? ? +38.0°C?
temp2:? ? ? ? ? ? N/A?
temp3:? ? ? ? +0.0°C?
temp4:? ? ? ? +0.0°C?
temp5:? ? ? ? +0.0°C?
temp6:? ? ? ? +0.0°C?
temp7:? ? ? ? +0.0°C?
temp8:? ? ? ? +0.0°C?
BAT1-acpi-0
Adapter: ACPI interface
in0:? ? ? ? +12.49 V?
acpitz-acpi-0
Adapter: ACPI interface
temp1:? ? ? ? +38.0°C? (crit = +128.0°C)
還可以使用watch命令實(shí)時(shí)關(guān)注:
bob@bob-PC:~$ watch sensors
使用圖形化工具psensor顯示cpu溫度
使用Psensor,您可以檢查以下各項(xiàng):
主板、CPU傳感器和NVidia GPU的溫度
硬盤(pán)驅(qū)動(dòng)器的溫度
風(fēng)扇的轉(zhuǎn)速
監(jiān)視CPU使用情況
最新版本的Psensor還為Ubuntu提供了一個(gè)applet指示器,因此在Ubuntu上更容易監(jiān)控硬件溫度。您可以選擇在頂部面板中顯示溫度。它甚至可以在溫度超過(guò)極限時(shí)發(fā)送桌面通知。
我們可以使用下面的命令安裝Psensor:
bob@bob-PC:~/Desktop$ sudo apt install -y psensor
打開(kāi)ubuntu的launchpad,在里面找到psensor,打開(kāi)該應(yīng)用就可以看到多個(gè)傳感器:
使用圖形化工具h(yuǎn)ardinfo
Hardinfo是Linux中用于在圖形化界面中顯示硬件信息的工具。可以使用它檢測(cè)cpu的溫度。以下命令安裝hardinfo:
bob@bob-PC:~/Desktop$ sudo apt install hardinfo
# 運(yùn)行一下命令打開(kāi)hardinfo
bob@bob-PC:~/Desktop$ sudo hardinfo
總結(jié)
在本教程中,我們將學(xué)習(xí)如何從命令行和桌面獲取Ubuntu Linux上的CPU溫度。
新聞名稱:Linux命令行查看溫度 linux cpu溫度命令
網(wǎng)站路徑:http://www.chinadenli.net/article2/dooisoc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)、網(wǎng)站收錄、網(wǎng)站營(yíng)銷(xiāo)、網(wǎng)站排名、網(wǎng)站策劃、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)