Agent的配置文件最好根据Flume的拓扑架构,依次写好每个节点的配置文件; 一.Agent 开头都是先要定义agent,sorce,channel,sink名 # Name the components on this agent( 描述这个Agent,给各个组件取名字) a1.sources ...
分类:
Web程序 时间:
2020-07-06 01:18:20
阅读次数:
133
一、Jmeter元件 1.测试计划 测试计划可以对线程组进行控制 2.线程组 线程组参数详解 线程数:虚拟用户数。一个虚拟用户占用一个进程或线程。设置多少虚拟用户数在这里也就是设置多少个线程数。 Ramp-Up Period(in seconds)准备时长:设置的虚拟用户数需要多长时间全部启动。如果 ...
分类:
其他好文 时间:
2020-07-05 19:09:26
阅读次数:
74
所需要库:thinter,python3自带 代码: from tkinter import * import re import requests def input1(): link = str(inp1.get()) headers = {'user-agent': 'Mozilla/5.0 ...
分类:
编程语言 时间:
2020-07-04 21:01:20
阅读次数:
124
找一个免费IP的网站 # coding=utf-8 import requests proxies = {"http":"http://114.234.80.188:80"}#就代理填到这里 headers = { "User-Agent": "Mozilla/5.0 (Macintosh; Int ...
分类:
其他好文 时间:
2020-07-04 17:11:48
阅读次数:
47
要爬取的网站:http://fy.iciba.com/ https://blog.csdn.net/weixin_43808690/article/details/87886075 原文链接 代码: from urllib import request,parse import json class ...
分类:
编程语言 时间:
2020-07-04 15:01:13
阅读次数:
74
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev ...
分类:
其他好文 时间:
2020-07-04 10:31:41
阅读次数:
106
'''爬取豆瓣top250书籍''' import requests import json import csv from bs4 import BeautifulSoup books = [] def book_name(url): headers = { 'User-Agent': 'Mozi ...
分类:
其他好文 时间:
2020-07-02 16:39:12
阅读次数:
70
一、egg-mysql 的安装配置 1、在 egg 项目中安装 egg-mysql npm i egg-mysql --save 2、在 {app_root}/config/plugin.js 中启用 egg-mysql 插件: exports.mysql = { enable: true, pac ...
分类:
数据库 时间:
2020-07-01 19:59:16
阅读次数:
136
网络请求基础 ####1.网络请求过程 #####URL介绍 - URL请求的网址,即统一资源定位符,他可以唯一确定我们想请求的资源,其结构如下: https://www.baidu.com/ #####1.1网络请求过程 #请求过程 客户端,通常指web浏览器或APP向服务器发起请求,并向客户端发 ...
分类:
其他好文 时间:
2020-06-30 14:49:06
阅读次数:
55
解决的问题:将请求分发至同一主机的不同端口(不考虑容器)支持:httpsupstream api { server 127.0.0.1:5000 weight=1; server 127.0.0.1:5001 weight=1; server 127.0.0.1:5002 weight=1;}ser ...
分类:
其他好文 时间:
2020-06-30 13:06:50
阅读次数:
71