Reids的种淘汰策略: noeviction: 不删除策略, 达到最大内存限制时, 如果需要更多内存, 直接返回错误信息。 大多数写命令都会导致占用更多的内存(有极少数会例外, 如 DEL )。 allkeys-lru: 所有key通用; 优先删除最近最少使用(less recently used ...
分类:
其他好文 时间:
2020-07-23 23:05:27
阅读次数:
84
一、报错原因:mysql 8.0 默认使用 caching_sha2_password 身份验证机制:从原来的 mysql_native_password 更改为 caching_sha2_password,但是第三方客户端(如Navicat)暂不支持新的加密方式,故而报错。 二、解决方案:双击打开 ...
分类:
数据库 时间:
2020-07-23 22:14:14
阅读次数:
90
session.auto_start=0 修改为 session.auto_start=1;
output_buffering = Off 修改为 output_buffering = On; ...
分类:
数据库 时间:
2020-07-23 18:56:25
阅读次数:
86
// Package subtle implements functions that are often useful in cryptographic// code but require careful thought to use correctly.package subtle// Con ...
分类:
其他好文 时间:
2020-07-22 20:15:24
阅读次数:
85
解决redis启动时的三个警告 第一个警告:The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 第二个警告:o ...
分类:
其他好文 时间:
2020-07-22 16:25:57
阅读次数:
104
有时我们删除容器时,会报如下错误, Error response from daemon: You cannot remove a running container 明明停止的容器,为啥还报错不能删除运行中的容器 此时我们可以用强制删除容器命令。 docker rm -f container_na ...
分类:
其他好文 时间:
2020-07-22 15:58:07
阅读次数:
224
HMR热加载 如果需要开启HMR热加载功能,只需要在webpack.config.js中配置 /** * HMR: hot module replacement 热模块替换 / 模块热替换 * 作用:一个模块发生变化,只会重新打包这一个模块(而不是打包所有模块) * 极大的提升构建速度 * 样式文件 ...
分类:
其他好文 时间:
2020-07-22 15:39:43
阅读次数:
71
##Cannot convert undefined or null to object 无法将undefined或者null转换为对象 ###错误代码 arr1 = [1, 2, 3]; arr1.push.apply(null, arr2); console.log(arr1); ###控制台报 ...
分类:
其他好文 时间:
2020-07-21 22:47:04
阅读次数:
70
一、Reading My girlfriend always complains. According to her, I should be more ambitious. I should work harder and earn more money. She also thinks I sh ...
分类:
其他好文 时间:
2020-07-21 22:40:49
阅读次数:
117
在main导入import './assets/style/theme.less'如果找不到less, 需安装less依赖:npm install less可能还需要 npm install less-loader 如果报一下错误:error in ./src/assets/style/theme. ...
分类:
其他好文 时间:
2020-07-21 21:53:11
阅读次数:
112