命令: show processlist; 如果是root帐号,你能看到所有用户的当前连接。如果是其它普通帐号,只能看到自己占用的连接。 show processlist;只列出前100条,如果想全列出请使用show full processlist; 每个与mysqld的连接都在一个独立的线程里运 ...
分类:
数据库 时间:
2020-10-30 12:20:21
阅读次数:
21
Description 给你 \(p,a,b,x_1,t\),定义数列 \(\{x\}:x_i=ax_{i-1}+b\space (x\ge2)\),求最小使 \(x_n=t\) 的 \(n\) 。 $0\le a,b,x_1,t < p\le 10^9$ Sol 转化为等比数列求和: \[ x_{ ...
分类:
其他好文 时间:
2020-10-27 11:37:40
阅读次数:
17
1.U盘的装载与卸载(设备都保存在/dev中 /dev存放设备的文件) 1.卸载u盘 umount /media/xxx/xxx (xxx为具体路径) 2.查看设备 sudo fdisk -l (sd-->scsi device hd-->hard disk硬盘 fd >floppy disk软盘 ...
分类:
系统相关 时间:
2020-10-26 10:40:11
阅读次数:
25
这个题目有好多人倍增求LCA会被卡成80分(包括第一次提交的我,然后,我在万神的教导下,使用了优化版的倍增,直接水过去了.....跑得还挺快,最大点700ms(没有优化前1500ms),好吧其实还是卡过去的,用了快读快写,不过这里优化的倍增求LCA还是值得拿起小本子记录一下的哈哈) Code: #i ...
分类:
其他好文 时间:
2020-10-26 10:36:11
阅读次数:
18
Reference: [Dockerfile Security Best Practices] Container security is a broad problem space and there are many low hanging fruits one can harvest to m ...
分类:
其他好文 时间:
2020-10-24 11:48:16
阅读次数:
37
题目描述 元旦快到了,校学生会让乐乐负责新年晚会的纪念品发放工作。为使得参加晚会的同学所获得 的纪念品价值相对均衡,他要把购来的纪念品根据价格进行分组,但每组最多只能包括两件纪念品, 并且每组纪念品的价格之和不能超过一个给定的整数。为了保证在尽量短的时间内发完所有纪念品,乐乐希望分组的数目最少。 你 ...
分类:
其他好文 时间:
2020-10-24 09:47:09
阅读次数:
20
现有硬盘上扩充空间fdisk-l查看空间,如新增加空间没有则可通过如下命令识别ls/sys/class/scsi_disk查看到一块硬盘0:0:0:0则执行如下,如还有其他,类推下面命令。echo‘1‘>/sys/class/scsi_disk/0\:0\:0\:0/device/rescan便可看到新增空间,又或者直接重启系统,让内核识别新增空间。fdisk-l再次查看空间
分类:
其他好文 时间:
2020-10-22 23:18:13
阅读次数:
45
Definition (Nowhere dense set) A set $A$ in a topological space $X$ is nowhere dense if the complement of its closure is dense in $X$, i.e. $\overline ...
分类:
其他好文 时间:
2020-10-22 22:47:57
阅读次数:
24
写在前面 本文参考以下文章,请参考原文 Spring Cloud源码分析(四)Zuul:核心过滤器 Spring Cloud Zuul :包含对请求的路由和过滤两个功能 路由功能负责将外部请求转发到具体的微服务实例上,是实现外部访问统一入口的基础 过滤器功能则负责对请求的处理过程进行干预,是实现请求 ...
分类:
编程语言 时间:
2020-10-21 21:14:56
阅读次数:
32
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. P ...
分类:
数据库 时间:
2020-10-20 16:33:15
阅读次数:
35