安装nfs服务这里安装在slave2一个节点上[root@k8s-slave2~]#yum-yinstallnfs-utilsrpcbind[root@k8s-slave2~]#cat/etc/exports/data/nfs/*(insecure,rw,async,no_root_squash)[root@k8s-slave2~]#chmod777/data/nfs/先启动rpcbind服务在启
分类:
其他好文 时间:
2020-06-30 19:05:20
阅读次数:
109
tuple 元组 特点: 可获取,不可修改,有序 1.定义一个空元组: tuple_var = () print(tuple_var, type(tuple_var)) ? 结果: () <class 'tuple'> 2.定义元组: message = (1,2,3,4) print(messag ...
分类:
其他好文 时间:
2020-06-30 19:03:06
阅读次数:
46
#!/bin/bashsrc=/test/dest=testrsync_secret_file=/etc/rsync_pwdfiledest_ip=192.168.37.133user=test/usr/local/bin/inotifywait -mrq --format '%Xe %w %f' ...
分类:
其他好文 时间:
2020-06-30 18:56:32
阅读次数:
44
SpringBoot2.0集成Shiro 数据库表结构: 1 /* 2 Navicat Premium Data Transfer 3 4 Source Server : 本机MySQL 5 Source Server Type : MySQL 6 Source Server Version : 5 ...
分类:
编程语言 时间:
2020-06-30 17:34:12
阅读次数:
47
import shelve a = shelve.open('1') b = [1,2,3] a['b'] = b a.close()a['b'] Traceback (most recent call last):File "C:\Users\Administrator\AppData\Local ...
分类:
其他好文 时间:
2020-06-30 17:22:01
阅读次数:
66
解除正在死锁的状态有两种方法: 查询是否锁表 show OPEN TABLES where In_use > 0; 查询进程(如果您有SUPER权限,您可以看到所有线程。否则,您只能看到您自己的线程) show processlist 杀死进程id(就是上面命令的id列) kill id 第二种: ...
分类:
其他好文 时间:
2020-06-30 17:18:48
阅读次数:
116
option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, series: [{ data: [120, 200, ...
分类:
其他好文 时间:
2020-06-30 16:02:33
阅读次数:
165
好处: 数据与测试脚本分离 通过使用数据驱动测试,来验证多组数据测试场景 1、安装 pip install ddt 2、引包 from ddt import ddt 常用 ddt,data,unpack 3、@data test_data1 = [[1,3],[4,5,6]] test_data2 ...
分类:
其他好文 时间:
2020-06-30 15:59:20
阅读次数:
126
将用装饰器传参的参数值打印到报告中 步骤1: ids是一个list,且里面每一个元素都要是str ids = ['{}'.format(data) for data in testData] #testData 为参数列表 @pytest.mark.parametrize("datajson",te ...
分类:
其他好文 时间:
2020-06-30 14:53:45
阅读次数:
69
http_build_query()函数使用方法 http_build_query()函数的作用是使用给出的关联(或下标)数组生成一个经过 URL-encode 的请求字符串。 写法格式:http_build_query ( mixed $query_data [, string $numeric_ ...
分类:
Web程序 时间:
2020-06-30 14:40:58
阅读次数:
91