上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: # python操作pgsql备份还原 common.py ```python #!/usr/bin/env python # encoding: utf-8 import argparse dbs = [ "test1", "test2" ] # ct: pgsql容器的名称 ct = "pg" 阅读全文
posted @ 2022-06-07 11:29 蒲公英PGY 阅读(250) 评论(0) 推荐(0) 编辑
摘要: # python使用FastAPI返回简单html页面 ```python # pip install uvicorn prometheus_client # pip install fastapi yaml # uvicorn main:app --reload from fastapi impo 阅读全文
posted @ 2022-06-07 11:16 蒲公英PGY 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: # python 调用dingding的API进行消息发送 使用python的fastapi快速构建后端api接口 ```python # pip install fastapi requests uvicorn from typing import Set from fastapi import 阅读全文
posted @ 2022-06-07 11:11 蒲公英PGY 阅读(272) 评论(0) 推荐(0) 编辑
摘要: # python 调用Jenkins的API进行发布 ```python # pip install pyyaml==5.4.1 import json import requests,sys,os,time import requests,sys from requests.auth import 阅读全文
posted @ 2022-06-07 11:05 蒲公英PGY 阅读(218) 评论(0) 推荐(0) 编辑
摘要: - hosts: test remote_user: root gather_facts: false vars: ansible_python_interpreter: /usr/bin/python3 #指定python环境 serial: "50%" #更新比例,或者是具体数量serial:1 阅读全文
posted @ 2022-06-07 10:56 蒲公英PGY 阅读(91) 评论(0) 推荐(0) 编辑
摘要: apiVersion: apps/v1 kind: Deployment metadata: name: deploy-service # deployment名称 namespace: test annotations: kubernetes.io/change-cause: "1.0" # 版本 阅读全文
posted @ 2022-06-07 10:51 蒲公英PGY 阅读(129) 评论(0) 推荐(0) 编辑
摘要: # 前端发布脚本 ``` pipeline { agent any tools { jdk 'java17' //指定java版本 } environment { git_url = 'http://192.168.1.2/web/test.git' deployenv = 'test' //部署环 阅读全文
posted @ 2022-06-07 10:46 蒲公英PGY 阅读(407) 评论(0) 推荐(0) 编辑
摘要: ```python # pip3 install requests import requests,sys,os,time from requests.packages import urllib3 urllib3.disable_warnings() def get_tags (base_url, 阅读全文
posted @ 2022-06-07 10:18 蒲公英PGY 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1、安装ocserv ocserv 已经在 epel 仓库中提供了,所以可以直接通过 yum 安装 [root@linux-node4 ~]# yum -y install epel-release [root@linux-node4 ~]# yum -y install ocserv 2、证书制作 阅读全文
posted @ 2022-06-06 18:11 蒲公英PGY 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ```python # pip install uvicorn # pip install fastapi # uvicorn main:app --reload # pip install ruamel.yaml from fastapi import FastAPI from fastapi.r 阅读全文
posted @ 2022-06-06 17:49 蒲公英PGY 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页