随笔分类 - Tec
摘要:
Install Elasticsearch with Docke 参考链接 Start a single-node cluster link to start a multi-node cluster with docker composer link to docker composer file
阅读全文

摘要:
ws2 相关设置 参考链接:jump here 从window主机查看linx子系统ip【win->wsl】 wsl -d <DistributionName> hostname -I 从linux子系统查看windown主机ip【wsl->win】 ip route show | grep -i
阅读全文

摘要:
Docker介绍 什么是docker Docker 最初是 dotCloud 公司创始人 Solomon Hykes 在法国期间发起的一个公司内部项目,它是基于 dotCloud 公司多年云服务技术的一次革新。 在 2013 年底,dotCloud 公司决定改名为 Docker。Docker 最初是
阅读全文

摘要:
## 步骤一 - 使用 **ls -li** 命令查看文件的 **inode** ```bash ls -li ``` 
阅读全文

摘要:
Nginx反爬虫: 禁止某些User Agent抓取网站 网站反爬虫的原因 不遵守规范的爬虫会影响网站的正常使用 网站上的数据是公司的重要资产 爬虫对网站的爬取会造成网站统计数据的污染 常见反爬虫手段 根据 IP 访问频率封禁 IP 设置账号登陆时长,账号访问过多封禁 设置账号的登录限制,只有登录才
阅读全文

摘要:
#npm切换阿里云镜像 原淘宝npm域名即将停止解析,请切换至新域名 npmmirror.com http://npm.taobao.org和 http://registry.npm.taobao.org 将在 2022.06.30 号正式下线和停止 DNS 解析。 新域名为 npmmirror.c
阅读全文

摘要:
SwitchyOmega 自动切换规则列表 规则地址 https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt SwitchyOmega 规则情景模式备份 文件下载
阅读全文

摘要:
Linux之sed命令详解 sed是一种流编辑器,它是文本处理中非常好的工具,能够完美的配合正则表达式使用,功能不同凡响。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,
阅读全文

摘要:
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
阅读全文

摘要:https://blog.csdn.net/dQCFKyQDXYm3F8rB0/article/details/105897706 Go 编程时光 http://golang.iswbm.com/ Go 语言入门教程 http://c.biancheng.net/golang/ 菜鸟教程 https
阅读全文
摘要:
VIM显示utf-8文档乱码解决方法 相关基础知识介绍 在Vim中。有四个与编码有关的选项,它们是:fileencodings、fileencoding、encoding和termencoding。 在实际使用中。不论什么一个选项出现错误。都会导致出现乱码。 因此,每个Vim用户都应该明白这四个选项
阅读全文

摘要:
Nginx中root和alias的区别 root与alias主要区别在于nginx如何解释location后面的uri,这会使两者分别以不同的方式将请求映射到服务器文件上 root的处理结果是:root路径+location路径 alias的处理结果是:alias路径替换location路径 ali
阅读全文

摘要:
nginx跳转index.php两种方式 方式一 if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } 方式二 try_files $uri $uri/ /index.php$is_args$args;
阅读全文

摘要:
docker查看镜像的所有标签 #!/bin/sh repo_url=https://registry.hub.docker.com/v1/repositories image_name=$1 curl -s ${repo_url}/${image_name}/tags | json_reforma
阅读全文

摘要:
虚拟IP技术-ip地址漂移技术 虚拟IP 在 TCP/IP 的架构下,所有想上网的电脑,不论是用何种方式连上网路,都必须要有一个唯一的 IP-address。事实上IP地址是主机硬件地址的一种抽象,简单的说,MAC地址是物理地址,IP地址是逻辑地址。 虚拟IP,就是一个未分配给真实主机的IP,也就是
阅读全文

摘要:
并发连接数和请求数的区别 概念 并发连接数-SBC(Simultaneous Browser Connections) 并发连接数指的是客户端向服务器发起请求,并建立了TCP连接。每秒钟服务器链接的总TCP数量,就是并发连接数。 请求数-QPS(Query Per Second)/RPS(Reque
阅读全文

摘要:
RabbitMQ-发布订阅 https://www.rabbitmq.com/tutorials/tutorial-three-php.html Exchanges In previous parts of the tutorial we sent and received messages to
阅读全文

摘要:
RabbitMQ-工作队列 https://www.rabbitmq.com/tutorials/tutorial-two-php.html Message acknowledgmen Message acknowledgments were previously turned off by our
阅读全文

摘要:
ssh用私钥生成公钥 问题描述: ssh秘钥对只剩下了私钥,如何用私钥来生成对应的公钥? 解决方案:用git bash输入 ssh-keygen 指令 在屏幕上显示私钥生产的公钥 ssh-keygen -y -f .vagrant/machines/default/virtualbox/privat
阅读全文

摘要:
随机头像生成接口 摘要 A playful avatar generator for the modern age 详情链接: https://personas.draftbit.com/ 实例图片
阅读全文
