上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: JS for-in和for-of的区别 JS for-in和for-of的区别 for-in let arr = [1, 2, 3, 4, 5]; Array.prototype.id = 123; arr.name = 'zk'; for(let index in arr) { console.log(arr[index]); // o 阅读全文
posted @ 2022-08-11 10:15 zakun 阅读(78) 评论(0) 推荐(0) 编辑
摘要: npm切换阿里云镜像 #npm切换阿里云镜像 原淘宝npm域名即将停止解析,请切换至新域名 npmmirror.com http://npm.taobao.org和 http://registry.npm.taobao.org 将在 2022.06.30 号正式下线和停止 DNS 解析。 新域名为 npmmirror.c 阅读全文
posted @ 2022-08-10 14:43 zakun 阅读(323) 评论(0) 推荐(0) 编辑
摘要: SwitchyOmega 自动切换规则列表 SwitchyOmega 自动切换规则列表 规则地址 https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt SwitchyOmega 规则情景模式备份 文件下载 阅读全文
posted @ 2022-08-08 17:24 zakun 阅读(4454) 评论(0) 推荐(0) 编辑
摘要: PHP74 Remi软件源安装向导 PHP74 Remi软件源安装向导 Remi's RPM repository 官网 http://rpms.remirepo.net/ 国内清华镜像 https://mirrors.tuna.tsinghua.edu.cn/remi/ 仓库设置和php安装向导 https://rpms.remir 阅读全文
posted @ 2022-08-05 10:26 zakun 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Linux软件源设置 Linux软件源设置 debian 清华 https://mirrors.tuna.tsinghua.edu.cn/help/debian/ # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu. 阅读全文
posted @ 2022-07-27 17:38 zakun 阅读(400) 评论(0) 推荐(0) 编辑
摘要: Linux之sed命令详解 Linux之sed命令详解 sed是一种流编辑器,它是文本处理中非常好的工具,能够完美的配合正则表达式使用,功能不同凡响。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行, 阅读全文
posted @ 2022-07-21 08:54 zakun 阅读(14084) 评论(0) 推荐(2) 编辑
摘要: Nginx Access Log日志统计分析常用命令 Nginx Access Log日志统计分析常用命令 IP相关统计 统计IP访问量 awk '{print $1}' access.log | sort -n | uniq | wc -l 查看某一时间段的IP访问量(4-5点) grep "07/Apr/2017:0[4-5]" access.lo 阅读全文
posted @ 2022-07-20 11:30 zakun 阅读(231) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/dQCFKyQDXYm3F8rB0/article/details/105897706 Go 编程时光 http://golang.iswbm.com/ Go 语言入门教程 http://c.biancheng.net/golang/ 菜鸟教程 https 阅读全文
posted @ 2022-07-08 16:31 zakun 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 缓存穿透 缓存穿透指的是,当我们访问某个缓存 key 时,若此 key 不存在于缓存中,则会去查DB数据库,但也没有数据,而后续请求都直接打到DB数据库上。在流量大时,可能DB数据库就挂掉了。缓存和数据库都查询不到这条数据的现象我们称为缓存穿透。要是有人利用不存在的key频繁攻击我们的应用,这就是漏 阅读全文
posted @ 2022-06-28 11:07 zakun 阅读(49) 评论(0) 推荐(0) 编辑
摘要: nginx单域名多站点配置 nginx 单域名多站点配置 背景 单台服务器上只依靠nginx实现多站点,有两种方式 端口区分 通过路径区分 1、端口区分 http { include mime.types; gzip on; server { listen 8080; location / { root /opt/nginx/ 阅读全文
posted @ 2022-06-09 14:17 zakun 阅读(1238) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页
返回顶部