CentOs7.3 配置基本信息查看
1.基本信息查看(命令行)
[root@localhost home]#
CPU个数:
[root@localhost home]# grep 'physical id' /proc/cpuinfo | sort -u | wc -l
1
CPU核数:
[root@localhost home]# cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 1
CPU型号:
[root@localhost home]# cat /proc/cpuinfo | grep 'model name' |uniq
model name : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
cpu内核频率:
[root@localhost home]# cat /proc/cpuinfo |grep MHz|uniq
cpu MHz : 2194.940
查看CPU统计信息:
[root@localhost home]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
座: 1
NUMA 节点: 1
厂商 ID: GenuineIntel
CPU 系列: 6
型号: 61
型号名称: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
步进: 4
CPU MHz: 2194.940
BogoMIPS: 4389.88
超管理器厂商: VMware
虚拟化类型: 完全
L1d 缓存: 32K
L1i 缓存: 32K
L2 缓存: 256K
L3 缓存: 3072K
NUMA 节点0 CPU: 0
[root@localhost home]#
内存总数:
[root@localhost home]# cat /proc/meminfo | grep MemTotal
MemTotal: 1867264 kB
内核版本:
[root@localhost home]# cat /proc/version
Linux version 3.10.0-514.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Nov 22 16:42:41 UTC 2016
操作系统内核信息:
[root@localhost home]# uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
查看显卡:
[root@localhost home]# lspci | grep -i vga
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
机器型号:
[root@localhost home]# dmidecode | grep "Product Name"
Product Name: VMware Virtual Platform
Product Name: 440BX Desktop Reference Platform
主板型号:
[root@localhost home]# dmidecode |grep -A16 "System Information$"
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-56 4d 67 50 86 a0 9c 87-68 da 4b 0c 34 c0 85 c1
UUID: 50674D56-A086-879C-68DA-4B0C34C085C1
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: 440BX Desktop Reference Platform
Version: None
Serial Number: None
Asset Tag: Not Specified
磁盘信息:
[root@localhost home]# fdisk -l
磁盘 /dev/sda:107.4 GB, 107374182400 字节,209715200 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x00052884
设备 Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 174082047 85991424 8e Linux LVM
磁盘 /dev/mapper/cl-root:85.9 GB, 85899345920 字节,167772160 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘 /dev/mapper/cl-swap:2147 MB, 2147483648 字节,4194304 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
操作系统发行版信息:
[root@localhost home]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@localhost home]#
2.基本信息查看(界面)
1、准备一台笔记本(关闭防火墙),一条网线 2、把笔记本IP地址为192.168.1.0/24网段 # 不配置网关 3、将网线连接笔记本和服务器后部的HDM网口(网口有HDM标识) 4、用笔记本ping 192.168.1.1,保证能通 # ping不通的话ping 192.168.1.2 5、使用浏览器输入192.168.1.1,使用用户名密码登录(admin/Password@_) 6、在管理界面中点解系统信息,可查看服务器CPU、内存、网卡、电源、硬盘等信息
登录成功后看到如下页面