通过归档日志定期增量同步数据实验: 一、再次实验从归档持续同步的方式:1.修改主库,开启归档,将日志归档到从库:archive_mode = onarchive_command = 'ssh 192.168.5.133 test ! -f /home/kingbase/test_fy/archive ...
分类:
数据库 时间:
2020-07-16 21:43:19
阅读次数:
166
HTML5中针对表单新增的验证属性如required、pattern以及一些特定input类型,当验证不通过时,都有默认的提示语句,但实践中发现并不怎么友好,因此,需要自定义提示语句,使用setCustomValidity()。在此之前,需要介绍一下表单的validityState对象。 HTML5 ...
分类:
Web程序 时间:
2020-07-16 12:28:25
阅读次数:
97
详细错误: 1 gyp ERR! find Python 2 gyp ERR! find Python Python is not set from command line or npm configuration 3 gyp ERR! find Python Python is not set ...
分类:
编程语言 时间:
2020-07-16 12:28:08
阅读次数:
312
后台不挂断运行程序: nohup your_command & 同时指定输出日志文件并将错误重定向到标准输出: nohup your_command > your_out.file 2>&1 & 查看进程 ps -ef | grep "your_command" 杀死进程 kill -9 your_ ...
分类:
系统相关 时间:
2020-07-16 10:15:38
阅读次数:
95
2018年3月28日 记录: location = /uri =开头表示精确匹配,只有完全匹配上才能生效。 location ^~ /uri ^~ 开头对URL路径进行前缀匹配,并且在正则之前。 location ~ pattern ~开头表示区分大小写的正则匹配。 location ~* patt ...
分类:
其他好文 时间:
2020-07-16 10:13:30
阅读次数:
146
#coding=utf-8 import sys,os ,shutil import struct import glob import time import subprocess def process_audio(file_name,to_file): command='ffmpeg -i { ...
分类:
其他好文 时间:
2020-07-16 00:27:27
阅读次数:
119
转自:http://hi.baidu.com/apollo_hj/blog/item/b048bb0028dc860b728da544.html 1、wildcard : 扩展通配符2、notdir : 去除路径3、patsubst :替换通配符例子:建立一个测试目录,在测试目录下建立一个名为sub ...
分类:
其他好文 时间:
2020-07-15 22:49:12
阅读次数:
59
Python通过re模块提供对正则表达式的支持。使用re的一般步骤是先将正则表达式的字符串形式编译为pattern实例,然后使用pattern实例处理文本并获得匹配结果。 import re pattern = re.compile(r'hello') # 将正则表达式编译成pattern对象 st ...
分类:
其他好文 时间:
2020-07-15 22:45:50
阅读次数:
53
1、find 用于查找文件或者目录 find path options [commad] 【options】: -size 按文件大小查找 -empty 查找空白文件或目录 -name 按文件名称查找 -iname 按文件名称查找,不区分大小写 -user 按文件属性主查找 -group 按文件属组 ...
分类:
系统相关 时间:
2020-07-14 21:54:07
阅读次数:
103