上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 1、执行原生SQL from sqlalchemy import create_engine, text # 创建engine对象 engine = create_engine("sqlite:///demo.db", echo=False) with engine.connect() as con 阅读全文
posted @ 2023-09-07 15:56 風£飛 阅读(52) 评论(0) 推荐(0)
摘要: 1、html模板,文件名为:template.html <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Title</t 阅读全文
posted @ 2023-09-01 15:04 風£飛 阅读(174) 评论(0) 推荐(0)
摘要: #!/bin/python # -*- coding: utf-8 -*- import pandas as pd import requests, time, re def getcolumn(status, x): if float(status) < 80: return "正常" # eli 阅读全文
posted @ 2023-08-28 17:25 風£飛 阅读(159) 评论(0) 推荐(0)
摘要: 1、hostpath方式 # hostpath挂载方式 apiVersion: apps/v1 kind: Deployment metadata: labels: app: grafana name: grafana spec: selector: matchLabels: app: grafan 阅读全文
posted @ 2023-08-23 16:34 風£飛 阅读(117) 评论(0) 推荐(0)
摘要: 一、Kubeadm部署k8s单master集群1、配置hosts cat >> /etc/hosts << EOF 192.168.140.129 master 192.168.140.130 node1 192.168.140.131 node2 185.199.109.133 raw.githu 阅读全文
posted @ 2023-08-21 15:49 風£飛 阅读(455) 评论(0) 推荐(1)
摘要: #!/usr/bin/python3.8 # -*- coding:utf-8 -*- # __author__ = 'Qiushi Huang' import optparse # sys.argv的功能类似 # python ftp_client.py -h 192.168.22.33 -p 8 阅读全文
posted @ 2023-08-18 09:12 風£飛 阅读(23) 评论(0) 推荐(0)
摘要: 1、环境准备 yum -y install epel-release yum -y install sqlite sqlite-devel yum -y install python-pip pip install --upgrade setuptools yum list available py 阅读全文
posted @ 2023-08-16 13:02 風£飛 阅读(650) 评论(0) 推荐(0)
摘要: 一、安装grafana [root@loki ~]# yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.0.0-1.x86_64.rpm二、安装loki[root@loki ~]# wget 阅读全文
posted @ 2023-07-19 14:03 風£飛 阅读(466) 评论(0) 推荐(0)
摘要: #!/usr/bin/python3.8 # -*- coding:UTF-8 -*- import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from concurren 阅读全文
posted @ 2023-06-14 15:59 風£飛 阅读(58) 评论(0) 推荐(0)
摘要: 5.x版本脚本 var Wechat = { token: null, to: null, message: null, parse_mode: null, sendMessage: function() { var params = { msgtype: "markdown", chat_id: 阅读全文
posted @ 2023-03-16 14:56 風£飛 阅读(175) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 18 下一页