-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### jaeger | ||
|
||
- [Jaeger 最全详解](https://mikechen.cc/32479.html) | ||
|
||
### Prometheus | ||
|
||
- [知乎-Prometheus 简介](https://zhuanlan.zhihu.com/p/467438139) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Linux ip 命令 | ||
|
||
ip 命令来自 iproute 软件包,软件包提供了很多命令(rpm -ql iproute |grep bin),如 ss 命令、bridge,这些命令可以完全替代 ifconfig、netstat、route 等命令。 | ||
|
||
ip 命令有很多子命令,可以通过 man ip 查看 | ||
|
||
link | address | addrlabel | route | rule | neigh | ntable | tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm | netns | l2tp | tcp_metrics | | ||
token | macsec | ||
|
||
### ip netns | ||
|
||
查看所有网络命名空间,用于隔离网络 | ||
|
||
### ip address | ||
|
||
address 可以简写为 a 或 ad 或 add 或 addr | ||
|
||
查看 ip | ||
|
||
### ip route | ||
|
||
route 可以简写为 r 或 ro 或 rou | ||
|
||
查看路由 | ||
|
||
### ip link | ||
|
||
link 表示链路层。link 可以简写为 l 或 li 或 lin | ||
|
||
ip l:查看所有的网络设备(因为是链路层,所以只显示 MAC 地址,不显示 IP 地址)。其中,lo、ens33 等是真实的物理设备,通过 ip l add 命令创建的都是虚拟设备。 | ||
|
||
- [轻松理解 Docker 网络虚拟化基础之 veth 设备!](https://mp.weixin.qq.com/s/sSQFINJ8RO8Nc4XtcyQIjQ) | ||
- [25 张图,一万字,拆解 Linux 网络包发送过程](https://mp.weixin.qq.com/s?__biz=MjM5Njg5NDgwNA==&mid=2247485146&idx=1&sn=e5bfc79ba915df1f6a8b32b87ef0ef78&scene=21#wechat_redirect) | ||
- [图解 Linux 网络包接收过程](https://mp.weixin.qq.com/s?__biz=MjM5Njg5NDgwNA==&mid=2247484058&idx=1&sn=a2621bc27c74b313528eefbc81ee8c0f&scene=21#wechat_redirect) | ||
|
||
### ip neigh | ||
|
||
neigh 可以简写为 n 或 ne 或 nei | ||
|
||
ip n:查看内核中记录的 ARP 表(也就是链路层直连的主机的 IP 和 MAC 地址,不一定准确,需要之前连过)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Linux iptables 防火墙 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Linux netns | ||
|
||
### 参考 | ||
|
||
- [Linux netns 详解](https://zhuanlan.zhihu.com/p/293659403) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# unix pfctl 防火墙 | ||
|
||
iptables 是 Linux 下的防火墙,可以进行数据包的过滤,在网络层进行数据的转发、拦截或丢弃等,使用非常普遍,功能也非常强大。但是 Mac 下没有 iptables,为了实现流量转发和过滤,要使用到 Mac 自带的 PFctl。PFctl 即 control the packet filter,是 Unix LIKE 系统上进行 TCP/IP 流量过滤和网络地址转换的系统,也能提供流量整形和控制等 | ||
|
||
### 参考 | ||
|
||
- [pfctl](https://www.imydl.tech/linux-command/c/pfctl.html) | ||
- [识典百科-PF 防火墙](https://shidian.baike.com/wikiid/658345936018390300) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 并发模型 | ||
|
||
业界将如何实现并发编程总结归纳为各式各样的并发模型,常见的并发模型有以下几种: | ||
|
||
- 线程 & 锁模型 | ||
- Actor 模型 | ||
- CSP 模型 | ||
- Fork&Join 模型 | ||
|
||
### 线程 & 锁模型 | ||
|
||
### Actor 模型 | ||
|
||
### CSP 模型 | ||
|
||
CSP(communicating sequential processes) | ||
|
||
Go 语言中的并发程序主要是通过基于 CSP(communicating sequential processes)的 goroutine 和 channel 来实现,当然也支持使用传统的多线程共享内存的并发方式。 | ||
|
||
### Fork&Join 模型 |