#include <iostream> #include <cstdlib> /* include to allow rand() to be used */ #include<ctime>/*just used in function: time(NULL)*/ using namespace s ...
分类:
其他好文 时间:
2020-01-30 15:49:00
阅读次数:
76
本文测试当主库无法连接时,从库的复制状态。 1.设置主库 在从库上, 将主库设置为 或一个无法连接的主库: 或 设置复制: 2.查看复制状态 IO线程状态 主库无法连接,连接错误如下所示: 可以看到,IO线程正在尝试连接主库。 日志位点信息 由于主库无法连接,日志位点相关的信息如下。 从库已经接收的 ...
分类:
其他好文 时间:
2020-01-29 16:26:42
阅读次数:
136
man手册介绍 date命令作用:以指定格式显示当前时间或设置系统日期 语法 date [OPTION]... [+FORMAT] date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] 选项 -d, --date=STRING 以指定字符串格式显示日 ...
分类:
其他好文 时间:
2020-01-29 15:42:42
阅读次数:
110
最近项目中要用到多线程处理任务,自然就用到了ThreadPoolTaskExecutor这个对象,这个是spring对于Java的concurrent包下的ThreadPoolExecutor类的封装,对于超出等待队列大小的任务默认是使用RejectedExecutionHandler去处理拒绝的任 ...
分类:
其他好文 时间:
2020-01-28 21:13:07
阅读次数:
84
<span id="sitetime"></span> <script language=javascript> function siteTime(){ window.setTimeout("siteTime()", 1000); var seconds = 1000 var minutes = ...
分类:
Web程序 时间:
2020-01-28 19:28:59
阅读次数:
173
D. Minimax Problem time limit per test 5 seconds memory limit per test 512 megabytes input standard input output standard output You are given nn arra ...
分类:
其他好文 时间:
2020-01-28 12:28:41
阅读次数:
70
F. Three Paths on a Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a ...
分类:
其他好文 时间:
2020-01-26 22:34:35
阅读次数:
79
You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varie ...
分类:
其他好文 时间:
2020-01-22 10:50:53
阅读次数:
80
一、字符串 字符串键是Redis最基本的键值对类型,将一个单独的键和一个单独的值关联起来。通过字符串键,不仅可以存储和读取字符串,如果输入能被解释为整数和浮点数,还能执行自增或自减操作。 1、SET:设置字符串键的值 |命令|SET key value [EX seconds\|PX millise ...
分类:
其他好文 时间:
2020-01-21 10:45:40
阅读次数:
67