CentOS上安装Web性能测试工具Siege & 示例

前端之家收集整理的这篇文章主要介绍了CentOS上安装Web性能测试工具Siege & 示例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文记录一次在CentOS上安装Web性能测试工具Siege的步骤,并对安装过程中遇到的问题进行解决~

Siege是什么?

Siege是一个压力测试和评测工具,设计用于WEB开发这评估应用在压力下的承受能力:可以根据配置对一个WEB站点进行多用户的并发访问,记录每个用户所有请求过程的相应时间,并在一定数量的并发访问下重复进行。

官网【https://www.joedog.org/

安装Siege

下载Siege安装包@H_403_31@

可以访问【http://download.joedog.org/siege/】下载Siege安装包,本文下载的是siege-4.0.2.tar.gz

使用wget下载安装包~

wget http://download.joedog.org/siege/siege-4.0.2.tar.gz

如:

  1. [root@test03 srv]# wget http://download.joedog.org/siege/siege-4.0.2.tar.gz
  2. --2017-06-02 17:30:09-- http://download.joedog.org/siege/siege-4.0.2.tar.gz
  3. Resolving download.joedog.org... 52.24.24.107
  4. Connecting to download.joedog.org|52.24.24.107|:80... connected.
  5. HTTP request sent,awaiting response... 200 OK
  6. Length: 521228 (509K) [application/x-gzip]
  7. Saving to: siege-4.0.2.tar.gz
  8.  
  9. 100%[====================================================================================================================================================================================================================================>] 521,228 387K/s in 1.3s
  10.  
  11. 2017-06-02 17:30:12 (387 KB/s) - siege-4.0.2.tar.gz saved [521228/521228]
  12.  
  13. [root@test03 srv]#

解压@H_403_31@

将下载好的siege安装包解开~

tar -zvxf siege-4.0.2.tar.gz

如,

  1. [root@test03 srv]# tar -zvxf siege-4.0.2.tar.gz
  2. siege-4.0.2/
  3. siege-4.0.2/src/
  4. siege-4.0.2/src/timer.h
  5. siege-4.0.2/src/handler.c
  6. siege-4.0.2/src/browser.c
  7. siege-4.0.2/src/handler.h
  8. siege-4.0.2/src/base64.h
  9. siege-4.0.2/src/cookie.h
  10. siege-4.0.2/src/timer.c
  11. siege-4.0.2/src/main.c
  12. siege-4.0.2/src/init.c
  13. siege-4.0.2/src/util.c
  14. siege-4.0.2/src/auth.h
  15. siege-4.0.2/src/cookies.h
  16. siege-4.0.2/src/data.h
  17. siege-4.0.2/src/stralloc.c
  18. siege-4.0.2/src/creds.c
  19. siege-4.0.2/src/page.c
  20. siege-4.0.2/src/cache.c
  21. siege-4.0.2/src/data.c
  22. siege-4.0.2/src/perl.h
  23. siege-4.0.2/src/cookies.c
  24. siege-4.0.2/src/http.c
  25. siege-4.0.2/src/hash.c
  26. siege-4.0.2/src/util.h
  27. siege-4.0.2/src/response.h
  28. siege-4.0.2/src/response.c
  29. siege-4.0.2/src/stralloc.h
  30. siege-4.0.2/src/ssl.c
  31. siege-4.0.2/src/ftp.c
  32. siege-4.0.2/src/date.h
  33. siege-4.0.2/src/hash.h
  34. siege-4.0.2/src/init.h
  35. siege-4.0.2/src/page.h
  36. siege-4.0.2/src/url.h
  37. siege-4.0.2/src/date.c
  38. siege-4.0.2/src/notify.h
  39. siege-4.0.2/src/parser.c
  40. siege-4.0.2/src/load.h
  41. siege-4.0.2/src/load.c
  42. siege-4.0.2/src/http.h
  43. siege-4.0.2/src/ansidecl.h
  44. siege-4.0.2/src/md5.c
  45. siege-4.0.2/src/ssl.h
  46. siege-4.0.2/src/memory.h
  47. siege-4.0.2/src/array.c
  48. siege-4.0.2/src/browser.h
  49. siege-4.0.2/src/getopt.c
  50. siege-4.0.2/src/version.c
  51. siege-4.0.2/src/array.h
  52. siege-4.0.2/src/Makefile.in
  53. siege-4.0.2/src/eval.c
  54. siege-4.0.2/src/parser.h
  55. siege-4.0.2/src/setup.h
  56. siege-4.0.2/src/log.h
  57. siege-4.0.2/src/cache.h
  58. siege-4.0.2/src/crew.c
  59. siege-4.0.2/src/creds.h
  60. siege-4.0.2/src/log.c
  61. siege-4.0.2/src/sock.c
  62. siege-4.0.2/src/memory.c
  63. siege-4.0.2/src/crew.h
  64. siege-4.0.2/src/version.h
  65. siege-4.0.2/src/ftp.h
  66. siege-4.0.2/src/cfg.c
  67. siege-4.0.2/src/url.c
  68. siege-4.0.2/src/eval.h
  69. siege-4.0.2/src/md5.h
  70. siege-4.0.2/src/perl.c
  71. siege-4.0.2/src/Makefile.am
  72. siege-4.0.2/src/sock.h
  73. siege-4.0.2/src/cfg.h
  74. siege-4.0.2/src/getopt1.c
  75. siege-4.0.2/src/auth.c
  76. siege-4.0.2/src/notify.c
  77. siege-4.0.2/src/base64.c
  78. siege-4.0.2/src/cookie.c
  79. siege-4.0.2/COPYING
  80. siege-4.0.2/utils/
  81. siege-4.0.2/utils/compile
  82. siege-4.0.2/utils/config.guess
  83. siege-4.0.2/utils/install-sh
  84. siege-4.0.2/utils/config.sub
  85. siege-4.0.2/utils/bombardment.in
  86. siege-4.0.2/utils/ltmain.sh
  87. siege-4.0.2/utils/siege2csv.in
  88. siege-4.0.2/utils/bootstrap
  89. siege-4.0.2/utils/missing
  90. siege-4.0.2/utils/mkstamp
  91. siege-4.0.2/utils/Makefile.in
  92. siege-4.0.2/utils/siege.config.in
  93. siege-4.0.2/utils/Makefile.am
  94. siege-4.0.2/utils/mkinstalldirs
  95. siege-4.0.2/utils/mdate-sh
  96. siege-4.0.2/doc/
  97. siege-4.0.2/doc/siege2csv.1.in
  98. siege-4.0.2/doc/urls.txt
  99. siege-4.0.2/doc/Makefile.in
  100. siege-4.0.2/doc/siege.config.1.in
  101. siege-4.0.2/doc/siege2csv.pod
  102. siege-4.0.2/doc/bombardment.pod
  103. siege-4.0.2/doc/siege.pod
  104. siege-4.0.2/doc/bombardment.1.in
  105. siege-4.0.2/doc/siege.config.pod
  106. siege-4.0.2/doc/siege.1.in
  107. siege-4.0.2/doc/Makefile.am
  108. siege-4.0.2/doc/siegerc.in
  109. siege-4.0.2/INSTALL
  110. siege-4.0.2/include/
  111. siege-4.0.2/include/joedog/
  112. siege-4.0.2/include/joedog/path.h
  113. siege-4.0.2/include/joedog/getopt.h
  114. siege-4.0.2/include/joedog/Makefile.in
  115. siege-4.0.2/include/joedog/defs.h
  116. siege-4.0.2/include/joedog/boolean.h
  117. siege-4.0.2/include/joedog/Makefile.am
  118. siege-4.0.2/include/config.h.in
  119. siege-4.0.2/include/Makefile.in
  120. siege-4.0.2/include/Makefile.am
  121. siege-4.0.2/README.md
  122. siege-4.0.2/install-sh
  123. siege-4.0.2/configure.ac
  124. siege-4.0.2/aclocal.m4
  125. siege-4.0.2/acinclude.m4
  126. siege-4.0.2/ChangeLog
  127. siege-4.0.2/Makefile.in
  128. siege-4.0.2/html/
  129. siege-4.0.2/html/basic.PHP
  130. siege-4.0.2/html/README
  131. siege-4.0.2/html/etag.PHP
  132. siege-4.0.2/html/cookie-expire.PHP
  133. siege-4.0.2/html/cache-control.PHP
  134. siege-4.0.2/html/Makefile.in
  135. siege-4.0.2/html/login.PHP
  136. siege-4.0.2/html/Makefile.am
  137. siege-4.0.2/configure
  138. siege-4.0.2/Makefile.am
  139. siege-4.0.2/acspecific.m4
  140. siege-4.0.2/AUTHORS
  141. [root@test03 srv]#

