2017-03-16 KasperDeng
Zabbix HA Requirment On AWS 两台Zabbix Server, 在AWS上,处于一个VPC,但分别处在两个不同的AZ。 Active-Passive mode. 原因:zabbix server 自身有一套external scrips 去AWS cloudwatch 获取AWS service metrics。 如果是采用Active-Active的方式的,两台Active Zabbix server会造成数据冗余或冲突。 继续阅读 »
2016-10-17 Alex Sun
参考文章 iOS学习笔记——HTTPS原理篇 HTTPS工作原理和TCP握手机制 图解SSL/TLS协议 How to Use SSL/TLS with Node.js 在上一篇博文《Node核心模块之crypto》中,提到了加密(摘要,加密解密,签名等)的四种常见类型: Hash(哈希) HMAC(基于哈希的消息认证码) 加密,解密 签名,验证 HTTPS的整个过程和以上几种方法密切相关。 CA证书 CA 即 Certificate Authority (数字证书认证机构),CA证书的签发以及验证包含以下三方: CA Server Client 过程包括: Server生成一对公钥和私钥 Server将公钥以及域名等信 继续阅读 »
2017-08-11 AnnatarHe
众所周知,Nginx 使用 异步, 事件驱动来接收连接。这就意味着对于每个请求不会新建一个专用的进程或者线程(就像传统服务端架构一样),它是在一个工作进程中接收多个连接和请求。为了达成这个目标,Nginx 用在一个非阻塞模式下的 sockets 来实现,并使用例如 epoll 和 kqueue 这样高效的方法。 继续阅读 »
2016-02-25 Oliver Wang
最近在 mac 上用 terminal 启动 python 的时候经常会提示我,端口被占用了,像这样 bash 0 errors found February 25, 2016 - 18:25:21 Django version 1.6.7, using settings 'green.settings' Starting development server at http://0.0.0.0:8000/ Quit the server with CONTROL-C. Error: That port is already in use. ps aux | grep python shell (kkh)➜ green 继续阅读 »
2016-04-24 Mithrilwoodrat
之前没事看了一点 flask 和 werkzeug 的源码, 就想着试一下做一个简单的 WSGI Server。 说到 WSGI, 可以先从 CGI 说起,所谓 CGI(Common Gateway Interface),可以理解为 Web Server 调用本地的可执行文件来参生动态内容的方式。 参考 CGI-维基百科。 继续阅读 »
2016-10-16 Meng Lei
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick Start Create a new post bash $ hexo new "My New Post" More info: Writing Run server bash $ hexo server More in 继续阅读 »
2014-07-09 summer
最近碰到一个问题,应用程序每天的第一次进行系统访问时,会报一个奇怪的错误,最后经过仔细的跟踪,错误信息找到了,如下所示: The last packet successfully received from the server was 60,428,178 milliseconds ago. The last packet sent successfully to the server was 60,428,180 milliseconds ago。 继续阅读 »
2015-06-20 王财勇
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick Start Create a new post bash $ hexo new "My New Post" More info: Writing Run server bash $ hexo server More in 继续阅读 »
2014-12-18 veryyoung
网站买了证书,绿条,多霸气! 那么自然得拦截http的访问方式了。 拦截http,301到https 各种Google,最后在Nginx官网找到例子,配置很简单,如下: server { listen *:80; return 301 https://www.domain.com$request_uri; } 其实就是拦截所有80端口的请求,然后重定向到https的对应uri 完整配置如下: server { listen 443 ssl; ssl_certificate /home/ubuntu/www.domain. 继续阅读 »
2016-08-28 Wenjie Yao
  webpack-dashboard是用于改善开发人员使用webpack时控制台用户体验的一款工具。它摒弃了webpack(尤其是使用dev server时)在命令行内诸多杂乱的信息结构,为webpack在命令行上构建了一个一目了然的仪表盘(dashboard),其中包括构建过程和状态、日志以及涉及的模块列表。有了它,你就可以更加优雅的使用webpack来构建你的代码。   另外,它自开源以来短短半个月,就已经在github上收获了6000多枚star,足见人们对于提升开发工具的用户体验有着巨大的需求。 继续阅读 »