案例一般在ansible当中去修改某个文件的单行进行替换的时候需要使用lineinfile模式name:关闭SElinuxlineinfile:dest:/etc/selinux/configregexp:"^SELINUX="line:"SELINUX=disabled"比如替换selinux当中的以SELINUX开头的行,替换为disabledline参
分类:
系统相关 时间:
2020-05-27 15:30:53
阅读次数:
803
1、对象数组去重(支持多属性) function filters(arr) { // 存储过滤后数据 const resArr = [] for (const i of arr) { // 检查是否已经存在 if (resArr.find(r => r.itemId i.itemId && r.me ...
分类:
编程语言 时间:
2020-05-27 12:23:26
阅读次数:
86
问题场景我们使用suricata来做流量分析,suricata部署在一台多网卡的48核心的物理机上,由于业务需要,suricata监听流量的网卡从5块提升为了6块,新加了网卡enp176s0f1,然后发现suricata的日志中有多条类似报错:<Error>-[ERRCODE:SC_ERR_PF_RING_OPEN(34)]-Failedtoopenenp176s0f1:pfring_
分类:
其他好文 时间:
2020-05-27 09:23:14
阅读次数:
163
var result_arr = []; let dom = document.getElementById('canvas'), ctx = dom.getContext('2d'); var img = new Image(); img.src = '../images/logo.png'; i ...
分类:
其他好文 时间:
2020-05-26 18:42:07
阅读次数:
152
// 操作数据方法 // arr.push() 从后面添加元素,返回值为添加完后的数组的长度 let arr = [1,2,3,4,5] console.log(arr.push(5)) // 6 console.log(arr) // [1,2,3,4,5,5] // 2 arr.pop() 从后 ...
分类:
编程语言 时间:
2020-05-26 18:13:53
阅读次数:
51
3.6列表 下拉框 public class TestComboboxDemo01 extends JFrame { public TestComboboxDemo01(){ Container container = this.getContentPane(); JComboBox comboBo ...
列表 列表功能(划分区域):把相同的类别的内容展示到一个区域 1.有序列表 父元素:ol (ordered list) 子元素只能是:li (list item) 列表项 默认状态:元素内容之前会有一个阿拉伯数字(从1依次递增) 改变有序列表的样式: list-style取值 decimal 阿拉伯 ...
分类:
其他好文 时间:
2020-05-26 12:19:54
阅读次数:
85
队列 这个很好理解 先入先出,有点像排队,通过数组push和shift模拟,通常用作任务管理 栈 // 栈class Stack{ constructor() { this.items=[] } push(item){ this.items.push(item) } pop(){ return th ...
分类:
其他好文 时间:
2020-05-26 11:57:26
阅读次数:
56
var itemArr = selectedRows.map(x => { return x.dispatch_task_item_no }); var disitemArr = Array.from(new Set(itemArr)); 解释: selectedRows是json形式数组,disp ...
分类:
Web程序 时间:
2020-05-25 17:40:51
阅读次数:
60
```Swift // // ViewController8.swift // swiftT // // Created by wjwdive on 2020/5/22. // Copyright © 2020 wjwdive. All rights reserved. // import UIKi... ...
分类:
编程语言 时间:
2020-05-25 17:32:30
阅读次数:
59