一、查看系统版本
cat /etc/.kyinfo 查看系统版本
[root@host-192-168-3-48 conf]# cat /etc/.kyinfo[dist]name=Kylinmilestone=Server-V10-SP3-General-Release-2303arch=arm64beta=Falsetime=2023-03-24 14:51:29dist_id=Kylin-Server-V10-SP3-General-Release-2303-arm64-2023-03-24 14:51:29[servicekey]key=0239033[os]to=term=2024-07-01
uname-r 查看内核版本
[root@host-192-168-3-48 conf]# uname -r4.19.90-52.22.v2207.ky10.aarch64
nkvers 查看系统版本
[root@host-192-168-3-48 conf]# nkvers############## Kylin Linux Version #################Release:Kylin Linux Advanced Server release V10 (Lance)Kernel:4.19.90-52.22.v2207.ky10.aarch64Build:Kylin Linux Advanced Serverrelease V10 (SP3) /(Lance)-aarch64-Build23/20230324
cat /etc/os-release 查看系统版本
[root@host-192-168-3-48 conf]# cat /etc/os-releaseNAME="Kylin Linux Advanced Server"VERSION="V10 (Lance)"ID="kylin"VERSION_ID="V10"PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"ANSI_COLOR="0;31"
cat /etc/.productinfo 查看系统版本
[root@host-192-168-3-48 conf]# cat /etc/.productinfoKylin Linux Advanced Serverrelease V10 (SP3) /(Lance)-aarch64-Build23/20230324
二、查看硬件相关信息
1、查看CPU信息
# lscpu
# cat /proc/cpuinfo
架构:aarch64CPU 运行模式:64-bitCPU: 4每个核的线程数:1每个座的核数:4座:1NUMA 节点:1型号:2型号名称:FT-2000+/64步进:0x1BogoMIPS:100.00NUMA 节点0 CPU:0-3Vulnerability Itlb multihit: Not affectedVulnerability L1tf: Not affectedVulnerability Mds: Not affectedVulnerability Meltdown: Not affectedVulnerability Mmio stale data: Not affectedVulnerability Spec store bypass: Not affectedVulnerability Spectre v1: Mitigation; __user pointer sanitizationVulnerability Spectre v2: Not affectedVulnerability Srbds: Not affectedVulnerability Tsx async abort: Not affected
[root@host-192-168-3-48 sqlbak]# cat /proc/cpuinfoprocessor : 0model name : ARMv8 CPUBogoMIPS : 100.00Features : fp asimd evtstrm crc32 cpuidCPU implementer : 0x70CPU architecture: 8CPU variant : 0x1CPU part : 0x662CPU revision : 2processor : 1model name : ARMv8 CPUBogoMIPS : 100.00Features : fp asimd evtstrm crc32 cpuidCPU implementer : 0x70CPU architecture: 8CPU variant : 0x1CPU part : 0x662CPU revision : 2processor : 2model name : ARMv8 CPUBogoMIPS : 100.00Features : fp asimd evtstrm crc32 cpuidCPU implementer : 0x70CPU architecture: 8CPU variant : 0x1CPU part : 0x662CPU revision : 2processor : 3model name : ARMv8 CPUBogoMIPS : 100.00Features : fp asimd evtstrm crc32 cpuidCPU implementer : 0x70CPU architecture: 8CPU variant : 0x1CPU part : 0x662CPU revision : 2
2、查看内存信息
#dmidecode -t memory
# cat /proc/meminfo
[root@host-192-168-3-48 sqlbak]# dmidecode -t memory# dmidecode 3.2Getting SMBIOS data from sysfs.SMBIOS 3.0.0 present.Handle 0x1000, DMI type 16, 23 bytesPhysical Memory ArrayLocation: OtherUse: System MemoryError Correction Type: Multi-bit ECCMaximum Capacity: 8 GBError Information Handle: Not ProvidedNumber Of Devices: 1Handle 0x1100, DMI type 17, 40 bytesMemory DeviceArray Handle: 0x1000Error Information Handle: Not ProvidedTotal Width: UnknownData Width: UnknownSize: 8192 MBForm Factor: DIMMSet: NoneLocator: DIMM 0Bank Locator: Not SpecifiedType: RAMType Detail: OtherSpeed: UnknownManufacturer: QEMUSerial Number: Not SpecifiedAsset Tag: Not SpecifiedPart Number: Not SpecifiedRank: UnknownConfigured Memory Speed: UnknownMinimum Voltage: UnknownMaximum Voltage: UnknownConfigured Voltage: Unknown
[root@host-192-168-3-48 sqlbak]# cat /proc/meminfoMemTotal: 6966528 kBMemFree: 792128 kBMemAvailable: 2610944 kBBuffers: 5504 kBCached: 3064896 kBSwapCached: 6336 kBActive: 2461056 kBInactive: 3148288 kBActive(anon): 1684032 kBInactive(anon): 1240768 kBActive(file): 777024 kBInactive(file): 1907520 kBUnevictable: 0 kBMlocked: 0 kBSwapTotal: 4206528 kBSwapFree: 4162112 kBDirty: 64 kBWriteback: 0 kBAnonPages: 2532672 kBMapped: 356224 kBShmem: 401728 kBKReclaimable: 200576 kBSlab: 435776 kBSReclaimable: 200576 kBSUnreclaim: 235200 kBKernelStack: 8064 kBPageTables: 26624 kBNFS_Unstable: 0 kBBounce: 0 kBWritebackTmp: 0 kBCommitLimit: 7689792 kBCommitted_AS: 6202432 kBVmallocTotal: 133009637312 kBVmallocUsed: 0 kBVmallocChunk: 0 kBPercpu: 5888 kBHardwareCorrupted: 0 kBAnonHugePages: 0 kBShmemHugePages: 0 kBShmemPmdMapped: 0 kBCmaTotal: 0 kBCmaFree: 0 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0HugePages_Surp: 0Hugepagesize: 524288 kBHugetlb: 0 kB

