-
linux下支持https的压力测试工具
Jan242010测试了linux下的几种压力测试工具,发现有些不支持https,先简单总结如下: 一、apache的ab工具 /home/webadm/bin/ab -c 50 -n 10000 https://2hei.net/mt/index.htmlSSL not compiled in; no https support看样子是说SSL没有编译进来,所以不支持https 二、apache的flood工具 http://httpd.apache.org/test/flood/ wge ...
阅读全文2条评论
-
nginx authentication
Jan202010今天配置nginx的basic authentication折腾了好半天,开始error_log一直报错:no user/password was provided for basic authentication 我是按照nginx的wiki配置的:location / { auth_basic “Restricted”; au ...
阅读全文作者:u2 | 分类:OpenSource | 标签:nginxnginx authentication已关闭评论
-
[notice] child pid 19818 exit signal Bus error (7)
Jan072010apache logs:[Thu Dec 31 12:27:41 2009] [notice] child pid 19818 exit signal Bus error (7) The first error “Bus Error” is caused by someones (possibly CGI) program crashing. A bus error happens when someone wrote a C program for Intel and re-compiled it for another processor like PPC ...
阅读全文作者:u2 | 分类:OpenSource | 标签:apache
-
使用apache的mod_rewrite模块进行端口重写且保留特殊接口
Jan072010需求如下:网站的apache开通80和443端口,整站强制使用https,把所有80端口的访问转到443,新增需求为要针对某个接口单独开放80端口(80、443均可访问),剩下其他接口保持原有规则。 配置一、RewriteRule !^/TestServlet http://%{SERVER_NAME}/$1 [L,R=301] 是有问题的,$1并没取得匹配的部分。 根据apache文档,使用 ...
阅读全文作者:u2 | 分类:OpenSource使用apache的mod_rewrite模块进行端口重写且保留特殊接口已关闭评论
-
8.8.8.8-google-public-dns-for-free
Dec302009http://code.google.com/speed/public-dns/index.html What is Google Public DNS? Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider. To try it out: * Configure your network settings to u ...
阅读全文作者:u2 | 分类:OpenSource | 标签:dns8.8.8.8-google-public-dns-for-free已关闭评论
-
nagios check_http 处理返回码302的情况
Dec162009
-
xenconsole: Could not read tty from store: No such file or directory
Nov272009#xem在配置heartbeat时遇到的一个问题,重启虚拟机出现了问题,系统无法启动,控制台也无法登陆。xm console xm-2hei.netxenconsole: Could not read tty from store: No such file or directory 原来是xenconsoled进程不在了,重启即可#/usr/sbin/xenconsoled 另外一个xen的小tip是,“]”键可以方便的从控制台退出来, ...
阅读全文作者:u2 | 分类:OpenSourcexenconsole: Could not read tty from store: No such file or directory已关闭评论
-
Read-only file system on CentOS5
Nov252009We have 5 Dell server collocated running CentOS 4.x and 5.x server operating system. Sometime my file system (ext3) goes read-only. I’d like to know what could be causing such a problem? CentOS 5.x Read-only file system form http://www.cyberciti.biz/tips/linux-filesytem-goes-read-only.html:a) H ...
阅读全文作者:u2 | 分类:OpenSourceRead-only file system on CentOS5已关闭评论
-
mptscsih: ioc0: attempting task abort
Nov232009Nov 19 00:03:14 2hei.net kernel: mptscsih: ioc0: attempting task abort! (sc=ffff81004f0c7380)Nov 19 00:03:14 2hei.net kernel: sd 0:0:0:0:Nov 19 00:03:14 2hei.net kernel: command: Read(10): 28 00 00 26 15 d7 00 00 48 00Nov 19 00:03:14 2hei.net kernel: mptbase: ioc0: LogInfo(0x31140000): O ...
阅读全文作者:u2 | 分类:OpenSourcemptscsih: ioc0: attempting task abort已关闭评论
-
linux下用python实现文本menu
Nov172009linux用shell实现menu比较简单,今天用python实现了一个,因为python没有switch语法,所以使用了dict来替代,另外调用了linux的clear来清屏,本例只是说明一下简单的实现方法,菜单的命令或者语句可以自由发挥 呵呵。 截个图先: 具体代码如下:#!/usr/bin/evn python# -*- coding: utf-8 -*-#Author: 2hei#2hei.net#Da ...
阅读全文linux下用python实现文本menu已关闭评论