K8s: minikube start下载iso镜像速度慢 minikube start --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers ...
分类:
其他好文 时间:
2021-03-29 12:10:24
阅读次数:
0
创建元类的基类(Singleton) ` from threading import RLock class SingletonType(type): single_lock = RLock() def __call__(cls, *args, **kwargs): with SingletonTy ...
分类:
编程语言 时间:
2021-03-29 11:54:40
阅读次数:
0
示例代码如下: import multiprocessing import time import json def buy_ticket(lock): # 1.获取余票 time.sleep(1) lock.acquire() data = json.load(open('ticket.json' ...
分类:
编程语言 时间:
2021-03-26 15:31:36
阅读次数:
0
#!/bin/bash mkdir /etc/yum.repos.d/repo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.ali ...
分类:
其他好文 时间:
2021-03-18 14:42:38
阅读次数:
0
一、背景 使用postman进行接口自动化测试时,除了要验证接口的返回,有时候还要同时验证数据库的数据,或者将接口返回的数据与数据库的数据做对比,检验数据的正确性。 有的时候还需要在执行自动化case之前,造一些测试数据,或者在跑完自动化之后,删除测试数据。 所以,我们需要在postman里连接并操 ...
分类:
数据库 时间:
2021-03-18 14:28:39
阅读次数:
0
参考:https://www.imooc.com/article/303110?block_id=tuijian_wz 环境: 操作系统: mac os 11.2.3 idea版本: 社区版 2020.3.2 步骤: 1. 2.打开 Settings -> Plugins,(按照步骤选择,因为我已经 ...
分类:
编程语言 时间:
2021-03-18 14:25:01
阅读次数:
0
#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 ...
分类:
其他好文 时间:
2021-03-18 14:10:30
阅读次数:
0
File "/usr/bin/yum-config-manager", line 135 except yum.Errors.RepoError, e: ^SyntaxError: invalid syntax vim /usr/bin/yum-config-manager #!/usr/bin/p ...
分类:
其他好文 时间:
2021-03-18 14:10:14
阅读次数:
0
error: C++ preprocessor "/lib/cpp" fails sanity check 问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决: yum install -y glibc-headers gcc-c++ Ubuntu系统中,运行命令: apt- ...
分类:
其他好文 时间:
2021-03-18 14:06:28
阅读次数:
0
cmder介绍 简介 windows10中常用的命令行终端有cmd,powershell。其它需手动安装的终端有git bash(对于git命令),xshell(对于ssh连接远程主机附带linux命令) 集成多种终端,实现高效开发的命令行工具cmder,可以实现cmd,git,ssh,linux多 ...
分类:
其他好文 时间:
2021-03-18 14:03:40
阅读次数:
0