dockerfile构建Nginx镜像 一、前期工作准备(前提是安装好docker) 1.1、创建目录,用于存放dockerfile [root@node2 ~]# mkdir /app [root@node2 ~]# cd /app/ #用于以后存放web服务器的目录 [root@node2 ap ...
分类:
其他好文 时间:
2020-09-17 19:16:19
阅读次数:
40
declare 变量声明部分(没有变量可以不写declare) begin 执行部分 exception 异常处理部分 end *:declare 和 exception部分是可选的 (1)PL/sql中变量的定义 格式1 变量名 变量类型 【约束】 default 默认值 格式2 变量名 变量类型 ...
分类:
数据库 时间:
2020-09-17 18:55:58
阅读次数:
35
活动时间: 8月4日到2020年11月30号 活动力度: 升级配置,限时65折 活动链接: 具体详情可以点击查看详情>> ...
分类:
其他好文 时间:
2020-09-17 18:53:52
阅读次数:
29
注:其中第一页需要手动改一些url,默认从第二页开始爬。第一页因为那个下一页的xpath跟其他的页码有不同,其实还有很多东西可以优化可以增加的,我也懒得去再改了 代码: import requests from lxml import etree import os class Bizi(objec ...
分类:
其他好文 时间:
2020-09-17 18:16:40
阅读次数:
43
1.删除文件:先删除本地缓存,重新加到缓存区,重新提交 git rm -r --cached . git add . git commit -m ‘update .gitignore’ 2.初始化提交项目 Git 全局设置 git config --global user.name "" git c ...
分类:
其他好文 时间:
2020-09-17 18:06:14
阅读次数:
29
oracle等保中有条要求:应重命名或删除默认账户,修改默认账户的默认口令。给的建议是修改sys,system默认账户名称,避免使用常见用户名称;以下记录了两种方法来实现上面的要求:Oracle重命名sys操作记录方法一:通过用户的信息是存储在user$实体表中的id来修改1.1、首先获取用户的idselectusername,user_idfromdba_userswhereusername=&
分类:
数据库 时间:
2020-09-17 18:01:05
阅读次数:
70
具体报错: 1130-host . is not allowed to connect to this MySql server 报错原因: 是mysql未开启mysql远程访问权限导致。 解决办法: 解决办法有两种,1.改为所有可远程(连接)的,2.授权: 1.打开mysql自带的user表,找到 ...
分类:
数据库 时间:
2020-09-17 17:28:49
阅读次数:
46
内置变量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