command模块 [root@m01 ~]# ansible 'web01' -m command -a "df -h" web01 | CHANGED | rc=0 >> Filesystem Size Used Avail Use% Mounted on devtmpfs 475M 0 475 ...
分类:
其他好文 时间:
2021-06-02 15:03:50
阅读次数:
0
// 定义瓶码字符串 $bianhaop_str = substr($bianhaop_str,1); $bianhaop_arr = explode(',', $bianhaop_str); if(!empty($bianhaop_arr)){ //判断本身是否存在重复项 if(count(arr ...
分类:
编程语言 时间:
2021-06-02 14:10:18
阅读次数:
0
目标:前端 + 后端 + 静态文件的运用 前端: 首页:简单展示一个列表页面 投票页:有投票选项,投票按钮 结果页:展示投票后各个投票选项的投票数 后端 admin:增删改查投票选项,能够按照时间排序投票选项,能够增删改查用户。 静态文件 css样式引入,a标签链接颜色修改,body的backgro ...
分类:
其他好文 时间:
2021-06-02 13:21:33
阅读次数:
0
关于substr()函数和substring()函数 关于substr()和substring()区别 MySQL: SUBSTR( ), SUBSTRING( ) Oracle: SUBSTR( ) SQL Server: SUBSTRING( ) 例如 Oracle: select substr ...
分类:
数据库 时间:
2021-06-02 12:25:36
阅读次数:
0
let num = 12345678.002345 let start = (num + '').split('.')[0].split('').reverse() let end = (num + '').split('.')[1] let s = '',cur = '',n = start.le ...
分类:
其他好文 时间:
2021-06-02 12:21:53
阅读次数:
0
最大子列和问题 给定K个整数组成的序列{ N?1??, N?2??, ..., N?K?? },“连续子列”被定义为{ N?i??, N?i+1??, ..., N?j?? },其中1 ≤ i ≤ j ≤ K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4 ...
分类:
其他好文 时间:
2021-06-02 12:15:56
阅读次数:
0
HBuild X 终端无法使用,无法输入,解决方法 打开HBuild X 的安装文件夹 打开如下路径:plugins\builtincef3terminal\script 打开main.js 文件 if(isWin){ shell = 'C:\\Windows\\System32\\WindowsP ...
分类:
其他好文 时间:
2021-06-02 12:14:47
阅读次数:
0
create or replace function F_SPLIT_CONDITION(START_STRING VARCHAR2, V_FLAG VARCHAR2)/***将给出的START_STRINGN字符串按V_FLAG替换为逗号分隔的字符串*例如:12-34-56 替换为'12','34 ...
分类:
数据库 时间:
2021-06-02 11:56:20
阅读次数:
0
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:
系统相关 时间:
2021-06-02 11:35:11
阅读次数:
0
DWORD GetTickCount(void); 1) 定义 For Release configurations, this function returns the number of milliseconds since the device booted, excluding any ti ...
分类:
其他好文 时间:
2021-06-02 11:21:18
阅读次数:
0