摘要: #!/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 風£飛 阅读(9) 评论(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 風£飛 阅读(22) 评论(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 風£飛 阅读(82) 评论(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 風£飛 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 常用示例 # 取消双引号 echo '{"OPT_STATUS": "SUCCESS","DATA": {"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni","expires_in": 3600,"token_type": "password", 阅读全文
posted @ 2024-09-13 09:42 風£飛 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 一、常用软件包安装 # 安装epel源 yum -y install epel-release # 安装常用软件包 yum -y install wget vim bash-completion lrzsz nmap telnet tree net-tools bind-utils lsof 二、修 阅读全文
posted @ 2024-07-26 09:23 風£飛 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1、复制以下注册码内容,保存为rarreg.key文件,将保存的rarreg.key文件复制到winrar安装目录注册码1 RAR registration data Admin Unlimited Company License UID=1d7426b0b166c91c21ab 641221225 阅读全文
posted @ 2024-06-11 16:37 風£飛 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、转换python字典类型为dataframe # !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # pandas >= 1.5.3 import pandas as pd pydict = {'Dosage': '1.1.1 阅读全文
posted @ 2024-03-27 11:14 風£飛 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1、BCLinux卸载license模块 rpm -qa | grep license rpm -e --nodeps bclinux-license-manager-4.0-1.oe1.bclinux.x86_64 --noscripts yum clean all && yum makecach 阅读全文
posted @ 2024-01-30 11:27 風£飛 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 网络流量实时速率是如何计算的? 首先我们要知道网络流量实时带宽是如何计算出来的,我们先拿接口流入流量来举例子。通过SNMP的ifInOctets键值,我们可以获取到接口流入数据量的累计总量。那么如果我们想要计算流入流量的带宽速率,只需要固定一个时间间隔(比如30s),在前后分别获取一次累计总量,再计 阅读全文
posted @ 2023-11-07 09:35 風£飛 阅读(335) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示