35 解决单条链路故障问题-华三链路聚合

news2024/12/25 2:34:30

InLoopBack接口是一种虚拟接口。InLoopBack接口由系统自动创建,用户不能进行配置和删除,但是可以显示,其物理层和链路层协议永远处于up状态。InLoopBack接口主要用于配合实现报文的路由和转发,任何送到InLoopBack接口的IP报文都会被认为是送往设备本身的,设备将不再转发这些报文

一 在同一网段没有网关为啥能ping通

PC机配置信息

如果我中间的的链路断了,业务无法通过,这样可以吗?做为专业的网络工程师这样的操作不能发生的?

链路聚合的本质是提高网络的可靠性,模式分为静态模式和动态模式,一般采用动态模式

二 华三二层静态链路聚合

操作

命令

说明

进入系统视图

system-view

-

创建二层聚合接口,并进入二层聚合接口视图

interface bridge-aggregation interface-number

创建二层聚合接口后,系统将自动生成同编号的二层聚合组,且该聚合组缺省工作在静态聚合模式下

退回系统视图

quit

-

进入二层以太网接口视图

interface interface-type interface-number

多次执行此步骤可将多个二层以太网接口加入聚合组

将二层以太网接口加入聚合组

port link-aggregation group number

[SW1]interface  Bridge-Aggregation  ?

  <1-1024>  Bridge-Aggregation interface number

[SW1]interface  Bridge-Aggregation  4
[SW1-Bridge-Aggregation4]quit
[SW1]int range g1/0/4 to g1/0/7
[SW1-if-range]port link-aggregation  group  4
[SW1-if-range]port link-type  trunk
[SW1-if-range]port trunk  permit  vlan  all

[SW1]display  link-aggregation  summary 
Aggregation Interface Type: 
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle 
Aggregation Mode: S -- Static, D -- Dynamic 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 4e53-c0ce-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      S     None                    0         4           0           Shar 
[SW1]display  link-aggregation  ve
[SW1]display  link-aggregation  verbose 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing 
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual 
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
        D -- Synchronization, E -- Collecting, F -- Distributing,  
        G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation4
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
--------------------------------------------------------------------------------
  GE1/0/4          U       32768    1         
  GE1/0/5          U       32768    1         
  GE1/0/6          U       32768    1         
  GE1/0/7          U       32768    1         
[SW1]
[SW1]display  link-aggregation ?
  load-sharing  Link aggregation load sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       Display verbose information of link aggregation group

[SW1]display  link-aggregation 4
                               ^
 % Unrecognized command found at '^' position.
[SW1]

[SW1]dis
[SW1]display  li
[SW1]display  line
[SW1]display  link-aggregation ?
  load-sharing  Link aggregation load sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       Display verbose information of link aggregation group

[SW1]display  link-aggregation me
[SW1]display  link-aggregation member-port  ?
  >                    Redirect it to a file
  >>                   Redirect it to a file in append mode
  FortyGigE            FortyGigE interface
  GigabitEthernet      GigabitEthernet interface
  Ten-GigabitEthernet  Ten-GigabitEthernet interface
  |                    Matching output
  <cr>                 

[SW1]display  link-aggregation member-port  g
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/4
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/4: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 5 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/5
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/5: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 6 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/6
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/6: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 7 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation member-port  GigabitEthernet 1/0/7
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
       D -- Synchronization, E -- Collecting, F -- Distributing, 
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/7: 
Aggregate Interface: Bridge-Aggregation4
Port Number: 8 
Port Priority: 32768
Oper-Key: 1
[SW1]display  link-aggregation ?
  load-sharing  Link aggregation load sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       Display verbose information of link aggregation group

[SW1]display  link-aggregation su
[SW1]display  link-aggregation summary 
Aggregation Interface Type: 
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle 
Aggregation Mode: S -- Static, D -- Dynamic 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 4e53-c0ce-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      S     None                    0         4           0           Shar 
[SW1]display  link-aggregation ve
[SW1]display  link-aggregation verbose 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing 
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual 
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
        D -- Synchronization, E -- Collecting, F -- Distributing,  
        G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation4
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
--------------------------------------------------------------------------------
  GE1/0/4          U       32768    1         
  GE1/0/5          U       32768    1         
  GE1/0/6          U       32768    1         
  GE1/0/7          U       32768    1         

