日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Linux 服务器配置信息查询方法,国产化申威服务器配置信息查看演示

發布時間:2025/4/16 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux 服务器配置信息查询方法,国产化申威服务器配置信息查看演示 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

申威服務器配置信息查看演示

  • 第一章:常用命令
  • ① 顯示服務器信息
  • ② 顯示操作系統信息
  • ③ 顯示CPU相關信息
  • ④ 顯示磁盤使用情況
  • ⑤ 顯示網卡信息
  • ⑥ 顯示centos版本信息
  • ⑦ 顯示磁盤分區情況
  • ⑧ 顯示內存相關信息
  • ⑨ 顯示可用塊設備情況
  • 第二章:獲取更多信息
  • ① 顯示開機相關信息
  • ② 顯示詳細硬件信息

第一章:常用命令

① 顯示服務器信息

通過 dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product" 命令可以顯示服務器信息。
申威服務器沒查出來,其它服務器可用,下面這個是飛騰服務器的。

root@compute9:/opt/dmdbms/tool# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product"Manufacturer: GreatWallProduct Name: 擎天DF720

下面這個是泰山服務器的

[root@taishan-kylinosv10-18 yonyou_nc]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product"Manufacturer: HuaweiProduct Name: TaiShan 2280 V2

② 顯示操作系統信息

通過 uname -a 命令可以顯示內核操作系統信息。

root@sw6a:~# uname -a Linux sw6a 4.4.15-deepin-aere #176 SMP Thu Dec 19 17:36:51 CST 2019 sw_64 GNU/Linux

通過 cat /proc/version 命令可以顯示內核操作系統詳細信息。

root@compute9:/data/nccode/0522DM# cat /proc/version Linux version 4.4.131-20190301.kylin.server.YUN+-generic (YHKYLIN-OS@Kylin) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.11) ) #kylin SMP Fri Mar 1 15:57:26 CST 2019

通過 lsb_release -a 命令可以顯示操作系統詳細信息。

root@compute9:/data/nccode/0522DM# lsb_release -a No LSB modules are available. Distributor ID: Kylin Description: Kylin 4.0.2 Release: 4.0.2 Codename: juniper

通過 cat /etc/issue 命令可以顯示操作系統簡略信息。

root@compute9:/data/nccode/0522DM# cat /etc/issue Kylin 4.0.2 \n \l

③ 顯示CPU相關信息

通過 cat /proc/cpuinfo 命令可以顯示 CPU 相關信息。

root@sw6a:~# cat /proc/cpuinfo cpu : sw cpu model : sw cpu variation : 1 cpu revision : SW6A cpu serial number : system type : Aere system variation : Aere system revision : 0 system serial number : CPU frequency [MHz] : 1600.00 cpu MHz : 1600.00 page size [bytes] : 8192 phys. address bits : 48 BogoMIPS : 3200.00 kernel unaligned acc : 0 (pc=0,va=0) user unaligned acc : 11024109263 (pc=120e79c00,va=2000151a666) platform string : N/A cpus detected : 16 cpus active : 16 cpu active mask : 000000000000ffff cpus core_start : 000000000000ffff L1 Icache : 32K, 4-way, 128b line L1 Dcache : 32K, 4-way, 128b line L2 cache : 512K, 8-way, 128b line L3 cache : 32768K, 8-way, 128b line

④ 顯示磁盤使用情況

通過 df -h 命令可以顯示磁盤使用情況。

root@sw6a:~# df -h 文件系統 容量 已用 可用 已用% 掛載點 udev 63G 0 63G 0% /dev tmpfs 13G 25M 13G 1% /run /dev/sda2 99G 32G 63G 34% / tmpfs 63G 0 63G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 63G 0 63G 0% /sys/fs/cgroup /dev/sda1 232M 60M 161M 27% /boot tmpfs 13G 8.0K 13G 1% /run/user/110 tmpfs 13G 72K 13G 1% /run/user/0 tmpfs 13G 0 13G 0% /run/user/1001

⑤ 顯示網卡信息

通過 ethtool eth0 命令可以顯示網卡相關信息。

root@sw6a:~# ethtool eth0 Settings for eth0:Supported ports: [ TP MII ]Supported link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/Half 1000baseT/FullSupported pause frame use: Symmetric Receive-onlySupports auto-negotiation: YesAdvertised link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/Half 1000baseT/FullAdvertised pause frame use: Symmetric Receive-onlyAdvertised auto-negotiation: YesLink partner advertised link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullLink partner advertised pause frame use: NoLink partner advertised auto-negotiation: YesSpeed: 1000Mb/sDuplex: FullPort: MIIPHYAD: 0Transceiver: externalAuto-negotiation: onSupports Wake-on: ugWake-on: dCurrent message level: 0x0000003f (63)drv probe link timer ifdown ifupLink detected: yes

⑥ 顯示centos版本信息

通過 cat /etc/issue 命令可以顯示 centos 版本信息。

root@sw6a:~# cat /etc/issue deepin GNU/Linux 15 \n \l

⑦ 顯示磁盤分區情況

通過 fdisk -l 命令可以顯示磁盤分區情況。

root@sw6a:~# fdisk -l Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: EB619DDD-154F-4C5F-8F8E-A3398071DD57Device Start End Sectors Size Type /dev/sda1 2048 499711 497664 243M Linux filesystem /dev/sda2 499712 212082687 211582976 100.9G Linux filesystem /dev/sda3 212082688 468860927 256778240 122.5G Linux swap

⑧ 顯示內存相關信息

