摘要:
redis延迟双删的策略1.为什么要进行延迟双删一般我们在更新数据库数据时,需要同步redis中缓存的数据所以存在两种方法:(1)第一种方案:先执行update操作,再执行缓存清除。(2)第二种方案:先执行缓存清除,再执行update操作。弊端:当存在并发请求时,很容易出现问题(1)第一种方案:当请 阅读全文
摘要:
输入:nginx -V 输出:configure arguments: --prefix=/usr/local/nginx 阅读全文
摘要:
/*上个月今天的当前时间*/ select date_sub(now(),interval 1 month) /*上个月今天的当前时间(时间戳)*/ select UNIX_TIMESTAMP(date_sub(now(),interval 1 month)) /*上个月的第一天*/ select 阅读全文
摘要:
安装所需环境 Nginx 是 C语言 开发,建议在 Linux 上运行,当然,也可以安装 Windows 版本,本篇则使用 CentOS 7 作为安装环境。 一. gcc 安装安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum in 阅读全文
摘要:
nginx装在 /usr/local/nginx/ 启动: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf关闭: /usr/local/nginx/sbin/nginx -s stop 阅读全文
摘要:
好久,好久....没有更博客了。这一次利用闲暇时间,来扯一下关于JVM中的TLAB。 什么是TLAB?它是干什么的?咋们先抛开这个问题,一切的开始得从new对象到指针碰撞开始讲起。 new对象与指针碰撞 new对象怎么就出问题了呢? java中我们要创建一个对象,用关键字new就可以了。但是,在我们 阅读全文
摘要:
groupadd es useradd es -g es -p es chown -R es:es /data0/es/elasticsearch-6.8.0 su es 阅读全文
摘要:
<configuration scan="true"> <conversionRule conversionWord="serverIP" converterClass="com.foo.MyCustomTagConverter" /> <appender name="STDOUT" class=" 阅读全文
摘要:
package com.demo.other; import com.dtflys.forest.annotation.ForestScan; import com.dtflys.forest.scanner.ClassPathClientScanner; import org.springfram 阅读全文
摘要:
命令行调用dubbo远程服务 telnet远程连接到dubbo telnet 127.0.0.1 20880 查看提供服务的接口 dubbo>ls com.test.service.TestInfoQueryService ls 接口名对外提供的方法 dubbo>ls com.test.servic 阅读全文