configure@H_403_31@

进入解压缩后siege目录,执行./configure

  1. [root@test03 srv]# cd siege-4.0.2
  2. [root@test03 siege-4.0.2]# ./configure
  3. checking for a BSD-compatible install... /usr/bin/install -c
  4. checking whether build environment is sane... yes
  5. checking for a thread-safe mkdir -p... /bin/mkdir -p
  6. checking for gawk... gawk
  7. checking whether make sets $(MAKE)... yes
  8. checking build system type... x86_64-unknown-linux-gnu
  9. checking host system type... x86_64-unknown-linux-gnu
  10. checking for style of include used by make... GNU
  11. checking for gcc... no
  12. checking for cc... no
  13. checking for cl.exe... no
  14. configure: error: in `/srv/siege-4.0.2':
  15. configure: error: no acceptable C compiler found in $PATH
  16. See `config.log' for more details
  17. [root@test03 siege-4.0.2]#

报错了~

configure: error: no acceptable C compiler found in $PATH

解决方法

安装gcc即可~

安装gcc

yum install gcc

  1. [root@test03 siege-4.0.2]# yum install gcc
  2. Loaded plugins: fastestmirror
  3. Setting up Install Process
  4. Loading mirror speeds from cached hostfile
  5. ISO | 3.7 kB 00:00
  6. Resolving Dependencies
  7. --> Running transaction check
  8. ---> Package gcc.x86_64 0:4.4.7-18.el6 will be installed
  9. --> Processing Dependency: libgomp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.x86_64
  10. --> Processing Dependency: cpp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.x86_64
  11. --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-18.el6.x86_64
  12. --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-18.el6.x86_64
  13. --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-18.el6.x86_64
  14. --> Running transaction check
  15. ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
  16. --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  17. --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  18. ---> Package cpp.x86_64 0:4.4.7-18.el6 will be installed
  19. --> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-18.el6.x86_64
  20. ---> Package glibc-devel.x86_64 0:2.12-1.209.el6 will be installed
  21. --> Processing Dependency: glibc-headers = 2.12-1.209.el6 for package: glibc-devel-2.12-1.209.el6.x86_64
  22. --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.209.el6.x86_64
  23. ---> Package libgomp.x86_64 0:4.4.7-18.el6 will be installed
  24. --> Running transaction check
  25. ---> Package glibc-headers.x86_64 0:2.12-1.209.el6 will be installed
  26. --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.209.el6.x86_64
  27. --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.209.el6.x86_64
  28. ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
  29. ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
  30. --> Running transaction check
  31. ---> Package kernel-headers.x86_64 0:2.6.32-696.el6 will be installed
  32. --> Finished Dependency Resolution
  33.  
  34. Dependencies Resolved
  35.  
  36. ==============================================================================================================================================================================================================================================================================
  37. Package Arch Version Repository Size
  38. ==============================================================================================================================================================================================================================================================================
  39. Installing:
  40. gcc x86_64 4.4.7-18.el6 ISO 10 M
  41. Installing for dependencies:
  42. cloog-ppl x86_64 0.15.7-1.2.el6 ISO 93 k
  43. cpp x86_64 4.4.7-18.el6 ISO 3.7 M
  44. glibc-devel x86_64 2.12-1.209.el6 ISO 990 k
  45. glibc-headers x86_64 2.12-1.209.el6 ISO 619 k
  46. kernel-headers x86_64 2.6.32-696.el6 ISO 4.5 M
  47. libgomp x86_64 4.4.7-18.el6 ISO 134 k
  48. mpfr x86_64 2.4.1-6.el6 ISO 157 k
  49. ppl x86_64 0.10.2-11.el6 ISO 1.3 M
  50.  
  51. Transaction Summary
  52. ==============================================================================================================================================================================================================================================================================
  53. Install 9 Package(s)
  54.  
  55. Total download size: 22 M
  56. Installed size: 39 M
  57. Is this ok [y/N]:

