上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: Nginx快速搭建 Mainline version 开发版:具有最新功能的版本,用于测试、研究、学习,不用于企业生成环境 Stable version 稳定版:官方认可,且通过测试的 Legacy version 历史版本 Nginx下载官网:http://nginx.org/en/downloa 阅读全文
posted @ 2019-03-07 19:56 后知后觉~ 阅读(249) 评论(0) 推荐(0)
摘要: 环境确认: 1、确认系统网络可用 2、确认yum源可用 3、确认关闭iptabkes规则 查看是否有iptabkes规则:iptables -L 如果有的话:iptables -F关闭 保险起见也看看nat里面有没有: iptables -t nat -L iptables -t nat -F 4、 阅读全文
posted @ 2019-03-07 19:55 后知后觉~ 阅读(211) 评论(0) 推荐(0)
摘要: # 先安装ruamel.yaml模块写入配置文件: import os# 先安装ruamel.yaml模块from ruamel import yaml# 将字典写入到yamldict = { 'host1': '123', 'host2': '456', 'host3': '789', 'host4': '147', 'h... 阅读全文
posted @ 2019-03-07 19:53 后知后觉~ 阅读(679) 评论(0) 推荐(0)
摘要: import pymssql class SqlServer: def __init__(self,host,user,pwd,db): self.host = host #主机名 self.user = user #用户名 self.pwd = pwd #密码 self.db = db #数据库名 阅读全文
posted @ 2019-03-07 19:52 后知后觉~ 阅读(376) 评论(0) 推荐(0)
摘要: # MD5加密 # 由于MD5模块在python3中被移除# 在python3中使用hashlib模块进行md5操作import hashlibdef MD5(str): # 创建md5对象 hl = hashlib.md5() # 此处必须声明encode # 若写法为hl.update(str) 报错为: Unicode-objects must be encoded... 阅读全文
posted @ 2019-03-07 19:51 后知后觉~ 阅读(1193) 评论(0) 推荐(0)
摘要: import requestsimport unittestclass TestQQ(unittest.TestCase): '''测试QQ号接口''' # 此注释将展示到测试报告的测试组类 def test_qq(self): '''测试QQ号码,正确的appkey''' # 此注释将展示到测试报 阅读全文
posted @ 2019-03-07 19:50 后知后觉~ 阅读(406) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-# @Time : 2018/5/28 18:51# @Author : StalloneYang# @File : mysql_test.py# @desc:# 连接数据库import pymysql.curs 阅读全文
posted @ 2019-03-07 19:50 后知后觉~ 阅读(205) 评论(0) 推荐(0)
摘要: 文件下载类型: Content-Type: octets/stream 一般为文件类型: 阅读全文
posted @ 2019-03-07 19:37 后知后觉~ 阅读(363) 评论(0) 推荐(0)
摘要: # 以禅道为例: 一、创建一个类,类里面写一个登录方法: 二、上传图片接口: 三、编写、执行测试用例: 阅读全文
posted @ 2019-03-07 19:37 后知后觉~ 阅读(405) 评论(0) 推荐(0)
摘要: # 添加多个附件参数化files = [("1.png", "1.png") ("2.png", "2.png") ]def addFiles(files, n=1): file = [] for i in list(range(n)): a =("files[]", (files[i][1], o 阅读全文
posted @ 2019-03-07 19:37 后知后觉~ 阅读(387) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页