安装:sudoapt-getinstallmonit配置文件:sudovim/etc/monit/monitrc主要配置下面选项:SMTP服务器用于外发邮件,这里使用的是AWSSimpleMailServicesetmailserveremail-smtp.us-west-xx.amazonaws.comport587username"AKIAJxxxxxxxxxxxxxxxx"
分类:
其他好文 时间:
2020-01-17 09:55:36
阅读次数:
96
git配置config记住密码设置记住密码(默认15分钟): git config --global credential.helper cache如果想自己设置时间,可以这样做: git config credential.helper 'cache --timeout=3600'这样就设置一个小 ...
分类:
数据库 时间:
2020-01-16 16:07:43
阅读次数:
143
钩子的注册: DefaultMQProducerImpl#registerSendMessageHook注册钩子处理类,可注册多个。 public SendResult sendMessage( final String addr, final String brokerName, final Me ...
分类:
其他好文 时间:
2020-01-16 00:50:30
阅读次数:
93
1.url 2.type 3.timeout : 4.async : 5.cache : 6.data : 7.dataType : 8.beforeSend : 9.complete : 10.success : 11.error : 12.contentType : 13.dataFilter ...
分类:
Web程序 时间:
2020-01-15 19:32:44
阅读次数:
75
这块内容是个关键性流程。 tars调用在调用层,一般只会简单的 PatchPrx proxy = Application::getCommunicator()->stringToProxy<PatchPrx>(_patchRequest.patchobj); proxy->timeout(60000 ...
分类:
其他好文 时间:
2020-01-15 19:16:56
阅读次数:
74
文章目录 一、 Producer端重试 二、 Consumer端重试 1. Exception 2. Timeout总结 对于MQ,可能存在各种异常情况,导致消息无法最终被Consumer消费掉,因此就有了消息失败重试机制。很显示,消息重试分为2种:Producer端重试和Consumer端重试。 ...
分类:
其他好文 时间:
2020-01-15 19:11:14
阅读次数:
95
实现异步编程 Future类似于ES6里面的Promise 3秒后打印出done 通过whenComplete来获取future执行结束后的结果。 timeout 执行时间设置为3秒。超时时间设置为2秒。 FutureBuilder的使用 结束 ...
分类:
其他好文 时间:
2020-01-15 14:21:06
阅读次数:
98
继续完善我上一篇博客:https://www.cnblogs.com/duanhuarong/p/12195466.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> ...
分类:
Web程序 时间:
2020-01-15 12:07:23
阅读次数:
131
基本是端口没有开放的问题 服务器都有安全组 里面放行一下25端口 腾讯云需要单独开通25端口 很坑 这个问题百度好久才发现的!腾讯云25端口默认是关闭的,想要使用25端口邮件服务需要解封25端口,服务器百科网分享开通腾讯云25端口的方法教程:解决25端口的方法1、登录到腾讯云管理控制台; 2、鼠标移... ...
分类:
其他好文 时间:
2020-01-12 00:14:53
阅读次数:
210
问题描述 Tomcat启动默认为45秒 解决方法 ...
分类:
系统相关 时间:
2020-01-11 23:54:54
阅读次数:
134