从dockerhub里拉取最新版nginx镜像 [root@VM-0-15-centos home]# docker pull nginx Using default tag: latest latest: Pulling from library/nginx 45b42c59be33: Alrea ...
分类:
其他好文 时间:
2021-02-20 12:23:24
阅读次数:
0
一、慢查询日志 -- 是否记录查询日志 show variables like 'slow_query_log'; -- 是否记录未使用索引的查询 show variables like 'log_queries_not_using_indexes'; -- 开启 set GLOBAL log_qu ...
分类:
数据库 时间:
2021-02-20 12:13:00
阅读次数:
0
一、MHA简介和架构 1.1 MHA简介 MHA(Master High Availability Manager and tools for MySQL)目前在MySQL高可用方面是一个相对成熟的解决方案,它是由日本人youshimaton采用Perl语言编写的一个脚本管理工具。MHA是一套优秀的 ...
分类:
数据库 时间:
2021-02-20 11:56:46
阅读次数:
0
A. Shifting Stacks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have n stacks of b ...
分类:
其他好文 时间:
2021-02-20 11:52:20
阅读次数:
0
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int n; cin>>n; vector<int> a; for(int i=0;i<n;i++) { ...
分类:
其他好文 时间:
2021-02-19 13:54:37
阅读次数:
0
原题链接 考察:记忆化搜索 思路: 可用递推和记忆化搜索两种方式. 1 #include <iostream> 2 #include <cstring> 3 #include <algorithm> 4 #include <cstdio> 5 using namespace std; 6 const ...
分类:
其他好文 时间:
2021-02-19 13:15:23
阅读次数:
0
前言 之前unity5.x在代码中写了debug.log..等等,打包之后在当前程序文件夹下会有个对应的"outlog.txt",2017之后这个文件被移到C盘用户Appdata/LocalLow/公司名 文件夹下面。觉得不方便就自己写了个 代码 using UnityEngine; using S ...
分类:
编程语言 时间:
2021-02-19 13:03:23
阅读次数:
0
#include<iostream> #include<list> #include<string> #include<cstdio> using namespace std; //使用list(双向链表)容器对象实现简单的学生管理系统 //list简单使用 class Student{ //学生基 ...
分类:
其他好文 时间:
2021-02-19 13:03:05
阅读次数:
0
原题链接 考察:树形dp 树的重心变种题 重心定义:重心是指树中的一个结点,如果将这个点删除后,剩余各个连通块中点数的最大值最小,那么这个节点被称为树的重心。(不止一个) 模板题 树的重心 思路: 把树的某个点删去后,剩余部分是不包含父节点的子节点连通块.已经删去点的父节点连通块.通过dfs可以求出 ...
分类:
其他好文 时间:
2021-02-19 13:01:00
阅读次数:
0
树套树(splay套线段树) -AcWing 2476 本来想着用multiset套线段树的,结果一直T。改成常数小的splay才过,写完人都傻了^^ /* splay套线段树 */ #include <bits/stdc++.h> using namespace std; const int N ...