一、使用Apache ab模拟并发压测 1、压测工具介绍 $ ab -n 100 -c 100 http://www.baidu.com/ -n表示发出100个请求,-c模拟100个并发,相当是100个人同时访问。 还可以这样写: $ ab -t 60 -c 100 http://www.baidu ...
分类:
编程语言 时间:
2021-05-24 05:16:43
阅读次数:
0
JSON 1. 对象 → 字符串 import ujson jsonObj = {"a": "1", "b": "2"} jsonStr = ujson.dumps(jsonObj) 2. 字符串 → 对象 import json jsonStr = '{"a": "1", "b": "2"}' j ...
分类:
编程语言 时间:
2021-05-24 04:46:00
阅读次数:
0
本地搭建,我们可以使用LVS+KEEPALIVED方式轻松实现Kubernetes中的Api-server的高可用。但是,阿里的ECS不能使用KEEPALIVED。因为VPC不支持组播,没组播VRRP拿什么周期发通告报文(224.0.0.18)。所以我们被迫只能使用阿里的 slb了,阿里官方答复因为 ...
1. download allure from git 2. config path (refer to: https://www.cnblogs.com/ycyzharry/p/10887922.html,https://www.jianshu.com/p/acb1f062a925) 3. val ...
分类:
其他好文 时间:
2021-05-24 04:32:33
阅读次数:
0
方法重写 为什么要重写? 父类的功能,子类不一定需要,或子类需要的更多! 特点: 子类和父类需要有继承关系 重写是对父类可访问的方法的重写,和属性无关 声明为 final 的方法不能被重写 声明为 static 的方法不能被重写,但是能够被再次声明 修饰符的范围可以扩大但不能缩小。(public > ...
分类:
其他好文 时间:
2021-05-24 04:27:13
阅读次数:
0
1 package com.bjsxt; 2 3 import jdk.jfr.events.SocketReadEvent; 4 5 import java.io.BufferedReader; 6 import java.io.IOException; 7 import java.io.Inpu ...
分类:
其他好文 时间:
2021-05-24 04:26:43
阅读次数:
0
import scala.util.parsing.json.JSON._import scala.io.Source val js_file="pspldata.area%s_tableMapping.json".format(1)val js_source = Source.fromFile(j ...
分类:
Web程序 时间:
2021-05-24 04:09:53
阅读次数:
0
<?php /* * redis 分页数据类库 */ class redisPage{ protected $_redis; protected $_redis_ip = '127.0.0.1'; //ip protected $_redis_port = 6379; //端口 protected ...
分类:
Web程序 时间:
2021-05-24 04:07:35
阅读次数:
0
1. 安装 npm i vue-router yarn add vue-router 2. 定义 src/router/index.js import Vue from 'vue' import VueRouter from 'vue-router' import Home from '@/view ...
分类:
其他好文 时间:
2021-05-24 03:48:28
阅读次数:
0
一、基本介绍 用于结束本次循环,继续执行下一次循环 二、基本语法 continue; 三、流程示意图 例子: package main import ( "fmt" ) func main() { for i := 1; i <= 10; i++ { if i == 2 { continue } f ...
分类:
编程语言 时间:
2021-05-24 02:57:02
阅读次数:
0