1 | lsblk |
1 | lsblk |
在物件導向程式設計(OOP)中,類別(class)之間的關係可以分為以下幾種類型:
1 | class Animal: |
1 | class Engine: |
1 | class Driver: |
1 | class Wheel: |
1 | class Printer: |
參考:
https://realpython.com/inheritance-composition-python/
Association,Aggregation,Composition and Inheritance的差異
https://itexpertsconsultant.wordpress.com/tag/class-diagram/
UML關係圖
https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-class-diagram-tutorial/
https://www.umlboard.com/docs/relations/
查看earlyoom停止的程式
1 | sudo journalctl -u earlyoom | grep sending |
參考:
https://github.com/rfjakob/earlyoom
https://zhangjk98.xyz/early-oom-and-oomd-for-out-of-memory/
Dockerfile中wget使用--no-check-certificate
1 | echo "check_certificate = off" >> ~/.wgetrc |
查看不同網段以外的流量
``bash
sudo iftop -F 10.179.3.0/24
參考:
https://blog.csdn.net/qq_35995514/article/details/136542702
https://cloud.tencent.com/developer/article/1827834
https://www.alibabacloud.com/help/en/ecs/support/query-and-case-analysis-of-linux-network-traffic-load
ffmpeg RTSP串流品質檢測
1 | ffmpeg -i rtsp://<伺服器IP>:<埠>/<路徑> -t 30 output.mp4 |
找出最近一次重啟時間
1 | last reboot| head -2 |
查詢/var/log下的各種log並且找到重啟前的錯誤,包含messages, syslog, dmesg, and kern.log
參考:
https://learnlinux.hashnode.dev/how-to-troubleshooting-unexpected-linux-server-reboot
Windows
1 | route -p add 10.179.101.0 mask 255.255.255.0 10.179.10.254 metric 10 |
Ubuntu
1 | sudo ip route add 10.179.2.0/24 via 10.179.20.254 dev enp75s0f1 |