摘要:
#!/bin/bash TITLE="Linux系统管理程序" #LOGFILE="/var/log/system_status.log" # 查询CPU使用率 function cpu_usage() { #echo " CPU 使用情况 " >> $LOGFILE #top -bn1 | gre 阅读全文
摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # pip install wxauto # pip install schedule # pip install itchat 该模块已不能使用 """ import sched 阅读全文
摘要:
CentOS7安装openvswitch yum install epel-release -y wget --no-check-certificate https://www.openvswitch.org/releases/openvswitch-2.11.1.tar.gz # 生成rpmbui 阅读全文
摘要:
1、使用theading模块实现 # !/usr/bin/env python3 # -*- coding:utf-8 -*- # __author__ = import subprocess, json, os import threading, queue kubectl_cmd = '/usr 阅读全文
摘要:
常用示例 # 取消双引号 echo '{"OPT_STATUS": "SUCCESS","DATA": {"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni","expires_in": 3600,"token_type": "password", 阅读全文
摘要:
一、常用软件包安装 # 安装epel源 yum -y install epel-release # 安装常用软件包 yum -y install wget vim bash-completion lrzsz nmap telnet tree net-tools bind-utils lsof 二、修 阅读全文
摘要:
1、复制以下注册码内容,保存为rarreg.key文件,将保存的rarreg.key文件复制到winrar安装目录注册码1 RAR registration data Admin Unlimited Company License UID=1d7426b0b166c91c21ab 641221225 阅读全文
摘要:
1、转换python字典类型为dataframe # !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # pandas >= 1.5.3 import pandas as pd pydict = {'Dosage': '1.1.1 阅读全文
摘要:
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 阅读全文
摘要:
网络流量实时速率是如何计算的? 首先我们要知道网络流量实时带宽是如何计算出来的,我们先拿接口流入流量来举例子。通过SNMP的ifInOctets键值,我们可以获取到接口流入数据量的累计总量。那么如果我们想要计算流入流量的带宽速率,只需要固定一个时间间隔(比如30s),在前后分别获取一次累计总量,再计 阅读全文