提交
This commit is contained in:
parent
a8f12383d3
commit
71083402d9
@ -306,3 +306,9 @@ private void ShowTypeField()
|
|||||||
- GetMethod(),GetMethods()
|
- GetMethod(),GetMethods()
|
||||||
|
|
||||||
返回MethodInfo类型,用于取得该类的方法的信息
|
返回MethodInfo类型,用于取得该类的方法的信息
|
||||||
|
|
||||||
|
# 循环
|
||||||
|
|
||||||
|
## foreach
|
||||||
|
|
||||||
|
###
|
||||||
|
|||||||
@ -1189,6 +1189,616 @@ uname -a
|
|||||||
|
|
||||||
升级完成
|
升级完成
|
||||||
|
|
||||||
|
## 查看系统硬件信息
|
||||||
|
|
||||||
|
### cpu
|
||||||
|
|
||||||
|
**lscpu** 查看的是cpu的统计信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lscpu
|
||||||
|
|
||||||
|
Architecture: x86_64
|
||||||
|
CPU op-mode(s): 32-bit, 64-bit
|
||||||
|
Byte Order: Little Endian
|
||||||
|
CPU(s): 40
|
||||||
|
On-line CPU(s) list: 0-39
|
||||||
|
Thread(s) per core: 2
|
||||||
|
Core(s) per socket: 10
|
||||||
|
座: 2
|
||||||
|
NUMA 节点: 2
|
||||||
|
厂商 ID: GenuineIntel
|
||||||
|
CPU 系列: 6
|
||||||
|
型号: 85
|
||||||
|
型号名称: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
|
||||||
|
步进: 7
|
||||||
|
CPU MHz: 999.963
|
||||||
|
CPU max MHz: 3200.0000
|
||||||
|
CPU min MHz: 1000.0000
|
||||||
|
BogoMIPS: 4400.00
|
||||||
|
虚拟化: VT-x
|
||||||
|
L1d 缓存: 32K
|
||||||
|
L1i 缓存: 32K
|
||||||
|
L2 缓存: 1024K
|
||||||
|
L3 缓存: 14080K
|
||||||
|
NUMA 节点0 CPU: 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38
|
||||||
|
NUMA 节点1 CPU: 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39
|
||||||
|
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba rsb_ctxsw ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
**cat /proc/cpuinfo** 可以知道每个cpu信息,如每个cpu的型号,主频等
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cat /proc/cpuinfo
|
||||||
|
|
||||||
|
processor : 0
|
||||||
|
vendor_id : GenuineIntel
|
||||||
|
cpu family : 6
|
||||||
|
model : 85
|
||||||
|
model name : Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
|
||||||
|
stepping : 7
|
||||||
|
microcode : 0x5003303
|
||||||
|
cpu MHz : 999.963
|
||||||
|
cache size : 14080 KB
|
||||||
|
physical id : 0
|
||||||
|
siblings : 20
|
||||||
|
core id : 0
|
||||||
|
cpu cores : 10
|
||||||
|
apicid : 0
|
||||||
|
initial apicid : 0
|
||||||
|
fpu : yes
|
||||||
|
fpu_exception : yes
|
||||||
|
cpuid level : 22
|
||||||
|
wp : yes
|
||||||
|
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin ssbd mba rsb_ctxsw ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke avx512_vnni md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities
|
||||||
|
bogomips : 4400.00
|
||||||
|
clflush size : 64
|
||||||
|
cache_alignment : 64
|
||||||
|
address sizes : 46 bits physical, 48 bits virtual
|
||||||
|
power management:
|
||||||
|
```
|
||||||
|
|
||||||
|
### 内存
|
||||||
|
|
||||||
|
概要查看内存情况
|
||||||
|
|
||||||
|
这里的单位是mb
|
||||||
|
|
||||||
|
```shell
|
||||||
|
free -m
|
||||||
|
|
||||||
|
total used free shared buff/cache available
|
||||||
|
Mem: 31595 14770 3182 253 13643 16150
|
||||||
|
Swap: 65535 0 65535
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
查看内存详细使用
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cat /proc/meminfo
|
||||||
|
|
||||||
|
MemTotal: 32354112 kB
|
||||||
|
MemFree: 3377564 kB
|
||||||
|
MemAvailable: 16657484 kB
|
||||||
|
Buffers: 725916 kB
|
||||||
|
Cached: 12127832 kB
|
||||||
|
SwapCached: 0 kB
|
||||||
|
Active: 21031256 kB
|
||||||
|
Inactive: 5694748 kB
|
||||||
|
Active(anon): 13934208 kB
|
||||||
|
Inactive(anon): 197192 kB
|
||||||
|
Active(file): 7097048 kB
|
||||||
|
Inactive(file): 5497556 kB
|
||||||
|
Unevictable: 0 kB
|
||||||
|
Mlocked: 0 kB
|
||||||
|
SwapTotal: 67108860 kB
|
||||||
|
SwapFree: 67108860 kB
|
||||||
|
Dirty: 332 kB
|
||||||
|
Writeback: 0 kB
|
||||||
|
AnonPages: 13894944 kB
|
||||||
|
Mapped: 697472 kB
|
||||||
|
Shmem: 259160 kB
|
||||||
|
Slab: 1464576 kB
|
||||||
|
SReclaimable: 1117812 kB
|
||||||
|
SUnreclaim: 346764 kB
|
||||||
|
KernelStack: 47280 kB
|
||||||
|
PageTables: 95304 kB
|
||||||
|
NFS_Unstable: 0 kB
|
||||||
|
Bounce: 0 kB
|
||||||
|
WritebackTmp: 0 kB
|
||||||
|
CommitLimit: 83285916 kB
|
||||||
|
Committed_AS: 30011360 kB
|
||||||
|
VmallocTotal: 34359738367 kB
|
||||||
|
VmallocUsed: 499568 kB
|
||||||
|
VmallocChunk: 34342115324 kB
|
||||||
|
Percpu: 165376 kB
|
||||||
|
HardwareCorrupted: 0 kB
|
||||||
|
AnonHugePages: 9009152 kB
|
||||||
|
CmaTotal: 0 kB
|
||||||
|
CmaFree: 0 kB
|
||||||
|
HugePages_Total: 0
|
||||||
|
HugePages_Free: 0
|
||||||
|
HugePages_Rsvd: 0
|
||||||
|
HugePages_Surp: 0
|
||||||
|
Hugepagesize: 2048 kB
|
||||||
|
DirectMap4k: 510976 kB
|
||||||
|
DirectMap2M: 11681792 kB
|
||||||
|
DirectMap1G: 23068672 kB
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### 硬盘
|
||||||
|
|
||||||
|
查看硬盘和分区分布
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lsblk
|
||||||
|
|
||||||
|
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
|
||||||
|
sda 8:0 0 447.1G 0 disk
|
||||||
|
├─sda1 8:1 0 200M 0 part /boot/efi
|
||||||
|
├─sda2 8:2 0 1G 0 part /boot
|
||||||
|
├─sda3 8:3 0 380G 0 part /
|
||||||
|
└─sda4 8:4 0 64G 0 part [SWAP]
|
||||||
|
sdb 8:16 0 2.2T 0 disk
|
||||||
|
└─sdb1 8:17 0 2.2T 0 part /test
|
||||||
|
sdc 8:32 0 2.2T 0 disk
|
||||||
|
└─sdc1 8:33 0 2.2T 0 part /test1
|
||||||
|
sdd 8:48 0 2.2T 0 disk
|
||||||
|
└─sdd1 8:49 0 2.2T 0 part /test2
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
查看硬盘和分区的详细信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
fdisk -l
|
||||||
|
|
||||||
|
磁盘 /dev/sda:480.1 GB, 480103981056 字节,937703088 个扇区
|
||||||
|
Units = 扇区 of 1 * 512 = 512 bytes
|
||||||
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
||||||
|
I/O 大小(最小/最佳):4096 字节 / 4096 字节
|
||||||
|
磁盘标签类型:gpt
|
||||||
|
Disk identifier: F6E9395D-610B-4BB3-B289-8F6A96811113
|
||||||
|
|
||||||
|
|
||||||
|
# Start End Size Type Name
|
||||||
|
1 2048 411647 200M EFI System EFI System Partition
|
||||||
|
2 411648 2508799 1G Microsoft basic
|
||||||
|
3 2508800 799426559 380G Microsoft basic
|
||||||
|
4 799426560 933644287 64G Linux swap
|
||||||
|
```
|
||||||
|
|
||||||
|
### 网卡
|
||||||
|
|
||||||
|
查看网卡硬件信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lspci | grep -i 'eth'
|
||||||
|
|
||||||
|
04:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
|
||||||
|
04:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
查看系统的所有网络接口
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ifconfig -a
|
||||||
|
|
||||||
|
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||||
|
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
|
||||||
|
inet6 fe80::42:66ff:fefe:52a2 prefixlen 64 scopeid 0x20<link>
|
||||||
|
ether 02:42:66:fe:52:a2 txqueuelen 0 (Ethernet)
|
||||||
|
RX packets 533213 bytes 84136530 (80.2 MiB)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 451394 bytes 255184964 (243.3 MiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||||
|
inet 192.168.6.20 netmask 255.255.255.0 broadcast 192.168.6.255
|
||||||
|
inet6 fe80::bcee:f071:9cb6:5895 prefixlen 64 scopeid 0x20<link>
|
||||||
|
ether 2c:ea:7f:a9:fc:76 txqueuelen 1000 (Ethernet)
|
||||||
|
RX packets 4188110 bytes 589201250 (561.9 MiB)
|
||||||
|
RX errors 0 dropped 245827 overruns 0 frame 0
|
||||||
|
TX packets 3750302 bytes 3040465610 (2.8 GiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
device interrupt 17
|
||||||
|
|
||||||
|
em2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
|
||||||
|
ether 2c:ea:7f:a9:fc:77 txqueuelen 1000 (Ethernet)
|
||||||
|
RX packets 0 bytes 0 (0.0 B)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 0 bytes 0 (0.0 B)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
device interrupt 18
|
||||||
|
|
||||||
|
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
|
||||||
|
inet 127.0.0.1 netmask 255.0.0.0
|
||||||
|
inet6 ::1 prefixlen 128 scopeid 0x10<host>
|
||||||
|
loop txqueuelen 1000 (Local Loopback)
|
||||||
|
RX packets 57812 bytes 1222825457 (1.1 GiB)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 57812 bytes 1222825457 (1.1 GiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
veth466b258: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||||
|
inet6 fe80::f416:2bff:feda:768a prefixlen 64 scopeid 0x20<link>
|
||||||
|
ether f6:16:2b:da:76:8a txqueuelen 0 (Ethernet)
|
||||||
|
RX packets 82533 bytes 24308568 (23.1 MiB)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 164361 bytes 88237154 (84.1 MiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
veth52ce7e6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||||
|
inet6 fe80::4806:98ff:fe5f:bb2d prefixlen 64 scopeid 0x20<link>
|
||||||
|
ether 4a:06:98:5f:bb:2d txqueuelen 0 (Ethernet)
|
||||||
|
RX packets 450680 bytes 67292944 (64.1 MiB)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 287123 bytes 166954717 (159.2 MiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
veth675fcbf: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
|
||||||
|
inet6 fe80::f4ac:10ff:fef5:5d60 prefixlen 64 scopeid 0x20<link>
|
||||||
|
ether f6:ac:10:f5:5d:60 txqueuelen 0 (Ethernet)
|
||||||
|
RX packets 0 bytes 0 (0.0 B)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 107 bytes 9629 (9.4 KiB)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
|
||||||
|
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
|
||||||
|
ether 52:54:00:a4:7b:fe txqueuelen 1000 (Ethernet)
|
||||||
|
RX packets 0 bytes 0 (0.0 B)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 0 bytes 0 (0.0 B)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
|
||||||
|
ether 52:54:00:a4:7b:fe txqueuelen 1000 (Ethernet)
|
||||||
|
RX packets 0 bytes 0 (0.0 B)
|
||||||
|
RX errors 0 dropped 0 overruns 0 frame 0
|
||||||
|
TX packets 0 bytes 0 (0.0 B)
|
||||||
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
或者是
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ip link show
|
||||||
|
|
||||||
|
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
|
||||||
|
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
|
||||||
|
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
|
||||||
|
link/ether 2c:ea:7f:a9:fc:76 brd ff:ff:ff:ff:ff:ff
|
||||||
|
3: em2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
|
||||||
|
link/ether 2c:ea:7f:a9:fc:77 brd ff:ff:ff:ff:ff:ff
|
||||||
|
4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
|
||||||
|
link/ether 02:42:66:fe:52:a2 brd ff:ff:ff:ff:ff:ff
|
||||||
|
6: veth466b258@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default
|
||||||
|
link/ether f6:16:2b:da:76:8a brd ff:ff:ff:ff:ff:ff link-netnsid 1
|
||||||
|
10: veth675fcbf@if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default
|
||||||
|
link/ether f6:ac:10:f5:5d:60 brd ff:ff:ff:ff:ff:ff link-netnsid 0
|
||||||
|
11: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
|
||||||
|
link/ether 52:54:00:a4:7b:fe brd ff:ff:ff:ff:ff:ff
|
||||||
|
12: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT group default qlen 1000
|
||||||
|
link/ether 52:54:00:a4:7b:fe brd ff:ff:ff:ff:ff:ff
|
||||||
|
14: veth52ce7e6@if13: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default
|
||||||
|
link/ether 4a:06:98:5f:bb:2d brd ff:ff:ff:ff:ff:ff link-netnsid 2
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
或者
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cat /proc/net/dev
|
||||||
|
|
||||||
|
Inter-| Receive | Transmit
|
||||||
|
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
|
||||||
|
veth466b258: 24315353 82556 0 0 0 0 0 0 88261902 164407 0 0 0 0 0 0
|
||||||
|
lo: 1222873114 57968 0 0 0 0 0 0 1222873114 57968 0 0 0 0 0 0
|
||||||
|
virbr0-nic: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
|
virbr0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
|
veth675fcbf: 0 0 0 0 0 0 0 0 9629 107 0 0 0 0 0 0
|
||||||
|
em1: 589404500 4189635 0 245895 0 0 0 966587 3040611778 3751409 0 0 0 0 0 0
|
||||||
|
em2: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
|
veth52ce7e6: 67310666 450811 0 0 0 0 0 0 167000201 287207 0 0 0 0 0 0
|
||||||
|
docker0: 84158881 533367 0 0 0 0 0 0 255255196 451524 0 0 0 0 0 0
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
如果要查看某个网络接口的详细信息,例如em1的详细参数和指标
|
||||||
|
|
||||||
|
```shell
|
||||||
|
ethtool em1
|
||||||
|
|
||||||
|
Settings for em1:
|
||||||
|
Supported ports: [ TP ]
|
||||||
|
Supported link modes: 10baseT/Half 10baseT/Full
|
||||||
|
100baseT/Half 100baseT/Full
|
||||||
|
1000baseT/Half 1000baseT/Full
|
||||||
|
Supported pause frame use: No
|
||||||
|
Supports auto-negotiation: Yes
|
||||||
|
Supported FEC modes: Not reported
|
||||||
|
Advertised link modes: 10baseT/Half 10baseT/Full
|
||||||
|
100baseT/Half 100baseT/Full
|
||||||
|
1000baseT/Half 1000baseT/Full
|
||||||
|
Advertised pause frame use: Symmetric
|
||||||
|
Advertised auto-negotiation: Yes
|
||||||
|
Advertised FEC modes: Not reported
|
||||||
|
Link partner advertised link modes: 10baseT/Half 10baseT/Full
|
||||||
|
100baseT/Half 100baseT/Full
|
||||||
|
Link partner advertised pause frame use: Symmetric Receive-only
|
||||||
|
Link partner advertised auto-negotiation: Yes
|
||||||
|
Link partner advertised FEC modes: Not reported
|
||||||
|
Speed: 100Mb/s
|
||||||
|
Duplex: Full
|
||||||
|
Port: Twisted Pair
|
||||||
|
PHYAD: 1
|
||||||
|
Transceiver: internal
|
||||||
|
Auto-negotiation: on
|
||||||
|
MDI-X: off
|
||||||
|
Supports Wake-on: g
|
||||||
|
Wake-on: d
|
||||||
|
Current message level: 0x000000ff (255)
|
||||||
|
drv probe link timer ifdown ifup rx_err tx_err
|
||||||
|
Link detected: yes
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### pci
|
||||||
|
|
||||||
|
查看pci信息,即主板所有硬件槽信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lspci
|
||||||
|
|
||||||
|
00:00.0 Host bridge: Intel Corporation Sky Lake-E DMI3 Registers (rev 07)
|
||||||
|
00:05.0 System peripheral: Intel Corporation Sky Lake-E MM/Vt-d Configuration Registers (rev 07)
|
||||||
|
00:05.2 System peripheral: Intel Corporation Sky Lake-E RAS (rev 07)
|
||||||
|
00:05.4 PIC: Intel Corporation Sky Lake-E IOAPIC (rev 07)
|
||||||
|
00:08.0 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
00:08.1 Performance counters: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
00:08.2 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
00:11.0 Unassigned class [ff00]: Intel Corporation C620 Series Chipset Family MROM 0 (rev 09)
|
||||||
|
00:11.5 SATA controller: Intel Corporation C620 Series Chipset Family SSATA Controller [AHCI mode] (rev 09)
|
||||||
|
00:14.0 USB controller: Intel Corporation C620 Series Chipset Family USB 3.0 xHCI Controller (rev 09)
|
||||||
|
00:14.2 Signal processing controller: Intel Corporation C620 Series Chipset Family Thermal Subsystem (rev 09)
|
||||||
|
00:16.0 Communication controller: Intel Corporation C620 Series Chipset Family MEI Controller #1 (rev 09)
|
||||||
|
00:16.1 Communication controller: Intel Corporation C620 Series Chipset Family MEI Controller #2 (rev 09)
|
||||||
|
00:16.4 Communication controller: Intel Corporation C620 Series Chipset Family MEI Controller #3 (rev 09)
|
||||||
|
00:17.0 SATA controller: Intel Corporation C620 Series Chipset Family SATA Controller [AHCI mode] (rev 09)
|
||||||
|
00:1c.0 PCI bridge: Intel Corporation C620 Series Chipset Family PCI Express Root Port #1 (rev f9)
|
||||||
|
00:1c.4 PCI bridge: Intel Corporation C620 Series Chipset Family PCI Express Root Port #5 (rev f9)
|
||||||
|
00:1c.5 PCI bridge: Intel Corporation C620 Series Chipset Family PCI Express Root Port #6 (rev f9)
|
||||||
|
00:1f.0 ISA bridge: Intel Corporation C621 Series Chipset LPC/eSPI Controller (rev 09)
|
||||||
|
00:1f.2 Memory controller: Intel Corporation C620 Series Chipset Family Power Management Controller (rev 09)
|
||||||
|
00:1f.4 SMBus: Intel Corporation C620 Series Chipset Family SMBus (rev 09)
|
||||||
|
00:1f.5 Serial bus controller [0c80]: Intel Corporation C620 Series Chipset Family SPI Controller (rev 09)
|
||||||
|
02:00.0 PCI bridge: PLDA PCI Express Bridge (rev 02)
|
||||||
|
03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Integrated Matrox G200eW3 Graphics Controller (rev 04)
|
||||||
|
04:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
|
||||||
|
04:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
|
||||||
|
17:02.0 PCI bridge: Intel Corporation Sky Lake-E PCI Express Root Port C (rev 07)
|
||||||
|
17:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
17:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
17:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
17:08.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:08.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:09.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:09.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0e.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0f.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:0f.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:1d.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:1d.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:1d.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:1d.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
17:1e.0 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.1 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.2 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.3 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.4 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.5 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
17:1e.6 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
18:00.0 RAID bus controller: Broadcom / LSI MegaRAID SAS-3 3108 [Invader] (rev 02)
|
||||||
|
3a:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
3a:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
3a:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
3a:08.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:09.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.1 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.2 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.3 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.4 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0a.5 System peripheral: Intel Corporation Sky Lake-E LM Channel 1 (rev 07)
|
||||||
|
3a:0a.6 System peripheral: Intel Corporation Sky Lake-E LMS Channel 1 (rev 07)
|
||||||
|
3a:0a.7 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 1 (rev 07)
|
||||||
|
3a:0b.0 System peripheral: Intel Corporation Sky Lake-E DECS Channel 2 (rev 07)
|
||||||
|
3a:0b.1 System peripheral: Intel Corporation Sky Lake-E LM Channel 2 (rev 07)
|
||||||
|
3a:0b.2 System peripheral: Intel Corporation Sky Lake-E LMS Channel 2 (rev 07)
|
||||||
|
3a:0b.3 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 2 (rev 07)
|
||||||
|
3a:0c.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0c.1 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0c.2 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0c.3 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0c.4 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
3a:0c.5 System peripheral: Intel Corporation Sky Lake-E LM Channel 1 (rev 07)
|
||||||
|
3a:0c.6 System peripheral: Intel Corporation Sky Lake-E LMS Channel 1 (rev 07)
|
||||||
|
3a:0c.7 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 1 (rev 07)
|
||||||
|
3a:0d.0 System peripheral: Intel Corporation Sky Lake-E DECS Channel 2 (rev 07)
|
||||||
|
3a:0d.1 System peripheral: Intel Corporation Sky Lake-E LM Channel 2 (rev 07)
|
||||||
|
3a:0d.2 System peripheral: Intel Corporation Sky Lake-E LMS Channel 2 (rev 07)
|
||||||
|
3a:0d.3 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 2 (rev 07)
|
||||||
|
5d:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
5d:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
5d:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
5d:0e.0 Performance counters: Intel Corporation Sky Lake-E KTI 0 (rev 07)
|
||||||
|
5d:0e.1 System peripheral: Intel Corporation Sky Lake-E UPI Registers (rev 07)
|
||||||
|
5d:0f.0 Performance counters: Intel Corporation Sky Lake-E KTI 0 (rev 07)
|
||||||
|
5d:0f.1 System peripheral: Intel Corporation Sky Lake-E UPI Registers (rev 07)
|
||||||
|
5d:12.0 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
5d:12.1 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
5d:12.2 System peripheral: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
5d:15.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
5d:15.1 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
5d:16.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
5d:16.1 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
5d:16.4 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
5d:16.5 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
80:05.0 System peripheral: Intel Corporation Sky Lake-E MM/Vt-d Configuration Registers (rev 07)
|
||||||
|
80:05.2 System peripheral: Intel Corporation Sky Lake-E RAS (rev 07)
|
||||||
|
80:05.4 PIC: Intel Corporation Sky Lake-E IOAPIC (rev 07)
|
||||||
|
80:08.0 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
80:08.1 Performance counters: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
80:08.2 System peripheral: Intel Corporation Sky Lake-E Ubox Registers (rev 07)
|
||||||
|
85:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
85:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
85:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
85:08.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:08.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:09.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:09.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.4 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.5 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.6 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0e.7 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0f.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:0f.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:1d.0 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:1d.1 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:1d.2 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:1d.3 System peripheral: Intel Corporation Sky Lake-E CHA Registers (rev 07)
|
||||||
|
85:1e.0 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.1 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.2 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.3 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.4 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.5 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
85:1e.6 System peripheral: Intel Corporation Sky Lake-E PCU Registers (rev 07)
|
||||||
|
ae:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
ae:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
ae:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
ae:08.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:09.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.1 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.2 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.3 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.4 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0a.5 System peripheral: Intel Corporation Sky Lake-E LM Channel 1 (rev 07)
|
||||||
|
ae:0a.6 System peripheral: Intel Corporation Sky Lake-E LMS Channel 1 (rev 07)
|
||||||
|
ae:0a.7 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 1 (rev 07)
|
||||||
|
ae:0b.0 System peripheral: Intel Corporation Sky Lake-E DECS Channel 2 (rev 07)
|
||||||
|
ae:0b.1 System peripheral: Intel Corporation Sky Lake-E LM Channel 2 (rev 07)
|
||||||
|
ae:0b.2 System peripheral: Intel Corporation Sky Lake-E LMS Channel 2 (rev 07)
|
||||||
|
ae:0b.3 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 2 (rev 07)
|
||||||
|
ae:0c.0 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0c.1 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0c.2 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0c.3 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0c.4 System peripheral: Intel Corporation Sky Lake-E Integrated Memory Controller (rev 07)
|
||||||
|
ae:0c.5 System peripheral: Intel Corporation Sky Lake-E LM Channel 1 (rev 07)
|
||||||
|
ae:0c.6 System peripheral: Intel Corporation Sky Lake-E LMS Channel 1 (rev 07)
|
||||||
|
ae:0c.7 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 1 (rev 07)
|
||||||
|
ae:0d.0 System peripheral: Intel Corporation Sky Lake-E DECS Channel 2 (rev 07)
|
||||||
|
ae:0d.1 System peripheral: Intel Corporation Sky Lake-E LM Channel 2 (rev 07)
|
||||||
|
ae:0d.2 System peripheral: Intel Corporation Sky Lake-E LMS Channel 2 (rev 07)
|
||||||
|
ae:0d.3 System peripheral: Intel Corporation Sky Lake-E LMDP Channel 2 (rev 07)
|
||||||
|
d7:05.0 System peripheral: Intel Corporation Sky Lake-E VT-d (rev 07)
|
||||||
|
d7:05.2 System peripheral: Intel Corporation Sky Lake-E RAS Configuration Registers (rev 07)
|
||||||
|
d7:05.4 PIC: Intel Corporation Sky Lake-E IOxAPIC Configuration Registers (rev 07)
|
||||||
|
d7:0e.0 Performance counters: Intel Corporation Sky Lake-E KTI 0 (rev 07)
|
||||||
|
d7:0e.1 System peripheral: Intel Corporation Sky Lake-E UPI Registers (rev 07)
|
||||||
|
d7:0f.0 Performance counters: Intel Corporation Sky Lake-E KTI 0 (rev 07)
|
||||||
|
d7:0f.1 System peripheral: Intel Corporation Sky Lake-E UPI Registers (rev 07)
|
||||||
|
d7:12.0 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
d7:12.1 Performance counters: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
d7:12.2 System peripheral: Intel Corporation Sky Lake-E M3KTI Registers (rev 07)
|
||||||
|
d7:15.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
d7:15.1 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
d7:16.0 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
d7:16.1 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
d7:16.4 System peripheral: Intel Corporation Sky Lake-E M2PCI Registers (rev 07)
|
||||||
|
d7:16.5 Performance counters: Intel Corporation Sky Lake-E DDRIO Registers (rev 07)
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
查看更信息的信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lspci -v 或者 lspci -vv
|
||||||
|
```
|
||||||
|
|
||||||
|
如果要查看设备树
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lspci -t
|
||||||
|
```
|
||||||
|
|
||||||
|
### usb
|
||||||
|
|
||||||
|
查看usb信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lsusb
|
||||||
|
|
||||||
|
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
|
||||||
|
Bus 001 Device 004: ID 1604:10c0 Tascam Dell Integrated Hub
|
||||||
|
Bus 001 Device 003: ID 1604:10c0 Tascam Dell Integrated Hub
|
||||||
|
Bus 001 Device 002: ID 1604:10c0 Tascam Dell Integrated Hub
|
||||||
|
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
lsusb -t 查看系统中的usb拓扑
|
||||||
|
|
||||||
|
```she
|
||||||
|
lsusb -t
|
||||||
|
|
||||||
|
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
|
||||||
|
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|
||||||
|
|__ Port 14: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|
||||||
|
|__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|
||||||
|
|__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
lsusb -v 查看系统中usb设备的详细信息
|
||||||
|
|
||||||
|
```shell
|
||||||
|
lsusb -v
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Windows Linux子系统
|
## Windows Linux子系统
|
||||||
|
|
||||||
### WSL2
|
### WSL2
|
||||||
@ -1330,6 +1940,8 @@ sudo firewall-cmd --reload
|
|||||||
|
|
||||||
## 安装 Redis
|
## 安装 Redis
|
||||||
|
|
||||||
|
### dnf 方式
|
||||||
|
|
||||||
在安装Redis之前,运行下面的命令来重建软件包缓存并获得最新版本的软件包信息。
|
在安装Redis之前,运行下面的命令来重建软件包缓存并获得最新版本的软件包信息。
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -1359,6 +1971,23 @@ redis-server
|
|||||||
|
|
||||||
下面的输出确认Redis正在运行并被启用,这意味着它将在系统启动时自动运行。
|
下面的输出确认Redis正在运行并被启用,这意味着它将在系统启动时自动运行。
|
||||||
|
|
||||||
|
### source 方式
|
||||||
|
|
||||||
|
```shell
|
||||||
|
wget https://download.redis.io/releases/redis-6.2.14.tar.gz?_gl=1*5gj06y*_gcl_au*NjUxNzAyNzkwLjE3MjQwNDc0OTc.
|
||||||
|
|
||||||
|
tar -zxvf redis-6.2.14.tar.gz
|
||||||
|
cd redis-6.2.14.tar.gz
|
||||||
|
# 编译并且安装,默认安装在/usr/local/bin/
|
||||||
|
make && make install
|
||||||
|
# 编译并且指定安装目录
|
||||||
|
make && make PREFIX=/test/www/server/redis-6.2.14 install
|
||||||
|
# 测试
|
||||||
|
make test
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### 配置Redis
|
### 配置Redis
|
||||||
|
|
||||||
使用下面的vim编辑器命令打开Redis配置文件"/etc/redis.conf"。
|
使用下面的vim编辑器命令打开Redis配置文件"/etc/redis.conf"。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user