摘要: Kubernetes v1.10 部署kubernetes-dashboard v1.83 1.下载 kubernetes-dashboard yaml文件 #因为文件中的image指定的是谷歌,所以不能直接使用apply进行部署 wget https://raw.githubusercontent 阅读全文
posted @ 2018-04-06 23:44 清风徐来# 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 在生成环境上有时候需要大规模修改某一配置里的参数,但是该参数存在多个地方,比如IP地址 端口 项目名等,特别是项目名称混乱想统一 find /项目地址 -type f |xargs grep "要查找的名称" 例子: find /project/epg/ -type f |xargs grep "1 阅读全文
posted @ 2017-11-08 16:56 清风徐来# 阅读(432) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-import os,xlsxwriter,datetimeimport ConfigParserfrom send_mail import send_mailpath = os.path.split(os.path.realpath(__file__))[0]###***获取配置文件中的变量conf_file... 阅读全文
posted @ 2017-11-03 17:57 清风徐来# 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 最近公司有几台服务器需要搬至甲方(政府单位),所以在安装服务时用的是16年的openssh7.3pl, 今天通知我们有漏洞,需要再一次升级,看到官方文档上版本已升级至7.5,所以干脆直接搞7.5 具体升级过程我写在了shell脚本里, 如果你第一次弄openssh会有疑虑爬安装失败导致sshd断掉, 阅读全文
posted @ 2017-08-18 15:53 清风徐来# 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 前言 前段时间公司在做流媒体服务,与许多厂家合作拿了许多视频过来,现在要对这些视频文件进行整理,通过特殊的编码排列,获取他们的时长以及分辨率,这里我遇到一个大坑,请往下面看。 只需要传入文件的完整路径就可以获取到分辨率以及播放时长。 本次使用ffpmeg发现,使用的python3.6 ,32位和64 阅读全文
posted @ 2017-06-07 10:26 清风徐来# 阅读(6808) 评论(1) 推荐(1) 编辑
摘要: # 最近在实验楼学习了爬取妹子图,发现在运行的时候不是很流畅,有些图片下 1 # coding: utf-8 1 # coding: utf-8 2 3 import re 4 import threading 5 from urllib.request import urlopen 6 from 阅读全文
posted @ 2017-03-12 00:51 清风徐来# 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install sqlalchemy #!/usr/bin/env python # -*- coding:utf-8 -*- # 加载模块 from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from sqlal... 阅读全文
posted @ 2016-12-14 09:33 清风徐来# 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 一、环境 centos6.8 x64 IP:192.168.134.128 所需软件包: libfastcommon-1.0.7.zip,FastDFS_v5.05.tar.gz,nginx-1.7.8.tar.gz,fastdfs-nginx-module_v1.16.tar.gz,pcre-8. 阅读全文
posted @ 2016-07-01 16:13 清风徐来# 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: 流程图: 代码 1 #!/sur/bin/env python 2 # -*- coding: utf-8 -*- 3 #{"backend": "www.oldboy.org","record":{"server": "100.1.7.90","weight": 20,"maxconn": 30} 阅读全文
posted @ 2016-04-28 18:10 清风徐来# 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #/usr/bin/env python3# -*- coding: utf-8 -*-##This is an account login authentication##Version 1.0## # Created At 2016-4-11##Author He Wei'''Logindaut 阅读全文
posted @ 2016-04-15 14:36 清风徐来# 阅读(236) 评论(0) 推荐(0) 编辑