<-
Apache > HTTP Server > �ĵ� > �汾2.2 > ֧�ֳ���
���� ��л | �������� | ��ƪ���ߣ��𲽹� | ��ҳ�����£�2006��1��13�� | ��ȡ���°汾

ab - Apache HTTP���������ܲ��Թ���

ab��Apache���ı�����Э��(HTTP)�����ܲ��Թ��ߡ��������ͼ����浱ǰ����װ��Apache��ִ�����ܣ���Ҫ����ʾ�㰲װ��Apacheÿ����Դ�����ٸ�����

top

�﷨

ab [ -A auth-username:password ] [ -c concurrency ] [ -C cookie-name=value ] [ -d ] [ -e csv-file ] [ -g gnuplot-file ] [ -h ] [ -H custom-header ] [ -i ] [ -k ] [ -n requests ] [ -p POST-file ] [ -P proxy-auth-username:password ] [ -q ] [ -s ] [ -S ] [ -t timelimit ] [ -T content-type ] [ -v verbosity] [ -V ] [ -w ] [ -x <table>-attributes ] [ -X proxy[:port] ] [ -y <tr>-attributes ] [ -z <td>-attributes ] [http://]hostname[:port]/path

top

ѡ��

-A auth-username:password
��������ṩ������֤��Ϣ���û���������֮����һ��":"��������������base64������ʽ���͡����۷������Ƿ���Ҫ(���Ƿ�����401��֤�������)�����ַ������ᱻ���͡�
-c concurrency
һ�β��������������Ĭ����һ��һ����
-C cookie-name=value
�����󸽼�һ��"Cookie:"ͷ�С��������ʽ�� name=value ��һ�������ԡ��˲��������ظ���
-d
����ʾ"percentage served within XX [ms] table"��Ϣ(Ϊ��ǰ�İ汾�ṩ֧��)��
-e csv-file
����һ�����ŷָ�(CSV)�ļ������а����˴���ÿ����Ӧ�ٷֱ�����(��1%��100%)����Ҫ����Ӧ�ٷֱ�ʱ��(��΢��Ϊ��λ)���������ָ�ʽ�Ѿ�"�����ƻ�"�����Ա�"gnuplot"��ʽ�����á�
-g gnuplot-file
�����в��Խ��д��һ��"gnuplot"����TSV(��Tab�ָ�)�ļ������ļ����Է���ص��뵽 Gnuplot, IDL, Mathematica, Excel�С����еĵ�һ��Ϊ���⡣
-h
��ʾʹ�÷����İ�����Ϣ��
-H custom-header
�����󸽼Ӷ����ͷ��Ϣ���˲����ĵ�����ʽ��һ����Ч��ͷ��Ϣ�У����а�������ð�ŷָ����ֶκ�ֵ(�磺"Accept-Encoding: zip/zop;8bit")��
-i
ִ��HEAD���󣬶�����GET ��
-k
����KeepAlive���ܣ�����һ��HTTP�Ự��ִ�ж������Ĭ�ϲ�����KeepAlive���ܡ�
-n requests
�ڲ��ԻỰ����ִ�е����������Ĭ�Ͻ�ִ��һ�����󣬴�ʱ�������������塣
-p POST-file
������POST���ݵ��ļ���
-P proxy-auth-username:password
��һ����ת�����ṩ������֤��Ϣ���û�����������һ��":"��������������base64������ʽ���͡����۷������Ƿ���Ҫ(���Ƿ�����407������֤�������)�����ַ������ᱻ���͡�
-q
������������������150��abÿ�����Լ10%����100������ʱ������stderr���һ�����ȼ������� -q ��ǿ���������Щ��Ϣ��
-s
���ڱ�����(ab -h �������)ʹ����SSL���ܱ�����https ��������httpЭ���ʱ�򡣴˹�����ʵ�����ģ���ò�Ҫ�á�
-S
����ʾ��ֵ�ͱ�׼ƫ��ֵ�������ھ�ֵ����ֵΪ��׼ƫ��ֵ��1��2��ʱ��Ҳ����ʾ����������Ϣ��Ĭ��ʱ������ʾ��Сֵ/��ֵ/���ֵ����ֵ��(Ϊ��ǰ�İ汾�ṩ֧��)
-t timelimit
���������е�����������ڲ�����ֵ��"-n 50000"��������ʹ�Է������IJ���������һ���̶�����ʱ�����ڡ�Ĭ��ʱ��û��ʱ�����ơ�
-T content-type
POST����ʱ��ʹ�õ�"Content-type"ͷ��Ϣ��
-v verbosity
������ʾ��Ϣ����ϸ�̶ȣ�4�����ֵ����ʾͷ��Ϣ��3�����ֵ������ʾ��Ӧ����(404��200��)��2�����ֵ������ʾ�����������Ϣ��
-V
��ʾ�汾�Ų��˳���
-w
��HTML�����ʽ��������Ĭ��ʱ�����ǰ�ɫ���������п�ȵ�һ�ű�
-x <table>-attributes
����<table>���Ե��ַ����������Ա�����<table ���� > ��
-X proxy[:port]
������ʹ�ô����������
-y <tr>-attributes
����<tr>���Ե��ַ�����
-z <td>-attributes
����<td>���Ե��ַ�����
top

Bugs

�������и��־�̬�����Ĺ̶����ȵĻ����������⣬�������в���������������Ӧͷ�������ⲿ����Ľ���Ҳ�ܼ򵥣�����ܻ��в��������

û������ʵ��HTTP/1.x ��������ijЩ"Ԥ��"����Ӧ��ʽ��strstr()��Ƶ��ʹ�ÿ��ܻ�����������⣬����������ڲ���ab�����Ƿ����������ܡ