This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
编译mysql 5.7.13源码时,购买的是阿里云,内存只有512M,出现 item_geofunc.cc.o error 1的出错,找到了解决办法如下: | |
# dd if=/dev/zero of=/swapfile bs=1k count=2048000 --获取要增加的2G的SWAP文件块 | |
# mkswap /swapfile -- 创建SWAP文件 | |
# swapon /swapfile -- 激活SWAP文件 | |
# swapon -s -- 查看SWAP信息是否正确 | |
# echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab -- 添加到fstab文件中让系统引导时自动启动 | |
注意, swapfile文件的路径在/var/下 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 现在流行微服务,公司架构也是采用微服务的框架去提供服务。而我所在团队处于微服务体系的应用方,也可以说是游离在微服务体系之外。 | |
此处主要总结下微服务出现异常时的处理方式: | |
1. 微服务接口不稳定:调用时,经常超时;尤其是一些支付回调的接口的接口,会产生导致数据不完整; | |
处理办法一:采用重发机制进行,将数据补齐; | |
处理办法二:增加对账接口,定时对账,将数据补齐 |