选择y

  1. Is this ok [y/N]: y
  2. Downloading Packages:
  3. (1/9): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm | 93 kB 00:00
  4. (2/9): cpp-4.4.7-18.el6.x86_64.rpm | 3.7 MB 00:00
  5. (3/9): gcc-4.4.7-18.el6.x86_64.rpm | 10 MB 00:00
  6. (4/9): glibc-devel-2.12-1.209.el6.x86_64.rpm | 990 kB 00:00
  7. (5/9): glibc-headers-2.12-1.209.el6.x86_64.rpm | 619 kB 00:00
  8. (6/9): kernel-headers-2.6.32-696.el6.x86_64.rpm | 4.5 MB 00:00
  9. (7/9): libgomp-4.4.7-18.el6.x86_64.rpm | 134 kB 00:00
  10. (8/9): mpfr-2.4.1-6.el6.x86_64.rpm | 157 kB 00:00
  11. (9/9): ppl-0.10.2-11.el6.x86_64.rpm | 1.3 MB 00:00
  12. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  13. Total 24 MB/s | 22 MB 00:00
  14. Running rpm_check_debug
  15. Running Transaction Test
  16. Transaction Test Succeeded
  17. Running Transaction
  18. Installing : ppl-0.10.2-11.el6.x86_64 1/9
  19. Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 2/9
  20. Installing : mpfr-2.4.1-6.el6.x86_64 3/9
  21. Installing : cpp-4.4.7-18.el6.x86_64 4/9
  22. Installing : libgomp-4.4.7-18.el6.x86_64 5/9
  23. Installing : kernel-headers-2.6.32-696.el6.x86_64 6/9
  24. Installing : glibc-headers-2.12-1.209.el6.x86_64 7/9
  25. Installing : glibc-devel-2.12-1.209.el6.x86_64 8/9
  26. Installing : gcc-4.4.7-18.el6.x86_64 9/9
  27. Verifying : kernel-headers-2.6.32-696.el6.x86_64 1/9
  28. Verifying : cpp-4.4.7-18.el6.x86_64 2/9
  29. Verifying : glibc-headers-2.12-1.209.el6.x86_64 3/9
  30. Verifying : libgomp-4.4.7-18.el6.x86_64 4/9
  31. Verifying : mpfr-2.4.1-6.el6.x86_64 5/9
  32. Verifying : glibc-devel-2.12-1.209.el6.x86_64 6/9
  33. Verifying : gcc-4.4.7-18.el6.x86_64 7/9
  34. Verifying : ppl-0.10.2-11.el6.x86_64 8/9
  35. Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 9/9
  36.  
  37. Installed:
  38. gcc.x86_64 0:4.4.7-18.el6
  39.  
  40. Dependency Installed:
  41. cloog-ppl.x86_64 0:0.15.7-1.2.el6 cpp.x86_64 0:4.4.7-18.el6 glibc-devel.x86_64 0:2.12-1.209.el6 glibc-headers.x86_64 0:2.12-1.209.el6 kernel-headers.x86_64 0:2.6.32-696.el6 libgomp.x86_64 0:4.4.7-18.el6 mpfr.x86_64 0:2.4.1-6.el6 ppl.x86_64 0:0.10.2-11.el6
  42.  
  43. Complete!
  44. [root@test03 siege-4.0.2]#

