Prometheus部署: 安装 go 语言环境 由于Prometheus是用golang开发的,所以首先安装一个go环境,Go语言是跨平台,支持Windows、Linux、Mac OS X等系统,还提供有源码,可编译安装 二进制包下载地址 wget https://dl.google.com/go ...
分类:
其他好文 时间:
2021-04-23 11:51:38
阅读次数:
0
django在创建项目时自动在应用下的创建了test.py,这个py文件可以作为测试文件;也可以在应用下手动创建一个py测试文件。无论哪种方式,都需要提前书写以下代码: from django.test import TestCase # test.py中无需手动导入,手动创建的测试文件需导入 im ...
分类:
其他好文 时间:
2021-04-23 11:51:09
阅读次数:
0
两种原因 mingw路径有中文 或者 本地有多个mingw 删除其他的就可以啦 ...
分类:
其他好文 时间:
2021-04-22 16:23:10
阅读次数:
0
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0
一、什么是unittest unittest是Python单元测试框架,类似于JUnit框架。 unittest中有4个重要的概念:test fixture, test case, test suite, test runner Testcase: 一个TestCase的实例就是一个测试用例。什么是 ...
分类:
其他好文 时间:
2021-04-22 16:10:25
阅读次数:
0
i: /* * @lc app=leetcode.cn id=127 lang=cpp * * [127] 单词接龙 * * https://leetcode-cn.com/problems/word-ladder/description/ * * algorithms * Hard (45.95% ...
分类:
其他好文 时间:
2021-04-22 15:58:08
阅读次数:
0
__char 把一组数字转化成Unicode字符 __counter ${__threadNum}_${__counter(true,1)} 每个线程分别计数 ${__threadNum}_${__counter(false,1)} 每个线程合并计数 __CSVRead 1、读取固定值 ${__CS ...
分类:
其他好文 时间:
2021-04-22 15:52:57
阅读次数:
0
本文是protobuf的基础教程,适合没有任何框架基础的人学习。。protobuf是Google的语言无关,平台无关的可扩展机制,用于对结构化数据进行序列化。什么意思呢?举个例子,我有一个数据结构Person,里面有一堆信息。比如这样。 我们知道,在网络中我们传输的都是tcp包或者是udp包,所以, ...
分类:
其他好文 时间:
2021-04-22 15:46:36
阅读次数:
0
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:
系统相关 时间:
2021-04-22 15:41:37
阅读次数:
0
有时候,为了满足某些场景的需要,我们知道有些测试函数在这时候肯定不能执行,或者执行了也会失败。那么我们 可以选择去跳过这个测试函数,这样也就不会影响整体的测试函数运行效果,不至于在你运行的众多绿色通过的测试 用例中,给你加点红色的failed或者error。 举个例子,有些测试函数只能在window ...
分类:
其他好文 时间:
2021-04-22 15:30:23
阅读次数:
0