with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:20
阅读次数:
33
with_nested采用笛卡尔乘积方式,将多个嵌套列表中的元素交叉组合示例:创建多个目录及子目录mkdir-p/testdir/{a,b,c}/{1,2}ansible剧本如下:hosts:jack6_1remote_user:rootgather_facts:notasks:file:path:"/testdir"state:directoryfile:path:"
分类:
其他好文 时间:
2020-09-17 16:54:16
阅读次数:
24
浅谈js面向对象 /** * 浅谈js面向对象 * author: Mr Lee (James Lee) */ /* 一、创建一个类 创建一个类(具有相同属性和行为的对象的集合 */ const User = function (id, name, age) { this.id = id this. ...
分类:
Web程序 时间:
2020-09-17 16:37:06
阅读次数:
30
学习资源:动力节点的2020最新SpringMVC教程【IDEA版】-springmvc从入门到精通 1、相对地址 1.1、不使用 / 页面的请求地址中不加 / ,相对地址的参考地址是:当前页面的地址 <a href="user/register">发起注册请求</a> 点击上面的超链接后,新的页面 ...
分类:
其他好文 时间:
2020-09-17 16:31:35
阅读次数:
33
register注册变量可以将输出信息作为变量值示例:[root@jack7-1work]#catregister.ymlhosts:PCremote_user:roottasks:name:testshellshell:"echotest>/root/test"register:testvar==================>将shell输出的结果赋值给tes
分类:
其他好文 时间:
2020-09-17 16:02:37
阅读次数:
28
原文地址:Capturing Audio & Video in HTML5 前言 长期以来音视频捕获一直是web开发的珍宝。多年来,我们不得不依赖浏览器插件( flash 或者 silverlight )来完成这个工作. HTML5完成了救赎。可能并不明显,但是HTML5的兴起带来了大量对这杯硬件的 ...
分类:
Web程序 时间:
2020-09-17 15:54:27
阅读次数:
32
2、第一个Mybatis程序 思路:搭建环境-->导入Mybatis-->编写代码-->测试! 2.1、搭建环境 搭建数据库 CREATE DATABASE `mybatis`; USE `mybatis`; CREATE TABLE `user`( `id` INT(20) NOT NULL PR ...
分类:
其他好文 时间:
2020-09-17 15:46:51
阅读次数:
33
//运算 现在想获取User的身份证号码 List<User> users; List<String> idcards= users.stream().map(User::getIdcard).collect(Collectors.toList()) 数组所有元素,按某种规律计算: List<Int ...
分类:
其他好文 时间:
2020-09-17 15:38:10
阅读次数:
22
1. 解压已上传的Tomcat压缩包,到/user/local目录下 2. 启动tomcat 启动-你的安装目录/bin/startup.sh 3. 动态查看日志 tail -f /usr/local/tomcat1/logs/catalina.out 4. 防火墙放行端口 firewall-cmd ...
分类:
其他好文 时间:
2020-09-17 13:32:55
阅读次数:
31