再次执行./confgiure

  1. [root@test03 siege-4.0.2]# ./configure
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. checking for a thread-safe mkdir -p... /bin/mkdir -p
  5. checking for gawk... gawk
  6. checking whether make sets $(MAKE)... yes
  7. checking build system type... x86_64-unknown-linux-gnu
  8. checking host system type... x86_64-unknown-linux-gnu
  9. checking for style of include used by make... GNU
  10. checking for gcc... gcc
  11. checking whether the C compiler works... yes
  12. checking for C compiler default output file name... a.out
  13. checking for suffix of executables...
  14. checking whether we are cross compiling... no
  15. checking for suffix of object files... o
  16. checking whether we are using the GNU C compiler... yes
  17. checking whether gcc accepts -g... yes
  18. checking for gcc option to accept ISO C89... none needed
  19. checking dependency style of gcc... none
  20. checking how to run the C preprocessor... gcc -E
  21. checking for grep that handles long lines and -e... /bin/grep
  22. checking for egrep... /bin/grep -E
  23. checking for ANSI C header files... yes
  24. checking for sys/types.h... yes
  25. checking for sys/stat.h... yes
  26. checking for stdlib.h... yes
  27. checking for string.h... yes
  28. checking for memory.h... yes
  29. checking for strings.h... yes
  30. checking for inttypes.h... yes
  31. checking for stdint.h... yes
  32. checking for unistd.h... yes
  33. checking minix/config.h usability... no
  34. checking minix/config.h presence... no
  35. checking for minix/config.h... no
  36. checking whether it is safe to define __EXTENSIONS__... yes
  37. checking for gcc... (cached) gcc
  38. checking whether we are using the GNU C compiler... (cached) yes
  39. checking whether gcc accepts -g... (cached) yes
  40. checking for gcc option to accept ISO C89... (cached) none needed
  41. checking dependency style of gcc... (cached) none
  42. checking for a sed that does not truncate output... /bin/sed
  43. checking for ld used by gcc... /usr/bin/ld
  44. checking if the linker (/usr/bin/ld) is GNU ld... yes
  45. checking for /usr/bin/ld option to reload object files... -r
  46. checking for BSD-compatible nm... /usr/bin/nm -B
  47. checking whether ln -s works... yes
  48. checking how to recognise dependent libraries... pass_all
  49. checking dlfcn.h usability... yes
  50. checking dlfcn.h presence... yes
  51. checking for dlfcn.h... yes
  52. checking for g++... no
  53. checking for c++... no
  54. checking for gpp... no
  55. checking for aCC... no
  56. checking for CC... no
  57. checking for cxx... no
  58. checking for cc++... no
  59. checking for cl.exe... no
  60. checking for FCC... no
  61. checking for KCC... no
  62. checking for RCC... no
  63. checking for xlC_r... no
  64. checking for xlC... no
  65. checking whether we are using the GNU C++ compiler... no
  66. checking whether g++ accepts -g... no
  67. checking dependency style of g++... none
  68. checking for g77... no
  69. checking for xlf... no
  70. checking for f77... no
  71. checking for frt... no
  72. checking for pgf77... no
  73. checking for cf77... no
  74. checking for fort77... no
  75. checking for fl32... no
  76. checking for af77... no
  77. checking for xlf90... no
  78. checking for f90... no
  79. checking for pgf90... no
  80. checking for pghpf... no
  81. checking for epcf90... no
  82. checking for gfortran... no
  83. checking for g95... no
  84. checking for xlf95... no
  85. checking for f95... no
  86. checking for fort... no
  87. checking for ifort... no
  88. checking for ifc... no
  89. checking for efc... no
  90. checking for pgfortran... no
  91. checking for pgf95... no
  92. checking for lf95... no
  93. checking for ftn... no
  94. checking whether we are using the GNU Fortran 77 compiler... no
  95. checking whether accepts -g... no
  96. checking the maximum length of command line arguments... 32768
  97. checking command to parse /usr/bin/nm -B output from gcc object... ok
  98. checking for objdir... .libs
  99. checking for ar... ar
  100. checking for ranlib... ranlib
  101. checking for strip... strip
  102. checking if gcc supports -fno-rtti -fno-exceptions... no
  103. checking for gcc option to produce PIC... -fPIC
  104. checking if gcc PIC flag -fPIC works... yes
  105. checking if gcc static flag -static works... no
  106. checking if gcc supports -c -o file.o... yes
  107. checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  108. checking whether -lc should be explicitly linked in... no
  109. checking dynamic linker characteristics... GNU/Linux ld.so
  110. checking how to hardcode library paths into programs... immediate
  111. checking whether stripping libraries is possible... yes
  112. checking if libtool supports shared libraries... yes
  113. checking whether to build shared libraries... yes
  114. checking whether to build static libraries... yes
  115. configure: creating libtool
  116. appending configuration tag "CXX" to libtool
  117. appending configuration tag "F77" to libtool
  118. checking for perl... /usr/bin/perl
  119. checking for a POSIX-compliant shell... /bin/sh
  120. checking whether make sets $(MAKE)... (cached) yes
  121. checking for buggy pthread mutex initializers... no
  122. checking for dlopen() in -ldld... no
  123. checking for dlopen() in -ldl... yes
  124. checking for random device... yes
  125. checking for ssl support... yes
  126. checking /include/openssl/opensslv.h usability... no
  127. checking /include/openssl/opensslv.h presence... no
  128. checking for /include/openssl/opensslv.h... no
  129. checking /usr/include/openssl/opensslv.h usability... no
  130. checking /usr/include/openssl/opensslv.h presence... no
  131. checking for /usr/include/openssl/opensslv.h... no
  132. checking /usr/local/include/openssl/opensslv.h usability... no
  133. checking /usr/local/include/openssl/opensslv.h presence... no
  134. checking for /usr/local/include/openssl/opensslv.h... no
  135. checking /usr/local/ssl/include/openssl/opensslv.h usability... no
  136. checking /usr/local/ssl/include/openssl/opensslv.h presence... no
  137. checking for /usr/local/ssl/include/openssl/opensslv.h... no
  138. checking /usr/pkg/include/openssl/opensslv.h usability... no
  139. checking /usr/pkg/include/openssl/opensslv.h presence... no
  140. checking for /usr/pkg/include/openssl/opensslv.h... no
  141. checking /usr/lib/ssl/include/openssl/opensslv.h usability... no
  142. checking /usr/lib/ssl/include/openssl/opensslv.h presence... no
  143. checking for /usr/lib/ssl/include/openssl/opensslv.h... no
  144. checking /usr/include/ssl/include/openssl/opensslv.h usability... no
  145. checking /usr/include/ssl/include/openssl/opensslv.h presence... no
  146. checking for /usr/include/ssl/include/openssl/opensslv.h... no
  147. checking /usr/include/include/openssl/opensslv.h usability... no
  148. checking /usr/include/include/openssl/opensslv.h presence... no
  149. checking for /usr/include/include/openssl/opensslv.h... no
  150. checking for zlib support... yes
  151. checking /include/zlib.h usability... no
  152. checking /include/zlib.h presence... no
  153. checking for /include/zlib.h... no
  154. checking /usr/include/zlib.h usability... no
  155. checking /usr/include/zlib.h presence... no
  156. checking for /usr/include/zlib.h... no
  157. checking /usr/local/include/zlib.h usability... no
  158. checking /usr/local/include/zlib.h presence... no
  159. checking for /usr/local/include/zlib.h... no
  160. checking /usr/local/ssl/include/zlib.h usability... no
  161. checking /usr/local/ssl/include/zlib.h presence... no
  162. checking for /usr/local/ssl/include/zlib.h... no
  163. checking /usr/pkg/include/zlib.h usability... no
  164. checking /usr/pkg/include/zlib.h presence... no
  165. checking for /usr/pkg/include/zlib.h... no
  166. checking /usr/lib/zlib/include/zlib.h usability... no
  167. checking /usr/lib/zlib/include/zlib.h presence... no
  168. checking for /usr/lib/zlib/include/zlib.h... no
  169. checking /usr/include/zlib/include/zlib.h usability... no
  170. checking /usr/include/zlib/include/zlib.h presence... no
  171. checking for /usr/include/zlib/include/zlib.h... no
  172. checking /usr/include/include/zlib.h usability... no
  173. checking /usr/include/include/zlib.h presence... no
  174. checking for /usr/include/include/zlib.h... no
  175. checking for inline... inline
  176. checking for int8_t... yes
  177. checking for int16_t... yes
  178. checking for int32_t... yes
  179. checking for int64_t... yes
  180. checking for uint8_t... yes
  181. checking for uint16_t... yes
  182. checking for uint32_t... yes
  183. checking for uint64_t... yes
  184. checking for u_int32_t... yes
  185. checking for ssize_t... yes
  186. checking for ANSI C header files... (cached) yes
  187. checking for sys/wait.h that is POSIX.1 compatible... yes
  188. checking fcntl.h usability... yes
  189. checking fcntl.h presence... yes
  190. checking for fcntl.h... yes
  191. checking limits.h usability... yes
  192. checking limits.h presence... yes
  193. checking for limits.h... yes
  194. checking for unistd.h... (cached) yes
  195. checking signal.h usability... yes
  196. checking signal.h presence... yes
  197. checking for signal.h... yes
  198. checking sys/socket.h usability... yes
  199. checking sys/socket.h presence... yes
  200. checking for sys/socket.h... yes
  201. checking sys/select.h usability... yes
  202. checking sys/select.h presence... yes
  203. checking for sys/select.h... yes
  204. checking for sys/types.h... (cached) yes
  205. checking sys/time.h usability... yes
  206. checking sys/time.h presence... yes
  207. checking for sys/time.h... yes
  208. checking sys/times.h usability... yes
  209. checking sys/times.h presence... yes
  210. checking for sys/times.h... yes
  211. checking sys/resource.h usability... yes
  212. checking sys/resource.h presence... yes
  213. checking for sys/resource.h... yes
  214. checking errno.h usability... yes
  215. checking errno.h presence... yes
  216. checking for errno.h... yes
  217. checking arpa/inet.h usability... yes
  218. checking arpa/inet.h presence... yes
  219. checking for arpa/inet.h... yes
  220. checking netinet/in.h usability... yes
  221. checking netinet/in.h presence... yes
  222. checking for netinet/in.h... yes
  223. checking netdb.h usability... yes
  224. checking netdb.h presence... yes
  225. checking for netdb.h... yes
  226. checking pthread.h usability... yes
  227. checking pthread.h presence... yes
  228. checking for pthread.h... yes
  229. checking for string.h... (cached) yes
  230. checking for strings.h... (cached) yes
  231. checking sched.h usability... yes
  232. checking sched.h presence... yes
  233. checking for sched.h... yes
  234. checking openssl/e_os.h usability... no
  235. checking openssl/e_os.h presence... no
  236. checking for openssl/e_os.h... no
  237. checking openssl/e_os2.h usability... no
  238. checking openssl/e_os2.h presence... no
  239. checking for openssl/e_os2.h... no
  240. checking for an ANSI C-conforming const... yes
  241. checking for size_t... yes
  242. checking whether time.h and sys/time.h may both be included... yes
  243. checking return type of signal handlers... void
  244. checking for working alloca.h... yes
  245. checking for alloca... yes
  246. checking for strchr... yes
  247. checking for memcpy... yes
  248. checking for strncpy... yes
  249. checking for strstr... yes
  250. checking for strlen... yes
  251. checking for strncasecmp... yes
  252. checking for strncmp... yes
  253. checking for socket... yes
  254. checking for gethostbyname... yes
  255. checking for snprintf... yes
  256. checking for strdup... yes
  257. checking for rand_r... yes
  258. checking for localtime_r... yes
  259. checking for gmtime_r... yes
  260. checking for getipnodebyname... no
  261. checking for freehostent... no
  262. checking for getopt_long... yes
  263. checking for poll... yes
  264. checking for socket in -lsocket... no
  265. checking for pthread_attr_init in -lpthread... yes
  266. checking that generated files are newer than configure... done
  267. configure: creating ./config.status
  268. config.status: creating Makefile
  269. config.status: creating src/Makefile
  270. config.status: creating doc/Makefile
  271. config.status: creating html/Makefile
  272. config.status: creating include/Makefile
  273. config.status: creating include/joedog/Makefile
  274. config.status: creating utils/Makefile
  275. config.status: creating include/config.h
  276. config.status: executing depfiles commands
  277. config.status: executing default-1 commands
  278. config.status: executing default-2 commands
  279. config.status: executing default-3 commands
  280. config.status: executing default-4 commands
  281. config.status: executing default-5 commands
  282. config.status: executing default-6 commands
  283.  
  284. --------------------------------------------------------
  285. Configuration is complete
  286.  
  287. Run the following commands to complete the installation:
  288. make
  289. make install
  290.  
  291. For complete documentation: http://www.joedog.org
  292. --------------------------------------------------------
  293. [root@test03 siege-4.0.2]#

