1.文件包含小知识 1.1 包含函数 PHP共有4个与文件包含相关的函数: include require include_once require_once include与include_once的区别: (1)include:会将指定的文件载入并执行里面的程序;重复引用的情况下加载多次。 例如 ...
分类:
Web程序 时间:
2021-03-02 12:04:00
阅读次数:
0
/* * 处理封面标题 文字竖排 * */ function get_pdf_title_cl($str){ if($str){ preg_match_all("/[0-9]{1}/",$str,$arrNum);/*检测数字数量*/ preg_match_all("/[a-zA-Z]{1}/",$ ...
分类:
Web程序 时间:
2021-03-02 11:54:38
阅读次数:
0
Docker五种存储驱动原理及应用场景和性能测试对比 Docker最开始采用AUFS作为文件系统,也得益于AUFS分层的概念,实现了多个Container可以共享同一个image。但由于AUFS未并入Linux内核,且只支持Ubuntu,考虑到兼容性问题,在Docker 0.7版本中引入了存储驱动, ...
分类:
其他好文 时间:
2021-03-02 11:54:21
阅读次数:
0
环境:ubuntu-server18.4 with desktop installed 问题:安装ubuntu之后启动系统网卡没有自动启动,然后我就在 /etc/netplan/xxxx-netcfg.yaml文件下面加上了下面的信息: ethernets: ens33: dhcp4: true d ...
分类:
Web程序 时间:
2021-03-02 11:45:10
阅读次数:
0
题目来自:http://218.5.5.242:9018/JudgeOnline/problem.php?id=1659、 题目描述 当小C 4年级的时候,他的数学书上有一个数学广角记载着这样一道题:有n个人(n<=100)在水龙头前拿着水桶排队准备装水,每个人装水所需时间不同。为了使大家等待的时间 ...
分类:
编程语言 时间:
2021-03-01 13:41:56
阅读次数:
0
1. 域名代理实例: #user nobody; user root; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; p ...
分类:
其他好文 时间:
2021-03-01 13:32:37
阅读次数:
0
# 生成命令对应的yaml文件(资源清单)kubectl create deployment xxxxxxxxxxx --image=nginx --dry-run -o yamlkubectl create deployment xxxxxxxxxxx --image=nginx --dry-ru ...
分类:
其他好文 时间:
2021-03-01 13:16:39
阅读次数:
0
nginx服务器地址及端口:127.0.0.1:80 后端服务地址及端口:127.0.0.1:8080 测试URL:http://127.0.0.1:80/api/upload 一 nginx配置: location /api/ { proxy_pass http://127.0.0.1:8080/ ...
分类:
其他好文 时间:
2021-03-01 13:05:41
阅读次数:
0
python学习之面向对象 类定义 与python的函数定义类似,只不过把def关键字替换为class class calculator(): pass a=calculator() print(type(a)) 输出 <class 'main.calculator'> 构造函数 与php的定义类似 ...
分类:
编程语言 时间:
2021-03-01 12:58:32
阅读次数:
0
ansible when条件语句用法 参考 基本用法 - hosts: all tasks: - include: Ubuntu.yml when: ansible_os_family == "Ubuntu" - include: RHEL.yml when: ansible_os_family = ...
分类:
其他好文 时间:
2021-02-27 13:41:18
阅读次数:
0