三 华三三层静态链路聚合

操作

命令

说明

进入系统视图

system-view

-

创建三层聚合接口,并进入三层聚合接口视图

interface route-aggregation interface-number

创建三层聚合接口后,系统将自动生成同编号的三层聚合组,且该聚合组缺省工作在静态聚合模式下

退回系统视图

quit

-

进入三层以太网接口视图

interface interface-type interface-number

多次执行此步骤可将多个三层以太网接口加入聚合组

将三层以太网接口加入聚合组

port link-aggregation group number

将接口的模式改为三层模式

[SW3]int
[SW3]interface  ra
[SW3]interface  range  g
[SW3]interface  range  GigabitEthernet  1/0/3 to g1/0/7
[SW3-if-range]po
[SW3-if-range]port li
[SW3-if-range]port link-ty
[SW3-if-range]port link-mo
[SW3-if-range]port link-mode  r
[SW3-if-range]port link-mode  route 
%Jul 13 23:09:53:420 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/3 changed to down.
%Jul 13 23:09:53:420 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to down.
%Jul 13 23:09:53:420 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/4 was notified a topology change.
%Jul 13 23:09:53:466 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:09:53:466 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/5 was notified a topology change.
%Jul 13 23:09:53:467 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:09:53:510 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:09:53:510 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/6 was notified a topology change.
%Jul 13 23:09:53:511 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:09:53:549 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:09:53:549 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:09:53:549 2024 SW3 STP/6/STP_NOTIFIED_TC: Instance 0's port GigabitEthernet1/0/7 was notified a topology change.
[SW3-if-range]%Jul 13 23:09:53:590 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:09:53:590 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:09:55:467 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:09:55:467 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:09:55:507 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:09:55:507 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:09:55:547 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/5 (IfIndex 6), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/5.

%Jul 13 23:09:55:549 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:09:55:549 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:09:55:591 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:09:55:591 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:09:55:626 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/7 changed to up.
%Jul 13 23:09:55:627 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to up.
%Jul 13 23:09:56:525 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/3 (IfIndex 4), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/3.

%Jul 13 23:09:56:526 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/4 (IfIndex 5), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/4.

%Jul 13 23:09:57:522 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/6 (IfIndex 7), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/6.

%Jul 13 23:09:57:523 2024 SW3 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port GigabitEthernet1/0/7 (IfIndex 8), neighbor's chassis ID is 4e54-0b64-0400, port ID is GigabitEthernet1/0/7.

配置三层静态链路聚合

[SW3]int
[SW3]interface  r
[SW3]interface  range
[SW3]interface  Route-Aggregation 55
[SW3-Route-Aggregation55]quit
[SW3]int
[SW3]interface  ra
[SW3]interface  range g
[SW3]interface  range GigabitEthernet 1/0/3 to g
[SW3]interface  range GigabitEthernet 1/0/3 to GigabitEthernet 1/0/7
[SW3-if-range]po
[SW3-if-range]port
[SW3-if-range]por
[SW3-if-range]port li
[SW3-if-range]port link-
[SW3-if-range]port link-aggregation g
[SW3-if-range]port link-aggregation group  55
%Jul 13 23:11:43:563 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to down.
[SW3-if-range]%Jul 13 23:11:43:563 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/3
%Jul 13 23:11:43:564 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/3 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:569 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/3 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/3/PHY_UPDOWN: Physical state on the interface Route-Aggregation55 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface Route-Aggregation55 changed to up.
%Jul 13 23:11:43:570 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/4
%Jul 13 23:11:43:570 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/4 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:575 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%Jul 13 23:11:43:576 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.
%Jul 13 23:11:43:577 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/5
%Jul 13 23:11:43:577 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/5 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:579 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to down.
%Jul 13 23:11:43:580 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/5 changed to up.
%Jul 13 23:11:43:580 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/6
%Jul 13 23:11:43:581 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/6 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:583 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to down.
%Jul 13 23:11:43:584 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/6 changed to up.
%Jul 13 23:11:43:584 2024 SW3 IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation55 is not supported on the member port GigabitEthernet1/0/7
%Jul 13 23:11:43:584 2024 SW3 LAGG/6/LAGG_ACTIVE: Member port GE1/0/7 of aggregation group RAGG55 changed to the active state.
%Jul 13 23:11:43:586 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to down.
%Jul 13 23:11:43:586 2024 SW3 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/7 changed to up.