make@H_403_31@

后执行make

  1. [root@test03 siege-4.0.2]# make
  2. Making all in .
  3. make[1]: Entering directory `/srv/siege-4.0.2'
  4. make[1]: Nothing to be done for `all-am'.
  5. make[1]: Leaving directory `/srv/siege-4.0.2'
  6. Making all in include
  7. make[1]: Entering directory `/srv/siege-4.0.2/include'
  8. make all-recursive
  9. make[2]: Entering directory `/srv/siege-4.0.2/include'
  10. Making all in joedog
  11. make[3]: Entering directory `/srv/siege-4.0.2/include/joedog'
  12. make[3]: Nothing to be done for `all'.
  13. make[3]: Leaving directory `/srv/siege-4.0.2/include/joedog'
  14. make[3]: Entering directory `/srv/siege-4.0.2/include'
  15. make[3]: Leaving directory `/srv/siege-4.0.2/include'
  16. make[2]: Leaving directory `/srv/siege-4.0.2/include'
  17. make[1]: Leaving directory `/srv/siege-4.0.2/include'
  18. Making all in src
  19. make[1]: Entering directory `/srv/siege-4.0.2/src'
  20. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c array.c
  21. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c auth.c
  22. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c base64.c
  23. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c browser.c
  24. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c cache.c
  25. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c cookie.c
  26. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c cookies.c
  27. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c cfg.c
  28. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c creds.c
  29. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c crew.c
  30. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c data.c
  31. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c date.c
  32. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c eval.c
  33. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c ftp.c
  34. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c getopt.c
  35. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c getopt1.c
  36. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c handler.c
  37. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c hash.c
  38. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c http.c
  39. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c init.c
  40. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c load.c
  41. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c log.c
  42. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c main.c
  43. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c md5.c
  44. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c memory.c
  45. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c notify.c
  46. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c page.c
  47. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c parser.c
  48. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c perl.c
  49. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c response.c
  50. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c sock.c
  51. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c ssl.c
  52. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c stralloc.c
  53. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c timer.c
  54. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c url.c
  55. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c util.c
  56. gcc -DHAVE_CONFIG_H -I. -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -c version.c
  57. /bin/sh ../libtool --tag=CC --mode=link gcc -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -lpthread -o siege array.o auth.o base64.o browser.o cache.o cookie.o cookies.o cfg.o creds.o crew.o data.o date.o eval.o ftp.o getopt.o getopt1.o handler.o hash.o http.o init.o load.o log.o main.o md5.o memory.o notify.o page.o parser.o perl.o response.o sock.o ssl.o stralloc.o timer.o url.o util.o version.o
  58. mkdir .libs
  59. gcc -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -g -O2 -o siege array.o auth.o base64.o browser.o cache.o cookie.o cookies.o cfg.o creds.o crew.o data.o date.o eval.o ftp.o getopt.o getopt1.o handler.o hash.o http.o init.o load.o log.o main.o md5.o memory.o notify.o page.o parser.o perl.o response.o sock.o ssl.o stralloc.o timer.o url.o util.o version.o -lpthread
  60. make[1]: Leaving directory `/srv/siege-4.0.2/src'
  61. Making all in utils
  62. make[1]: Entering directory `/srv/siege-4.0.2/utils'
  63. make[1]: Nothing to be done for `all'.
  64. make[1]: Leaving directory `/srv/siege-4.0.2/utils'
  65. Making all in doc
  66. make[1]: Entering directory `/srv/siege-4.0.2/doc'
  67. make[1]: Nothing to be done for `all'.
  68. make[1]: Leaving directory `/srv/siege-4.0.2/doc'
  69. Making all in html
  70. make[1]: Entering directory `/srv/siege-4.0.2/html'
  71. make[1]: Nothing to be done for `all'.
  72. make[1]: Leaving directory `/srv/siege-4.0.2/html'
  73. [root@test03 siege-4.0.2]#

make install@H_403_31@

执行make install

  1. [root@test03 siege-4.0.2]# make install
  2. Making install in .
  3. make[1]: Entering directory `/srv/siege-4.0.2'
  4. make[2]: Entering directory `/srv/siege-4.0.2'
  5. make[2]: Nothing to be done for `install-exec-am'.
  6. make[2]: Nothing to be done for `install-data-am'.
  7. make[2]: Leaving directory `/srv/siege-4.0.2'
  8. make[1]: Leaving directory `/srv/siege-4.0.2'
  9. Making install in include
  10. make[1]: Entering directory `/srv/siege-4.0.2/include'
  11. Making install in joedog
  12. make[2]: Entering directory `/srv/siege-4.0.2/include/joedog'
  13. make[3]: Entering directory `/srv/siege-4.0.2/include/joedog'
  14. make[3]: Nothing to be done for `install-exec-am'.
  15. make[3]: Nothing to be done for `install-data-am'.
  16. make[3]: Leaving directory `/srv/siege-4.0.2/include/joedog'
  17. make[2]: Leaving directory `/srv/siege-4.0.2/include/joedog'
  18. make[2]: Entering directory `/srv/siege-4.0.2/include'
  19. make[3]: Entering directory `/srv/siege-4.0.2/include'
  20. make[3]: Nothing to be done for `install-exec-am'.
  21. make[3]: Nothing to be done for `install-data-am'.
  22. make[3]: Leaving directory `/srv/siege-4.0.2/include'
  23. make[2]: Leaving directory `/srv/siege-4.0.2/include'
  24. make[1]: Leaving directory `/srv/siege-4.0.2/include'
  25. Making install in src
  26. make[1]: Entering directory `/srv/siege-4.0.2/src'
  27. make[2]: Entering directory `/srv/siege-4.0.2/src'
  28. /bin/mkdir -p '/usr/local/bin'
  29. /bin/sh ../libtool --mode=install /usr/bin/install -c siege '/usr/local/bin'
  30. /usr/bin/install -c siege /usr/local/bin/siege
  31. make[2]: Nothing to be done for `install-data-am'.
  32. make[2]: Leaving directory `/srv/siege-4.0.2/src'
  33. make[1]: Leaving directory `/srv/siege-4.0.2/src'
  34. Making install in utils
  35. make[1]: Entering directory `/srv/siege-4.0.2/utils'
  36. make[2]: Entering directory `/srv/siege-4.0.2/utils'
  37. make install-exec-hook
  38. make[3]: Entering directory `/srv/siege-4.0.2/utils'
  39. /bin/sh ../utils/mkinstalldirs /usr/local/bin
  40. /bin/sh ../libtool --mode=install /usr/bin/install -c bombardment /usr/local/bin/bombardment
  41. /usr/bin/install -c bombardment /usr/local/bin/bombardment
  42. /bin/sh ../libtool --mode=install /usr/bin/install -c siege2csv.pl /usr/local/bin/siege2csv.pl
  43. /usr/bin/install -c siege2csv.pl /usr/local/bin/siege2csv.pl
  44. /bin/sh ../libtool --mode=install /usr/bin/install -c siege.config /usr/local/bin/siege.config
  45. /usr/bin/install -c siege.config /usr/local/bin/siege.config
  46. make[3]: Leaving directory `/srv/siege-4.0.2/utils'
  47. make[2]: Nothing to be done for `install-data-am'.
  48. make[2]: Leaving directory `/srv/siege-4.0.2/utils'
  49. make[1]: Leaving directory `/srv/siege-4.0.2/utils'
  50. Making install in doc
  51. make[1]: Entering directory `/srv/siege-4.0.2/doc'
  52. make[2]: Entering directory `/srv/siege-4.0.2/doc'
  53. make install-exec-hook
  54. make[3]: Entering directory `/srv/siege-4.0.2/doc'
  55. make[3]: Leaving directory `/srv/siege-4.0.2/doc'
  56. /bin/mkdir -p '/usr/local/share/man/man1'
  57. /usr/bin/install -c -m 644 siege.1 siege.config.1 bombardment.1 siege2csv.1 '/usr/local/share/man/man1'
  58. make[2]: Leaving directory `/srv/siege-4.0.2/doc'
  59. make[1]: Leaving directory `/srv/siege-4.0.2/doc'
  60. Making install in html
  61. make[1]: Entering directory `/srv/siege-4.0.2/html'
  62. make[2]: Entering directory `/srv/siege-4.0.2/html'
  63. make install-exec-hook
  64. make[3]: Entering directory `/srv/siege-4.0.2/html'
  65. HTML pages not installed
  66. make[3]: Leaving directory `/srv/siege-4.0.2/html'
  67. make[2]: Nothing to be done for `install-data-am'.
  68. make[2]: Leaving directory `/srv/siege-4.0.2/html'
  69. make[1]: Leaving directory `/srv/siege-4.0.2/html'
  70. [root@test03 siege-4.0.2]#

