摘要: 1、虚拟网络名称空间基本操作命令 # 查看pod接口与网络名称空间对应关系 ip link show type veth 8: cali2f982d35f9d@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1480 qdisc noqueue state UP 阅读全文
posted @ 2025-06-03 09:45 風£飛 阅读(21) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = from itertools import zip_longest from itertools import chain # 并行遍历多个序列 names = ['Alice', 阅读全文
posted @ 2025-05-13 17:03 風£飛 阅读(6) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # -d:指定可访问的目录,一般用于从服务器下载文件到本地 # 启动一个简易版本http服务:python3 -m http.server 8000 -d /var/log # 返 阅读全文
posted @ 2025-04-17 15:18 風£飛 阅读(17) 评论(0) 推荐(0)
摘要: 一、基本操作 #!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = import sqlite3 # Python自2.5版本开始内置sqlite3模块,无需额外安装 print(sqlite3.version) # 输出模块版本 p 阅读全文
posted @ 2025-04-02 14:26 風£飛 阅读(21) 评论(0) 推荐(0)
摘要: 1、使用Docker部署WebSSH docker run -d --name=webssh -p 8888:8888 --restart unless-stopped jumploop/webssh:latest # -d:表示让容器在后台运行 # --name:为容器命名为 webssh # - 阅读全文
posted @ 2025-03-18 16:38 風£飛 阅读(25) 评论(0) 推荐(0)
摘要: #!/bin/bash TITLE="Linux系统管理程序" #LOGFILE="/var/log/system_status.log" # 查询CPU使用率 function cpu_usage() { #echo " CPU 使用情况 " >> $LOGFILE #top -bn1 | gre 阅读全文
posted @ 2025-02-11 11:22 風£飛 阅读(17) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # pip install wxauto # pip install schedule # pip install itchat 该模块已不能使用 """ import sched 阅读全文
posted @ 2025-02-07 14:00 風£飛 阅读(34) 评论(0) 推荐(0)
摘要: CentOS7安装openvswitch yum install epel-release -y wget --no-check-certificate https://www.openvswitch.org/releases/openvswitch-2.11.1.tar.gz # 生成rpmbui 阅读全文
posted @ 2024-12-03 17:24 風£飛 阅读(122) 评论(0) 推荐(0)
摘要: 1、使用theading模块实现 # !/usr/bin/env python3 # -*- coding:utf-8 -*- # __author__ = import subprocess, json, os import threading, queue kubectl_cmd = '/usr 阅读全文
posted @ 2024-11-13 09:31 風£飛 阅读(24) 评论(0) 推荐(0)
摘要: 常用示例 # 取消双引号 echo '{"OPT_STATUS": "SUCCESS","DATA": {"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni","expires_in": 3600,"token_type": "password", 阅读全文
posted @ 2024-09-13 09:42 風£飛 阅读(76) 评论(0) 推荐(0)