[SW3-if-range]

简写

  1. [SW4]display  history-command
  2. [SW4 display  current-configuration
  3.  [SW4interface  Route-Aggregation  55
  4.  [SW4quit
  5. [SW4 int range  GigabitEthernet  1/0/3 to GigabitEthernet  1/0/7
  6.  [SW4port link-mo route
  7.  [SW4port link-aggregation group  55
  8.  [SW4quit
  9.  [SW4display  link-aggregation summary
  10.  [SW4display  link-aggregation verbose

四 华三二层动态链路聚合

[SW2]interface  Bridge-Aggregation  4
[SW2-Bridge-Aggregation4]display  this 
#
interface Bridge-Aggregation4
#
return
[SW2-Bridge-Aggregation4]link-aggregation  mode  dynamic 
[SW2-Bridge-Aggregation4]quit
[SW2]interface  range  GigabitEthernet  1/0/4 to GigabitEthernet 1/0/7
[SW2-if-range]display  this 
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan all
 combo enable fiber
 port link-aggregation group 4
#
return
[SW2-if-range]lacp  mode  passive 
[SW2]display  link-aggregation summary 
Aggregation Interface Type: 
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle 
Aggregation Mode: S -- Static, D -- Dynamic 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 4e53-c869-0200

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG4      D     0x8000, 0000-0000-0000  0         4           0           Shar 
[SW2]display  link-aggregation ve
[SW2]display  link-aggregation verbose 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing 
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual 
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
        D -- Synchronization, E -- Collecting, F -- Distributing,  
        G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation4
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 4e53-c869-0200
Local: 
  Port                Status  Priority Oper-Key  Flag
--------------------------------------------------------------------------------
  GE1/0/4             U       32768    1         {}
  GE1/0/5             U       32768    1         {}
  GE1/0/6             U       32768    1         {}
  GE1/0/7             U       32768    1         {}
Remote: 
  Actor               Partner Priority Oper-Key  SystemID               Flag   
--------------------------------------------------------------------------------
  GE1/0/4             5       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/5             6       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/6             7       32768    1         0x22  , 4e53-c0ce-0100 {G}
  GE1/0/7             8       32768    1         0x22  , 4e53-c0ce-0100 {G}
[SW2]

五 华三 三层动态链路聚合


[SW3-Route-Aggregation55]display  this 
#
interface Route-Aggregation55
#
return
[SW3-Route-Aggregation55]link-aggregation  mode  dynamic 
[SW3-Route-Aggregation55]quit
[SW3]int range  GigabitEthernet 1/0/3 to  GigabitEthernet 1/0/7
[SW3-if-range]lacp  mode  passive 
[SW3-if-range]display  this 
#
interface GigabitEthernet1/0/3
 port link-mode route
 combo enable fiber
 lacp mode passive
 port link-aggregation group 55
#

[SW4]interface  ra
[SW4]interface  range  g
[SW4]interface  range  GigabitEthernet 1/0/3 to g
[SW4]interface  range  GigabitEthernet 1/0/3 to GigabitEthernet 1/0/7
[SW4-if-range]dis
[SW4-if-range]display  th
[SW4-if-range]display  this 
#
interface GigabitEthernet1/0/3
 port link-mode route
 combo enable fiber
 port link-aggregation group 55
#
return
[SW4-if-range]la
[SW4-if-range]lacp  mo
[SW4-if-range]lacp  mode  pa
[SW4-if-range]lacp  mode  passive 

[SW4-if-range]display  link-aggregation verbose 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing 
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual 
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, 
        D -- Synchronization, E -- Collecting, F -- Distributing,  
        G -- Defaulted, H -- Expired

Aggregate Interface: Route-Aggregation55
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 4e54-0b64-0400
Local: 
  Port                Status  Priority Oper-Key  Flag
--------------------------------------------------------------------------------
  GE1/0/3             S       32768    1         {CDEFG}
  GE1/0/4             U       32768    1         {CG}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1924544.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Linux系统编程之基础I/O

一、C文件接口 1、hello.c写文件 #include <stdio.h> #include <string.h>int main() {FILE *fp fopen("myfile", "w");if(!fp){printf("fopen error!\n");}const char *msg "hello bit!\n";int count 5;while(count-…

LabVIEW学习-LabVIEW储存Excel表格

上述实现了将格式化的时间和正弦波的频率振幅相位以及正弦波数据输入到excel表格中。 下面介绍其中使用到的函数&#xff1a; 1. 所在位置&#xff0c;函数选板->定时->获取日期/时间(秒) 2. 将获取的时间进行格式化处理&#xff0c;输出格式化的日期/时间字符串。 函…

通过Bugly上报的日志查找崩溃闪退原因

第一步&#xff0c;解析堆栈信息 在bugly上收集到的信息是这样的 0x000000010542e46c 0x0000000104db4000 6792300 OS应用发生崩溃时&#xff0c;系统会生成一份崩溃日志&#xff0c;这份日志中包含了崩溃时的堆栈信息&#xff0c;但这些堆栈信息并非直接指向源代码&#x…

C# Winform布局控件的几种方式

在 C# WinForms 应用程序中&#xff0c;布局控件和布局管理器可以帮助开发者创建响应式的用户界面&#xff0c;即使在窗口大小改变时也能保持控件的正确位置和尺寸。 通常我们采用Panel和Dock&#xff0c;辅助Anchor实现类似如下的布局。 以下是几种常见的布局控件和方法&…

实用机器学习(快速入门)

前言 因为需要机器学习的助力&#xff0c;所以&#xff08;浅浅&#xff09;进修了一下。现在什么东西和AI结合一下感觉就好发文章了&#xff1b;我看了好多学习视频&#xff0c;发现机器学习实际上是数学&#xff0c;并不是常规的去学习代码什么的&#xff08;虽然代码也很简…

技术周总结 2024.07.08~07.14(算法,Python,Java,Scala,PHP)

文章目录 一、07.13 周六1.0&#xff09;算法题&#xff1a;字符串中的单词反转1.1&#xff09; 问题01:可靠性计算中的MTTR MTTF MTBF 分别指什么&#xff1f;他们之间有什么联系&#xff1f;MTTR (Mean Time to Repair)MTTF (Mean Time to Failure)MTBF (Mean Time Between F…

解决:Failed to load PostCSS config: Failed to load PostCSS config

报错信息&#xff1a; [Failed to load PostCSS config: Failed to load PostCSS config (searchPath: D:/project/vite-vue-project): [Error] Must use import to load ES Module: D:\project\vite-vue-project\postcss.config.ts require() of ES modules is not supported…

从零编写一个神经网络完成手写数字的识别分类(pytorch实现)

1. 前言 很多人都有这样的困惑&#xff1a; “我已经看过很多有关神经网络的书和视频了&#xff0c;但为什么感觉还是似懂非懂呢&#xff1f;” 那是因为&#xff0c;你从来都没有完整的、从头编写并训练过一个神经网络 学习AI相关的算法&#xff0c;尤其是深度学习方向&…

【原创】springboot+mysql小区疫情防控网站设计与实现

个人主页&#xff1a;程序猿小小杨 个人简介&#xff1a;从事开发多年&#xff0c;Java、Php、Python、前端开发均有涉猎 博客内容&#xff1a;Java项目实战、项目演示、技术分享 文末有作者名片&#xff0c;希望和大家一起共同进步&#xff0c;你只管努力&#xff0c;剩下的交…

搭建hadoop+spark完全分布式集群环境

目录 一、集群规划 二、更改主机名 三、建立主机名和ip的映射 四、关闭防火墙(master,slave1,slave2) 五、配置ssh免密码登录 六、安装JDK 七、hadoop之hdfs安装与配置 1)解压Hadoop 2)修改hadoop-env.sh 3)修改 core-site.xml 4)修改hdfs-site.xml 5) 修改s…

2、ASPX、.NAT(环境/框架)安全

ASPX、.NAT&#xff08;环境/框架&#xff09;安全 源自小迪安全b站公开课 1、搭建组合&#xff1a; WindowsIISaspxsqlserver .NAT基于windows C开发的框架/环境 对抗Java xx.dll <> xx.jar 关键源码封装在dll文件内。 2、.NAT配置调试-信息泄露 功能点&#xf…

Docker 容器内的php 安装redis扩展

1、https://pecl.php.net/package/redis 下载redis扩展 2、解压redis扩展包&#xff0c;然后通过命令拷贝到php容器 docker cp ~/nginx/redis-4.3.0/* myphp-fpm:/usr/src/php/ext/redis/ myphp-fpm是你的php容器 &#xff5e;/nginx/redis**** 是redi扩展包路径 3、进入php容…

jenkins系列-09.jpom构建java docker harbor

本地先启动jpom server agent: /Users/jelex/Documents/work/jpom-2.10.40/server-2.10.40-release/bin jelexjelexxudeMacBook-Pro bin % sh Server.sh start/Users/jelex/Documents/work/jpom-2.10.40/agent-2.10.40-release/bin jelexjelexxudeMacBook-Pro bin % ./Agent.…

单元测试实施最佳方案(背景、实施、覆盖率统计)

1. 什么是单元测试&#xff1f; 对于很多开发人员来说&#xff0c;单元测试一定不陌生 单元测试是白盒测试的一种形式&#xff0c;它的目标是测试软件的最小单元——函数、方法或类。单元测试的主要目的是验证代码的正确性&#xff0c;以确保每个单元按照预期执行。单元测试通…

mysql-联合查询

一.联合查询的概念 .对于unio查询,就是把多次查询的结果合并起来,形成一个新的查询果集。 SELECT 字段列表 FROM 表A... UNION[ALL] SELECT 字段列表 FROM 表B...&#xff0c; 二.将薪资低于5000的员工,和年龄大于50岁的员工全部查询出来 select * from emp where salary&…

Vulnhub靶场 | DC系列 - DC2

目录 环境搭建渗透测试 环境搭建 靶机镜像下载地址&#xff1a;https://vulnhub.com/entry/dc-2,311/需要将靶机和 kali 攻击机放在同一个局域网里&#xff1b;本实验kali 的 IP 地址&#xff1a;192.168.10.146。 渗透测试 使用 nmap 扫描 192.168.10.0/24 网段存活主机 …

window下安装go环境

一、go官网下载安装包 官网地址如下&#xff1a;https://golang.google.cn/dl/ 选择对应系统的安装包&#xff0c;这里是window系统&#xff0c;可以选择zip包&#xff0c;下载完解压就可以使用 二、配置环境变量 这里的截图配置以win11为例 我的文件解压目录是 D:\Software…

【进阶篇-Day9:JAVA中单列集合Collection、List、ArrayList、LinkedList的介绍】

目录 1、集合的介绍1.1 概念1.2 集合的分类 2、单列集合&#xff1a;Collection2.1 Collection的使用2.2 集合的通用遍历方式2.2.1 迭代器遍历&#xff1a;&#xff08;1&#xff09;例子&#xff1a;&#xff08;2&#xff09;迭代器遍历的原理&#xff1a;&#xff08;3&…

Halcon机器视觉15种缺陷检测案例_2不均匀表面刮伤检测

2&#xff1a; 不均匀表面刮伤检测 思路 1、获取图像 2、分割图像 3、处理区域 4、获取大&#xff0c;小缺陷 效果 原图 代码 *02 不均匀表面刮伤检测 dev_update_off () dev_close_window ()*****************第一步 获取图像******************* read_image (Image, 2.不…

集成excel工具:自定义导入回调监听器、自定义类型转换器、web中的读

文章目录 I 封装导入导出1.1 定义工具类1.2 自定义读回调监听器: 回调业务层处理导入数据1.3 定义文件导入上下文1.4 定义回调协议II 自定义转换器2.1 自定义枚举转换器2.2 日期转换器2.3 时间、日期、月份之间的互转2.4 LongConverterIII web中的读3.1 使用默认回调监听器3.2…