redis集群搭建 https://www.didispace.com/installation-guide/middleware/redis-cluster.html#%E7%BB%A7%E6%89%BF%E6%93%8D%E4%BD%9C
nginx xx FROM python:3.10.9-alpine3.16WORKDIR /haitun_cmdbCOPY . /haitun_cmdbRUN echo “https://mirrors.aliyun.com/alpine/v3.14/main” > /etc/apk/repositories && \echo “https://mirrors.aliyun.com/alpine/v3.14/community” >> /etc/apk/repositorie
k8s configmap --from-file使用方式 创建字符串创建kubectl create configmap myconfigmap --from-literal=config1=xxx --from-literal=config2=yyy导入文件创建kubectl create configmap myconfigmap --from-file=./config1 --from-file=./config2–from-env-file 这个就不介绍了不好用效果目录挂载使用文件挂载使用...
基于jenkins+github+ansible实现cicd发布nodejs篇 由于没有vm虚拟机因此用docker代替启动两个docker带有ssh服务的 docker run --name nginx -p80:80 -d nginx docker run --name --privileged=true jenkins -p2020:22 -p8080:8080 -itd tutum/centos docker run --name nginx -p2021:22 -p80:80 -itd tutum/centos echo "HostKeyA
使用python实现服务器下载功能 #!/usr/bin/env python3#!coding:utf-8# author : huangchengwu# describe : 用于接收新资源下载后进行上传objimport geventfrom gevent import monkeymonkey.patch_all()import osimport sysimport timeimport requestsfrom obs import ObsClientimport shutilfrom collection
使用python简单实现webshell 服务器代码#-*- encoding:utf-8 -*- #author: zhiminliu import tornado.web import tornado.websocket import tornado.httpserver import tornado.ioloop import paramikoimport timeimport socketimport sysimport threadingimport Queueimport jsonclass
python将内存数据压缩成zip # !user/bin/env python3# -*-coding : utf-8 -*-import zipfilefrom io import BytesIOimport osclass InMemoryZIP(object): def __init__(self): # create the in-memory file-like object self.in_memory_zip = BytesIO() def append(sel