运维笔记 掌握这些Python代码报错提示单词轻松帮你解决bug 1. syntaxerror: invalid syntax语法错误:无效语法1) syntax 语法、句法2) error 错误3) invalid 无效2. syntaxerror: unexpe... 02月19日 33 ℃ 发表评论 阅读全文
运维笔记 Python 200个标准库汇总 文本string:通用字符串操作re:正则表达式操作difflib:差异计算工具textwrap:文本填充unicodedata:Unicode字符数据库stringprep:互联网字符串准备工具re... 10月22日 432 ℃ 发表评论 阅读全文
运维笔记 Python3练习脚本 if else#!/usr/bin/python36 info={'A':'a.com','B':'b.com','... 06月05日 1,242 ℃ 发表评论 阅读全文
运维笔记 python3 处理office学习笔记 openpyxl模块 处理Excel表格pip install openpyxlopenpyxl.load_workbook() 接受文件get_sheet_names() 获取工作簿中所有表明的列表... 06月05日 1,915 ℃ 发表评论 阅读全文
运维笔记 python3爬虫笔记 从web抓取信息urllib模块 读取网页>>>import urllib.requset>>>page = urllib.... 06月05日 962 ℃ 发表评论 阅读全文
运维笔记 python3学习笔记 print(‘’):#打印字符串 shell实现方法:echoprint('hello',end='')return:返回值 input():#获... 06月05日 990 ℃ 发表评论 阅读全文
运维笔记 Kubernetes Volume emptyDiremptyDir 是最基础的 Volume 类型。① 文件最底部 volumes 定义了一个 emptyDir&n... 08月16日 1,678 ℃ 发表评论 阅读全文
运维笔记 Kubernetes Health Check Liveness探测启动进程首先创建文件 /tmp/healthy,30 秒后删除,在我们的设定中,如果 /tmp/healthy 文件存在,则认为容器处于正常... 08月16日 2,155 ℃ 发表评论 阅读全文
运维笔记 Kubernetes Services && Update 运行三个httpd镜像创建service① v1 是 Service 的 apiVersion。② 指明当前资源的类型为 Serv... 08月16日 1,316 ℃ 发表评论 阅读全文
运维笔记 Kubernetes 容器应用 1、运行Deploymentkubectl run nginx-deployment --image=nginx:1.7.9 --replicas=2 ... 07月27日 1,344 ℃ 发表评论 阅读全文
运维笔记 Kubernetes相关概念 Kubernetes最小kubernetes集群部署https://kubernetes.io/docs/tutorials/kubernetes-basics/create-cluster/clus... 07月27日 1,254 ℃ 发表评论 阅读全文
运维笔记 Linux Shell脚本练习 练习1:1、添加3个用户user1,user2,user3,先判断用户是否存在,不存在而后再添加2、显示当前系统上共有多少个用户#!/bin/bash for i in ... 07月19日 1,097 ℃ 发表评论 阅读全文
运维笔记 Dockerfile指令详解以及docker私有仓库 Docker镜像加速Ubuntu 16.04+、Debian 8+、CentOS 7对于使用 systemd 的系统,请在 /etc/doc... 07月18日 1,232 ℃ 发表评论 阅读全文
运维笔记 Docker Swarm集群 管理节点Manager# docker node ls 查看集群# docker swarm init 运行此命令&nb... 07月18日 1,038 ℃ 发表评论 阅读全文
运维笔记 docker compose官方编排项目 在Linux 64 位系统上直接下载对应的二进制包#curl -L https://github.com/docker/compose/releases/dow... 07月18日 986 ℃ 发表评论 阅读全文
运维笔记 Linux内存和CPU调优 CPU和内存调优Monitor:Process: 一个独立运行单位 系统资源:CPU时间,存储空间Process: 一个独立运行单位OS: VM CPU: 时间:切片 缓存:缓存当前程序数... 03月07日 3,640 ℃ 发表评论 阅读全文
运维笔记 企业级监控介绍 企业级监控SNMPRRDToolcacti展示时间序列数据NagiosSNMPnet-snmp(Agent) 被监控端net-snmp-utils(NMS:command) 监控端安装SNMP#yum... 03月06日 1,346 ℃ 发表评论 阅读全文
运维笔记 开源HTTP加速器Varnish 一、关于Varnish1、varnish系统架构varnish主要运行两个进程:Management进程和Child进程(也叫Cache进程)。Management进程主要实现应用新的配置、编译VCL... 03月06日 1,279 ℃ 发表评论 阅读全文
运维笔记 Httpd介绍以及httpd 2.4新特性 apacheNCSA , httpdA Patchy Server =apacheFSF: GUN , GPLASF: Apache Software Foundationweb: htt... 03月05日 1,733 ℃ 发表评论 阅读全文
运维笔记 SELinux相关介绍 Security Enhenced Linux 1990s, NSAC1 ,C2 ,B1, B2, B3, A1Linux windows都属于C2安全级别操作系统SELinux类型Strict mo... 03月05日 1,237 ℃ 发表评论 阅读全文