1.首先安装memcached安装包。 首先下载memcached,下载地址 (我下载的是 64位系统 1.4.4版本) 下载好了以后,放到随便一个硬盘位置比如 D:\memcached 然后打开CMD命令窗口输入 输入"D:\memcached\memcached.exe -d install"安 ...
1.安装vsftpd 默认配置文件在 /etc/vsftpd/vsftpd.conf yum -y install vsftpd 2.启动 vsftpd 服务 systemctl start vsftpd.service ps -ef | grep vsftpd #查看 vsftpd 进程是否存在 ...
分类:
其他好文 时间:
2020-09-17 17:25:23
阅读次数:
32
内置变量ansible_version获取到ansible的版本号ansibletest70-mdebug-a"msg={{ansible_version}}"内置变量hostvars操作当前主机时获取到其他主机中的信息name:"play1:Gatherfactsoftest71"hosts:test71remote_user:rootname:"
分类:
其他好文 时间:
2020-09-17 17:20:47
阅读次数:
79
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:
其他好文 时间:
2020-09-17 17:20:16
阅读次数:
39
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:
其他好文 时间:
2020-09-17 17:19:57
阅读次数:
31
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
tmux 是一个与 GNU screen 类似的程序,可作为后者的替代品使用。 安装 # Ubuntu 或 Debian $ sudo apt-get install tmux # CentOS 或 Fedora $ sudo yum install tmux # Mac $ brew instal ...
分类:
其他好文 时间:
2020-09-17 17:12:30
阅读次数:
39
Cesium 快速上手 1. git地址clone到本地 https://gitee.com/jger/cesium git clone https://gitee.com/jger/cesium.git 2. 打开vs code继续安装 npm install npm run build --> ...
分类:
其他好文 时间:
2020-09-17 17:06:07
阅读次数:
34
1. 登录服务器 2. 登录docker docker exec -it ***容器名*** /bin/bash 3. 查看 PHP版本 php -v 4. 查找扩展包 yum search bcmath 5 选择版本并安装 yum install php72-php-bcmath.x86_64 6 ...
分类:
Web程序 时间:
2020-09-17 16:58:55
阅读次数:
47