验证Siege是否安装成功

使用siege -V查看版本信息

  1. [root@test03 siege-4.0.2]# siege -V
  2. [alert] Zip encoding disabled; siege requires zlib support to enable it
  3. SIEGE 4.0.2
  4.  
  5. Copyright (C) 2016 by Jeffrey Fulmer,et al.
  6. This is free software; see the source for copying conditions.
  7. There is NO warranty; not even for MERCHANTABILITY or FITNESS
  8. FOR A PARTICULAR PURPOSE.
  9.  
  10. [root@test03 siege-4.0.2]#

使用siege -h查看帮助信息

  1. [root@test03 siege-4.0.2]# siege -h
  2. [alert] Zip encoding disabled; siege requires zlib support to enable it
  3. SIEGE 4.0.2
  4. Usage: siege [options]
  5. siege [options] URL
  6. siege -g URL
  7. Options:
  8. -V,--version VERSION,prints the version number.
  9. -h,--help HELP,prints this section.
  10. -C,--config CONFIGURATION,show the current config.
  11. -v,--verbose VERBOSE,prints notification to screen.
  12. -q,--quiet QUIET turns verbose off and suppresses output.
  13. -g,--get GET,pull down HTTP headers and display the
  14. transaction. Great for application debugging.
  15. -c,--concurrent=NUM CONCURRENT users,default is 10
  16. -r,--reps=NUM REPS,number of times to run the test.
  17. -t,--time=NUMm TIMED testing where "m" is modifier S,M,or H
  18. ex: --time=1H,one hour test.
  19. -d,--delay=NUM Time DELAY,random delay before each requst
  20. -b,--benchmark BENCHMARK: no delays between requests.
  21. -i,--internet INTERNET user simulation,hits URLs randomly.
  22. -f,--file=FILE FILE,select a specific URLS FILE.
  23. -R,--rc=FILE RC,specify an siegerc file
  24. -l,--log[=FILE] LOG to FILE. If FILE is not specified,the
  25. default is used: PREFIX/var/siege.log
  26. -m,--mark="text" MARK,mark the log file with a string.
  27. between .001 and NUM. (NOT COUNTED IN STATS)
  28. -H,--header="text" Add a header to request (can be many)
  29. -A,--user-agent="text" Sets User-Agent in request
  30. -T,--content-type="text" Sets Content-Type in request
  31.  
  32. Copyright (C) 2016 by Jeffrey Fulmer,et al.
  33. This is free software; see the source for copying conditions.
  34. There is NO warranty; not even for MERCHANTABILITY or FITNESS
  35. FOR A PARTICULAR PURPOSE.
  36.  
  37. [root@test03 siege-4.0.2]#

