/** * 递归删除缓存文件 * @param $dir 缓存文件路径 */ public function delFileByDir($dir) { $dh = opendir($dir); while ($file = readdir($dh)) { if ($file != "." && $f ...
分类:
Web程序 时间:
2020-04-16 14:53:07
阅读次数:
54
question1: An error occured while deploying the file.This probably means that the app contains ARM native code and your Genymotion device cannot run A ...
分类:
其他好文 时间:
2020-04-16 13:33:25
阅读次数:
253
实现方法如下: 1. 下载NginxHttpAccessKeyModule模块文件:http://wiki.nginx.org/File:Nginx accesskey 2.0.3.tar.gz; 2. 解压此文件后,找到nginx accesskey 2.0.3下的config文件。编辑此文件:替 ...
分类:
数据库 时间:
2020-04-16 13:28:39
阅读次数:
103
1、报错:error:failedtorunKubelet:failedtocreatekubelet:misconfiguration:kubeletcgroupdriver:"cgroupfs"isdifferentfromdockercgroupdriver:"systemd2、原因:kubelet文件驱动默认cgroupfs,而我们安装的docker使用的文件
分类:
其他好文 时间:
2020-04-16 10:34:49
阅读次数:
549
os模块 使用os 模块对文件进行一些相关操作 import os # 1.重命名文件 os.rename(旧文件名,新文件名) os.rename('test.txt','test3.txt') os.rename('test4.txt','test') # 2.删除文件 os.remove(文件 ...
分类:
编程语言 时间:
2020-04-16 09:12:19
阅读次数:
78
"题目地址" 拿到题目后,首先用 file 查看文件类型,可以发现是 ELF 32 bit 类型的文件 接下来使用 checksec 来查看文件开启了哪些保护,可得到如下内容: 没有 canary,那么有可能做到栈溢出 执行一下来看效果,发现其流程为: 放进 ida 里后在 Function nam ...
分类:
其他好文 时间:
2020-04-16 00:55:09
阅读次数:
77
在Windows操作系统中使用eclipse本地运行hadoop的hdfs程序, FileSystem local = FileSystem.getLocal(conf); 使用 FSDataOutputStream out = local.create(localFile); 创建本地文件输出流时 ...
1.安装依赖库: yum install pcre-devel openssl-devel gcc curl -y 2.编译安装openresty(默认, --prefix=/usr/local/openresty 程序会被安装到/usr/local/openresty目录): tar -zxvf ...
分类:
其他好文 时间:
2020-04-15 18:34:39
阅读次数:
84
mysql配置问题,导致上传azkaban上传包时出现 已经设置过max_allowed_packet了 innodb 引擎还需设置innodb_log_file_size,这个值默认50m 最终的my.cnf配置如下 参考资料 https://github.com/azkaban/azkaban/ ...
分类:
数据库 时间:
2020-04-15 17:51:51
阅读次数:
122
前言 如果你使用默认的加载器,你必须创建 celeryconfig.py 模块并且保证它在python路径中。 一、加载配置方法 1.基础方法 可以设置一些选项来改变 Celery 的工作方式。这些选项可以直接在 app 实例上进行设置,或者也可以使用一个指定的配置模块 配置使用 app.conf ...
分类:
其他好文 时间:
2020-04-15 16:27:19
阅读次数:
85