通過 cat /proc/meminfo 命令可以顯示內存相關信息。

root@sw6a:~# cat /proc/meminfo MemTotal: 131469720 kB MemFree: 95030168 kB MemAvailable: 119071160 kB Buffers: 1539048 kB Cached: 21550632 kB SwapCached: 0 kB Active: 31452832 kB Inactive: 3369336 kB Active(anon): 11738056 kB Inactive(anon): 26504 kB Active(file): 19714776 kB Inactive(file): 3342832 kB Unevictable: 32 kB Mlocked: 32 kB SwapTotal: 128389112 kB SwapFree: 128389112 kB Dirty: 240 kB Writeback: 0 kB AnonPages: 11732696 kB Mapped: 364904 kB Shmem: 32040 kB Slab: 1239864 kB SReclaimable: 1155200 kB SUnreclaim: 84664 kB KernelStack: 12496 kB PageTables: 34520 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 194123968 kB Committed_AS: 41329400 kB VmallocTotal: 8388608 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 8192 kB

⑨ 顯示可用塊設備情況

通過 lsblk 命令可以顯示可用塊設備情況。

root@sw6a:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 223.6G 0 disk ├─sda1 8:1 0 243M 0 part /boot ├─sda2 8:2 0 100.9G 0 part / └─sda3 8:3 0 122.5G 0 part [SWAP]

第二章:獲取更多信息

① 顯示開機相關信息

通過 dmesg | more 命令可以顯示開機信息,里面會包含開機過程中所有內核可以檢測到的驅動和設備信息,常用該命令來檢測系統故障。

root@sw6a:~# dmesg | more [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.4.15-deepin-aere (deepin@node1) (SWREACH GCC5.3.0-54 (20181101) ) #176 SMP Thu Dec 19 17:36:51 CST 2019 [ 0.000000] Setup arch sys_type = 0x37, hwrpb->cpuid:0xb,hwrpb = 0xfffffc0000820000 [ 0.000000] hwrpb->revision = 0x0. [ 0.000000] sw_mv.vector_name = sw. [ 0.000000] Booting on Aere variation Aere using machine vector sw [ 0.000000] Major Options: SMP LEGACY_START DISCONTIGMEM NUMA MAGIC_SYSRQ [ 0.000000] Command line: quiet splash net.ifnames=0 audit=0 apparmor=0 root=UUID=0d170bfd- f28e-4ba8-96a4-195abcb3a5ae [ 0.000000] Raw memory layout: [ 0.000000] memcluster 0, usage 0, start 1144, end 4194304 [ 0.000000] memcluster 1, usage 0, start 4195448, end 8388608 [ 0.000000] memcluster 2, usage 0, start 8389752, end 12582912 [ 0.000000] memcluster 3, usage 0, start 12584056, end 16777216 [ 0.000000] Initializing bootmem allocator on Node ID 0 [ 0.000000] memcluster 0, usage 0, start 1144, end 4194304 [ 0.000000] Detected node memory: start 1144, end 4194304 [ 0.000000] freeing pages 1144:4194304 [ 0.000000] Initializing bootmem allocator on Node ID 1 [ 0.000000] memcluster 1, usage 0, start 4195448, end 8388608 [ 0.000000] Detected node memory: start 4195448, end 8388608 [ 0.000000] freeing pages 4195448:8388608 [ 0.000000] Initializing bootmem allocator on Node ID 2 [ 0.000000] memcluster 2, usage 0, start 8389752, end 12582912 [ 0.000000] Detected node memory: start 8389752, end 12582912 [ 0.000000] freeing pages 8389752:12582912 [ 0.000000] Initializing bootmem allocator on Node ID 3 [ 0.000000] memcluster 3, usage 0, start 12584056, end 16777216 [ 0.000000] Detected node memory: start 12584056, end 16777216 [ 0.000000] freeing pages 12584056:16777216 [ 0.000000] reserved pages for pcie memory space 458752:524288 --More--

② 顯示詳細硬件信息

通過 dmidecode | more 命令可以顯示各硬件的詳細信息。

[root@taishan-kylinosv10-18 proc]# dmidecode | more # dmidecode 3.1 Getting SMBIOS data from sysfs. SMBIOS 3.1.1 present. Table at 0x2FC60000.Handle 0x0000, DMI type 0, 26 bytes BIOS InformationVendor: Huawei Corp.Version: 0.86Release Date: 07/17/2019Address: 0x5F000Runtime Size: 644 kBROM Size: 6144 kBCharacteristics:PCI is supportedBIOS is upgradeableBIOS shadowing is allowedBoot from CD is supportedSelectable boot is supportedEDD is supportedJapanese floppy for NEC 9800 1.2 MB is supported (int 13h)Japanese floppy for Toshiba 1.2 MB is supported (int 13h)5.25"/360 kB floppy services are supported (int 13h)5.25"/1.2 MB floppy services are supported (int 13h)3.5"/720 kB floppy services are supported (int 13h)3.5"/2.88 MB floppy services are supported (int 13h)8042 keyboard services are supported (int 9h)CGA/mono video services are supported (int 10h)ACPI is supportedUSB legacy is supportedBIOS boot specification is supportedTargeted content distribution is supportedUEFI is supportedBIOS Revision: 0.0Handle 0x0001, DMI type 1, 27 bytes System InformationManufacturer: HuaweiProduct Name: TaiShan 2280 V2 --More--

喜歡的點個贊?吧!

《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

總結

以上是生活随笔為你收集整理的Linux 服务器配置信息查询方法,国产化申威服务器配置信息查看演示的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。