最近在处理一个单体应该的时候遇到了并发问题 出现并发问题的伪代码: 1 String redisKey="ORDER_CURRENT_KEY"; 2 String orderCurrentKey = redisUtils.get(redisKey); 3 if (Integer.valueOf(or ...
分类:
其他好文 时间:
2020-08-03 23:32:08
阅读次数:
87
线段树专题 https://blog.csdn.net/qq_25605637/article/details/46967529 D-逆序对 D - Minimum Inversion Number 思路 找到第i个数前面有多少比它大的,用vis[x+1]……vis[n-1]求和,从前往后读,出现过 ...
分类:
其他好文 时间:
2020-08-03 23:31:34
阅读次数:
87
记一次Spring Boot项目整合 JavaMailSender 发送电子邮件配置异常调试经验。 ...
分类:
其他好文 时间:
2020-07-30 22:08:37
阅读次数:
173
在搭建集群之前需要准备一个自定义网络做redis之间通讯 docker network create redis --subnet 172.38.0.0/16 然后我们就可以开始搭建集群啦。 废话不多说上代码 (1)先创建6个redis容器 for port in $(seq 1 6); do mk ...
分类:
其他好文 时间:
2020-07-30 16:40:57
阅读次数:
116
为了方便大家早日找到面试状态,这回特地将我之前面试的一些面经贡献出来给大家学习。我在去年的秋招过程中,主要面试的岗位都是以C++语言为主,包括后台、客户端和游戏开发等。
分类:
其他好文 时间:
2020-07-30 10:55:36
阅读次数:
98
Expect脚本批量执行命令 #!/bin/bash cat /root/iplist|while read line do a=($line) expect <<EOF set timeout 3 spawn ssh root@${a[0]} expect { "*yes/no" { send " ...
分类:
其他好文 时间:
2020-07-29 21:53:49
阅读次数:
77
自动化配置脚本oracle12c.sh,如下: #!/bin/sh ##gcc-4.9 ##debian-8.11,buildin glibc version is 2.19 ###################################### cat <<eof>>/etc/profile ...
分类:
数据库 时间:
2020-07-29 15:00:40
阅读次数:
75
#!/bin/sh ##gcc-6##debian-9.13,buildin glibc version is 2.24######################################cat <<eof>>/etc/profileexport DISPLAY=192.168.157.1: ...
分类:
数据库 时间:
2020-07-29 00:45:50
阅读次数:
120
etcd 执行删除命令报错: unexpected status code 401 原来是api版本不对默认是V2,,沃日~~~~~~~~~~~~~~~~~~~ export ETCDCTL_API=3 ...
分类:
其他好文 时间:
2020-07-28 22:18:00
阅读次数:
70
废话不多说了。一切见:setup-oracle11g.sh #!/bin/sh ##gcc-8 ###################################### cat <<eof>>/etc/profile export DISPLAY=192.168.157.1:0 alias cl ...
分类:
数据库 时间:
2020-07-28 17:09:12
阅读次数:
86