从上述几个命令可以看出,Siege已经安装了~

一个示例

安装完毕之后,没有示例怎么行,下面就给一个示例示范一下。

示例 ==> 并发请求指定URL http://download.joedog.org/

siege -c 5 -r 2 http://download.joedog.org/

参数说明-c 是并发量并发数为5,-r 是重复次数 重复2次

  1. [root@test03 siege-4.0.2]# siege -c 5 -r 2 http://download.joedog.org/
  2. [alert] Zip encoding disabled; siege requires zlib support to enable it
  3. ** SIEGE 4.0.2
  4. ** Preparing 5 concurrent users for battle.
  5. The server is now under siege...
  6. HTTP/1.1 200 0.47 secs: 4583 bytes ==> GET /
  7. HTTP/1.1 200 0.48 secs: 4583 bytes ==> GET /
  8. HTTP/1.1 200 0.49 secs: 4583 bytes ==> GET /
  9. HTTP/1.1 200 0.49 secs: 4583 bytes ==> GET /
  10. HTTP/1.1 200 0.52 secs: 4583 bytes ==> GET /
  11. HTTP/1.1 200 0.40 secs: 225 bytes ==> GET /icons/folder.gif
  12. HTTP/1.1 200 0.43 secs: 225 bytes ==> GET /icons/folder.gif
  13. HTTP/1.1 200 0.44 secs: 225 bytes ==> GET /icons/folder.gif
  14. HTTP/1.1 200 0.45 secs: 225 bytes ==> GET /icons/folder.gif
  15. HTTP/1.1 200 0.42 secs: 225 bytes ==> GET /icons/folder.gif
  16. HTTP/1.1 200 0.43 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  17. HTTP/1.1 200 0.43 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  18. HTTP/1.1 200 0.41 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  19. HTTP/1.1 200 0.46 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  20. HTTP/1.1 200 0.46 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  21. HTTP/1.1 200 0.37 secs: 4583 bytes ==> GET /
  22. HTTP/1.1 200 0.41 secs: 4583 bytes ==> GET /
  23. HTTP/1.1 200 0.44 secs: 4583 bytes ==> GET /
  24. HTTP/1.1 200 0.42 secs: 4583 bytes ==> GET /
  25. HTTP/1.1 200 0.45 secs: 225 bytes ==> GET /icons/folder.gif
  26. HTTP/1.1 200 0.45 secs: 225 bytes ==> GET /icons/folder.gif
  27. HTTP/1.1 200 0.42 secs: 225 bytes ==> GET /icons/folder.gif
  28. HTTP/1.1 200 0.43 secs: 225 bytes ==> GET /icons/folder.gif
  29. HTTP/1.1 200 0.42 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  30. HTTP/1.1 200 0.40 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  31. HTTP/1.1 200 0.43 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  32. HTTP/1.1 200 0.43 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  33. HTTP/1.1 200 2.25 secs: 4583 bytes ==> GET /
  34. HTTP/1.1 200 0.44 secs: 225 bytes ==> GET /icons/folder.gif
  35. HTTP/1.1 200 0.46 secs: 2455 bytes ==> GET /images/pommie-icon.gif
  36.  
  37. Transactions: 30 hits
  38. Availability: 100.00 %
  39. Elapsed time: 4.67 secs
  40. Data transferred: 0.07 MB
  41. Response time: 0.50 secs
  42. Transaction rate: 6.42 trans/sec
  43. Throughput: 0.01 MB/sec
  44. Concurrency: 3.21
  45. Successful transactions: 30
  46. Failed transactions: 0
  47. Longest transaction: 2.25
  48. Shortest transaction: 0.37
  49. [root@test03 siege-4.0.2]#

结果展示:

对结果进行简单说明如下:

  1. Transactions: 30 hits ## 完成处理数30
  2. Availability: 100.00 % ## 可用,成功率100%
  3. Elapsed time: 4.67 secs ## 耗时4.67秒
  4. Data transferred: 0.07 MB ## 数据传输0.07MB
  5. Response time: 0.50 secs ## 响应时间0.50秒
  6. Transaction rate: 6.42 trans/sec ## 每秒完成6.42个处理
  7. Throughput: 0.01 MB/sec ## 吞吐量,每秒传输0.01MB
  8. Concurrency: 3.21 ## 实际最高并发连接数
  9. Successful transactions: 30 ## 成功完成处理30次
  10. Failed transactions: 0 ## 失败0次
  11. Longest transaction: 2.25 ## 每次传输所花最长时间
  12. Shortest transaction: 0.37 ## 每次传输所花最短时间

至此,CentOS安装Web性能测试工具Siege,并给出一个简单的示例就完成了。

后续,将给出Siege不同参数的使用实例,更多地去了解Siege~

猜你在找的CentOS相关文章