前提:安装好了docker-ce。systemctlstartdockersystemctlenabledockeriptables-Xiptables-Fserviceiptablessave1、部署nginx:dockerrun-it-d-p80:80-v/usr/share/nginx/html/:/usr/share/nginx/html/-v/etc/nginx/conf.d/:/etc
分类:
其他好文 时间:
2020-07-10 09:36:54
阅读次数:
64
1.login.py # -*- coding: utf-8 -*- from selenium import webdriver from time import sleep from selenium.webdriver.common.action_chains import ActionCha ...
分类:
编程语言 时间:
2020-07-10 09:28:52
阅读次数:
97
K3S https://k3s.io/ https://docs.rancher.cn/k3s/ https://rancher.com/docs/k3s/latest/en/ https://github.com/rancher/k3s https://github.com/rancher/k3s ...
分类:
其他好文 时间:
2020-07-10 00:18:17
阅读次数:
106
前言 做自动化测试中,需要管理大量的测试用例,如果不用框架管理用例,那会是一件很麻烦的事。 如果所示只写了一个用例,内容就是输入网易邮箱账号和密码 test fixture:测试固件 简单来说就是做一些测试过程中需要准备的东西。 比如创建临时的数据库,文件和目录等。 自动化测试中setUp()是打开 ...
分类:
其他好文 时间:
2020-07-09 19:07:02
阅读次数:
83
参考:http://www.liaoqiqi.com/post/69 我们在编译boost日志库时需要链接较多的库例如 -lboost_log -lboost_log_setup -lboost_system -lboost_thread 如果链接顺序有问题,就会造成链接失败 但是日常开发过程中,维 ...
分类:
其他好文 时间:
2020-07-08 01:33:00
阅读次数:
62
import unittest class TestOrder(unittest.TestCase): @classmethod def setUpClass(cls): print("所有用例之前执行") def setUp(self): print("每个用例开始前执行") def tearDo ...
分类:
编程语言 时间:
2020-07-07 20:43:08
阅读次数:
93
import pytest class TestCase(): def setup_class(self): print("setup_class:所有用例执行之前") def setup_method(self): print("setup_method: 每个用例开始前执行") def tear ...
分类:
编程语言 时间:
2020-07-07 20:29:29
阅读次数:
106
USBPcap是一个开源的USB数据包抓取工具。本文旨在说明USBPcap抓取的USB数据包的数据格式。 基本数据类型 USBPcap程序中使用到了一些基本的数据类型,如下: UCHAR - 8 bit unsigned value USHORT - 16 bit unsigned value UI ...
分类:
其他好文 时间:
2020-07-07 15:41:17
阅读次数:
129
0x00 原因 Linux系统默认情况下是未打开ip转发功能的,docker容器内部的网络是由Linux的iptables制定转发规则实现的。 所以当Linux未打开IP转发时,会造成容器内部无法解析域名。 0x01 解决方案 暂时解决: 查看如下地址中的数值(1为开启,0为关闭) /proc/sy ...
分类:
其他好文 时间:
2020-07-07 09:38:39
阅读次数:
90
查看docker支持的网络驱动 [root@localhost ~]# docker info |grep "Network" WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disa ...
分类:
其他好文 时间:
2020-07-06 20:23:49
阅读次数:
81