以百度为例 GET /favicon.ico HTTP/1.1 Host: www.baidu.com Connection: keep-alive Pragma: no-cache Cache-Control: no-cache User-Agent: Mozilla/5.0 (Windows N ...
分类:
Web程序 时间:
2020-07-28 16:58:47
阅读次数:
177
配置 Keepalived - 主 1. 通过命令 vim keepalived.conf 打开配置文件 global_defs { # 路由id:当前安装keepalived的节点主机标识符,保证全局唯一 router_id keep_171 } vrrp_instance VI_1 { # 表示 ...
分类:
其他好文 时间:
2020-07-28 13:57:35
阅读次数:
77
# -*- coding: utf-8 -*- # @Time : 2020/7/25 22:45 # @Author : Breeze # @FileName: login_while.py user_name = "Breeze" password = "123456789" counter = ...
分类:
其他好文 时间:
2020-07-27 15:35:26
阅读次数:
67
1.官网 http://kafka.apache.org/ 2.介绍 一个分布式的流平台 3.特点 具有高吞吐量,高性能,实时,高可靠 二:安装 1.全部上传 2.全部解压 3.安装jdk 4.zookeeper的安装 进入zookeeper的目录下的conf中 将zoo_sample.cfg拷贝一 ...
分类:
其他好文 时间:
2020-07-27 09:19:58
阅读次数:
65
多个组件使用同一个挂载点,并且进行动态的切换这就是动态组件。 通过使用<component>元素动态的绑定到它的is特性,来实现动态组件 <div id="test"> <button @click="change">切换页面</button> <component :is="currentView ...
分类:
其他好文 时间:
2020-07-26 19:19:13
阅读次数:
119
数据准备2 数据清洗 import platform from pandas import DataFrame print("当前所使用的python版本是:", platform.python_version()) data = {'Chinese': [66, 95, 93, 90, 80], ...
分类:
其他好文 时间:
2020-07-26 18:59:26
阅读次数:
59
[root@centos7 nginx]# hostname -i fe80::573d:3f45:8bb8:5050%ens33 192.168.0.11 [root@centos7 nginx]# [root@centos7 nginx]# cat nginx.conf worker_proce ...
分类:
其他好文 时间:
2020-07-26 01:23:14
阅读次数:
75
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
线程池的好处 第一 降低资源消耗。通过重复利用已经创建成功的线程降低线程创建和销毁时造成的资源消耗。 第二 提高相应速度。 当任务到达的时候不需要等到线程创建就能立刻执行。 第三 提高线程可管理性。线程是稀缺资源,如果无限创建会造成系统资源,降低系统的稳定性,所以使用线程池进行统一的分配,调优和监控 ...
分类:
编程语言 时间:
2020-07-25 23:35:21
阅读次数:
73
前言 与生产者对应的是消费者,应用程序可以通过KafkaConsumer来订阅主题,并从订阅的主题中拉取消息。不过在使用KafkaConsumer消费消息之前需要先了解消费者和消费组的概念,否则无法理解如何使用KafkaConsumer。 <!--more--> Consumer 消费者(Consu ...
分类:
其他好文 时间:
2020-07-21 11:34:08
阅读次数:
71