摘要:
缓存穿透 缓存穿透指的是,当我们访问某个缓存 key 时,若此 key 不存在于缓存中,则会去查DB数据库,但也没有数据,而后续请求都直接打到DB数据库上。在流量大时,可能DB数据库就挂掉了。缓存和数据库都查询不到这条数据的现象我们称为缓存穿透。要是有人利用不存在的key频繁攻击我们的应用,这就是漏 阅读全文
摘要:
nginx 单域名多站点配置 背景 单台服务器上只依靠nginx实现多站点,有两种方式 端口区分 通过路径区分 1、端口区分 http { include mime.types; gzip on; server { listen 8080; location / { root /opt/nginx/ 阅读全文
nginx 单域名多站点配置 背景 单台服务器上只依靠nginx实现多站点,有两种方式 端口区分 通过路径区分 1、端口区分 http { include mime.types; gzip on; server { listen 8080; location / { root /opt/nginx/ 阅读全文
摘要:
VIM显示utf-8文档乱码解决方法 相关基础知识介绍 在Vim中。有四个与编码有关的选项,它们是:fileencodings、fileencoding、encoding和termencoding。 在实际使用中。不论什么一个选项出现错误。都会导致出现乱码。 因此,每个Vim用户都应该明白这四个选项 阅读全文
VIM显示utf-8文档乱码解决方法 相关基础知识介绍 在Vim中。有四个与编码有关的选项,它们是:fileencodings、fileencoding、encoding和termencoding。 在实际使用中。不论什么一个选项出现错误。都会导致出现乱码。 因此,每个Vim用户都应该明白这四个选项 阅读全文
摘要:
swoole异步队列任务执行流程 阅读全文
swoole异步队列任务执行流程 阅读全文
摘要:
Linux如何将用户从一个组中移除 gpasswd -d userName groupName id用来查看用户属性 [root@gl gl]# id root uid=0(root) gid=0(root) groups=0(root),1000(gl) [root@gl gl]# gpasswd 阅读全文
Linux如何将用户从一个组中移除 gpasswd -d userName groupName id用来查看用户属性 [root@gl gl]# id root uid=0(root) gid=0(root) groups=0(root),1000(gl) [root@gl gl]# gpasswd 阅读全文
摘要:
Nginx中root和alias的区别 root与alias主要区别在于nginx如何解释location后面的uri,这会使两者分别以不同的方式将请求映射到服务器文件上 root的处理结果是:root路径+location路径 alias的处理结果是:alias路径替换location路径 ali 阅读全文
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; 阅读全文
nginx跳转index.php两种方式 方式一 if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } 方式二 try_files $uri $uri/ /index.php$is_args$args; 阅读全文
摘要:
在CentOS 7系统上安装PHP 7.4 添加EPEL和REMI存储库和软件源 yum -y install epel-release yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 安装YUM管理工具 阅读全文
在CentOS 7系统上安装PHP 7.4 添加EPEL和REMI存储库和软件源 yum -y install epel-release yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 安装YUM管理工具 阅读全文
摘要:
docker查看镜像的所有标签 #!/bin/sh repo_url=https://registry.hub.docker.com/v1/repositories image_name=$1 curl -s ${repo_url}/${image_name}/tags | json_reforma 阅读全文
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,也就是 阅读全文
虚拟IP技术-ip地址漂移技术 虚拟IP 在 TCP/IP 的架构下,所有想上网的电脑,不论是用何种方式连上网路,都必须要有一个唯一的 IP-address。事实上IP地址是主机硬件地址的一种抽象,简单的说,MAC地址是物理地址,IP地址是逻辑地址。 虚拟IP,就是一个未分配给真实主机的IP,也就是 阅读全文
