打赏
摘要: 1 服务器节点 # gluster peer status //查看所有节点信息,显示时不包括本节点 # gluster peer probe NODE-NAME //添加节点 # gluster peer detach NODE-NAME //移除节点,需要提前将该节点上的brick移除 2 gl 阅读全文
posted @ 2017-05-08 16:29 隔壁老梁 阅读(1635) 评论(0) 推荐(0) 编辑
摘要: virt-install 命令说明 1、命令作用 建立(provision)新虚拟机 2、语法 virt-install [选项]... 3、说明(DESCRIPTION) virt-install是一个使用“libvirt” hypervisor 管理库构建新虚拟机的命令行工具,此工具使用串行控制 阅读全文
posted @ 2017-04-19 10:28 隔壁老梁 阅读(15425) 评论(2) 推荐(0) 编辑
摘要: 1、通过监听端口进行健康检测 。这种检测方式,haproxy只会去检查后端server的端口,并不能保证服务的真正可用。 配置示例: listen http_proxy 0.0.0.0:80 mode http cookie SERVERID balance roundrobin option ht 阅读全文
posted @ 2017-04-18 10:25 隔壁老梁 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: 由于网站使用了cdn所以$remote_addr获取的ip是cdn的ip,我现在先禁止某些ip访问发现无法禁止cdn传递过来的客户端的ip也就是$http_x_forwarded_for这个参数。比如我的日志格式这样的:log_format main '$http_x_forwarded_for $ 阅读全文
posted @ 2017-03-21 12:06 隔壁老梁 阅读(1525) 评论(0) 推荐(0) 编辑
摘要: http://www.haveneed.cn/article-detials/220 阅读全文
posted @ 2017-03-17 10:24 隔壁老梁 阅读(1190) 评论(0) 推荐(1) 编辑
摘要: 在修改了models.py后,有些用户会喜欢用python manage.py makemigrations生成对应的py代码。 但有时执行python manage.py makemigrations命令,会提示"No changes detected." 可能有用的解决方式如下: 1. 直接使用 阅读全文
posted @ 2017-01-10 18:00 隔壁老梁 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: http://www.haveneed.cn/article-detials/221 阅读全文
posted @ 2017-01-05 12:03 隔壁老梁 阅读(180) 评论(0) 推荐(0) 编辑
摘要: keepalived对后端realserver的健康检查方式主要有以下几种: TCP_CHECK:工作在第4层,keepalived向后端服务器发起一个tcp连接请求,如果后端服务器没有响应或超时,那么这个后端将从服务器池中移除。 TCP_CHECK配置: HTTP_GET:工作在第5层,向指定的U 阅读全文
posted @ 2016-12-19 14:35 隔壁老梁 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: 在写《VMware内存机制初探》之后,原本是计划写一篇《VMware内存机制再探》的,讲一讲VMware内存机制中的另外几个重要内容,比如透明内存共享(TPS, Transparent Page Sharing), Relaim Memory, Ballooning, swapping等等。但有网友 阅读全文
posted @ 2016-12-15 12:11 隔壁老梁 阅读(6549) 评论(0) 推荐(0) 编辑
摘要: CentOS6系统openssl生成证书和自签证书的过程,记录一下,本文基于CentOS 6 64bit。$ yum install openssl openssl-devel 1,生成服务器端的私钥(key文件)$ openssl genrsa -des3 -out server.key 1024 阅读全文
posted @ 2016-12-08 20:34 隔壁老梁 阅读(485) 评论(0) 推荐(0) 编辑