分类 技术 中的文章

git强制pull

版权声明:本文为CSDN博主「我想要身体健康」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上> 原文出处链接及本声明。 原文链接:https://blog.csdn.net/m0_57236802/article/details/131249491 如果你想强制 git pull 来覆盖本……

阅读全文

GMP

非原创 好文:https://yizhi.ren/2019/06/03/goscheduler 参考:https://blog.csdn.net/xmcy001122/article/details/119392934 Go 语言的协程 goroutine Go 为了提供更容易使用的并发方法,使用了 goroutine 和 chann……

阅读全文

centos检测新的硬盘

如下命令向所有的SCSI主机发送一个扫描请求,可以帮助系统重新检测新添加的硬盘。 1 2 3 [root@compute1 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan [root@compute1 ~]# echo "- - -" > /sys/class/scsi_host/host1/scan [root@compute1 ~]# echo "- - -" > /sys/class/scsi_host/host2/scan……

阅读全文

如何解决虚拟机断电重启后进入紧急模式的问题

现象 系统文件损坏后进入紧急修复模式,无法进行维护工作 welcome to emergency mode!after logging in ,type “journalctl -xb” to view system logs,“systemctl reboot” to reboot ,“systemctl default” to try again to boot into default mode。 give root password for maintenance 查看运行日志,发现是/home目……

阅读全文

go server退出

go server以相当优雅的姿势退出(待继续完善) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 package main import ( "context" "fmt" "log" "net/http" "os" "os/signal" "syscall" "time" ) type H struct{} func (H) ServeHTTP(w http.ResponseWriter, r……

阅读全文

eBPF入门

〉 搬运自:https://blog.csdn.net/lianhunqianr1/article/details/124977297 eBPF特性 eBPF程序都是事件驱动的,他们会在内核或者应用程序经过某个确定的Hook点的时候运行,这些Hook点都是提前定义的,包括系统调用、函数……

阅读全文

Calico容器网络

简介 Calico是一个基于BGP的纯三层的网络方案,与OpenStack,Kubernetes,AWS,GCE等云平台都能够良好地集成. Calico在每个计算节点利用Linux kernel实现了一个高效的vrouter来负责转发.每个vrouter通过BGP1协议把在本节点上运行……

阅读全文

conntrack相关字段

参考连接conntrack OVS supports following match fields related to conntrack: ct_state: The state of a connection matching the packet. 可能的值有: 1 2 3 4 5 6 7 8 new est rel rpl inv trk snat dnat 上述字段 如果前面有+号, 则说明是必须设置的标记; 如果前面有-号, 则说明必须取消的标记. 同样也支持多个字段同时设置, 例如 ct_state=+trk+new 参考ovs-fields了解更多 ct_zone:16bi……

阅读全文