摘要:
https://blog.csdn.net/zyxwvuuvwxyz/article/details/104164036 https://blog.csdn.net/weixin_48803304/article/details/107297178 笔记 redis info replication 阅读全文
摘要:
https://www.cnblogs.com/heqiuyong/p/10463334.html 原文复制过来的 一、安装gcc依赖 由于 redis 是用 C 语言开发,安装之前必先确认是否安装 gcc 环境(gcc -v),如果没有安装,执行以下命令进行安装 [root@localhost l 阅读全文
摘要:
https://baijiahao.baidu.com/s?id=1656793973110577341&wfr=spider&for=pc 1、安装 的最新版本 yum update yum install mysql-server 2、查看mysql是否安装成功 ps -ef | grep my 阅读全文
摘要:
https://www.98wg.cn/wlrj/807.html 阅读全文
摘要:
场景:很多情况下我们分布式微服务都需要用到分布式锁!但是第三方分布式锁插件不一定可靠。redisson 是常用的分布式加锁方式!但是难免有redis不可用的情况!这时候需要利用乐观锁。 方法:表字段 加一个版本号,或者别的字段也可以!加版本号,可以知道控制顺序而已!在update 的时候可以wher 阅读全文
摘要:
<dependency> <groupId>com.taobao.txc</groupId> <artifactId>txc-client</artifactId> <version>${txc-version}</version> <scope>system</scope> <systemPath 阅读全文
摘要:
https://help.aliyun.com/document_detail/157850.html?spm=a2c4g.11186623.6.554.1d7a341eOT0yWZ 阅读全文
摘要:
public long setNx(String key, String value, int expire) { long ret = 0; Jedis jedis = jedisPool.getResource(); try { ret = jedis.setnx(key, value); if 阅读全文
摘要:
mysql : cd /etc/init.d/ ./mysql start nginx : cd /usr/local/nginx--with-http_stub_status_module/sbin ./nginx 阅读全文
摘要:
https://blog.csdn.net/qq_28289405/article/details/80243476 阅读全文