linux安装siege

linux安装siegesiege安装笔记本文介绍centos和ubuntu安装方法centos安装下载:[root@siege-4.0.4]#wgethttp://download.joedog.org/siege/siege-4.0.4.tar.gz解压:[root@siege-4.0.4]#tarzxvfsiege-4.0.4.tar.gz打开解压包:…

siege安装笔记

本文介绍centos和ubuntu安装方法

centos安装

下载:

[root@ siege-4.0.4]# wget http://download.joedog.org/siege/siege-4.0.4.tar.gz

解压:

[root@ siege-4.0.4]# tar zxvf siege-4.0.4.tar.gz

打开解压包:

[root@ siege-4.0.4]# cd siege-4.0.4

执行

[root@ siege-4.0.4]# ./configure

若执行./configure报错gcc no … 可执行命令:yum install gcc //安装gcc编译环境即可

安装:

[root@ siege-4.0.4]# make && make install

出现以下报错?

...../usr/bin/install -c siege /usr/local/bin/siege
/usr/bin/install: cannot create regular file '/usr/local/bin/siege': Permission denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory `/home/admin/siege-3.0.8/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/admin/siege-3.0.8/src'
make: *** [install-recursive] Error 1

切换到root用户再试一下

[root@ siege-4.0.4]# make && make install

安装OK了
查看是否安装ok运行以下命令查看帮助

[root@ siege-4.0.4]# siege -h

New configuration template added to /root/.siege
Run siege -C to view the current settings in that file
SIEGE 4.0.4
Usage: siege [options]
       siege [options] URL
       siege -g URL
Options:
  -V, --version             VERSION, prints the version number.
  -h, --help                HELP, prints this section.
  -C, --config              CONFIGURATION, show the current config.
  -v, --verbose             VERBOSE, prints notification to screen.
  -q, --quiet               QUIET turns verbose off and suppresses output.
  -g, --get                 GET, pull down HTTP headers and display the
                            transaction. Great for application debugging.
  -p, --print               PRINT, like GET only it prints the entire page.
  -c, --concurrent=NUM      CONCURRENT users, default is 10
  -r, --reps=NUM            REPS, number of times to run the test.
  -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                            ex: --time=1H, one hour test.
  -d, --delay=NUM           Time DELAY, random delay before each requst
  -b, --benchmark           BENCHMARK: no delays between requests.
  -i, --internet            INTERNET user simulation, hits URLs randomly.
  -f, --file=FILE           FILE, select a specific URLS FILE.
  -R, --rc=FILE             RC, specify an siegerc file
  -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                            default is used: PREFIX/var/siege.log
  -m, --mark="text"         MARK, mark the log file with a string.
                            between .001 and NUM. (NOT COUNTED IN STATS)
  -H, --header="text"       Add a header to request (can be many)
  -A, --user-agent="text"   Sets User-Agent in request
  -T, --content-type="text" Sets Content-Type in request
      --no-parser           NO PARSER, turn off the HTML page parser
      --no-follow           NO FOLLOW, do not follow HTTP redirects

Copyright (C) 2017 by Jeffrey Fulmer, et al.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

ubuntu安装

更新系统

[root@ ]# sudo apt-get update && sudo apt-get upgrade –show-upgraded

下载最新版本的siege

[root@ ]# wget http://download.joedog.org/siege/siege-latest.tar.gz

解压并进入siege路径

[root@ ]# tar -zxvf siege-latest.tar.gz

[root@ ]# cd siege-*/

如果没有安装编译工具,请先安装

[root@ ]# sudo apt-get install build-essential

安装siege

[root@ ]# ./configure
[root@ ]# make
[root@ ]# sudo make install

创建配置文件

[root@ ]# siege.config
修改配置文件
打开~/.siege/siege.conf文件,修改logfile选项
logfile = $(HOME)/siege.log

查看帮助

[root@ ]# siege -h

New configuration template added to /root/.siege
Run siege -C to view the current settings in that file
SIEGE 4.0.4
Usage: siege [options]
       siege [options] URL
       siege -g URL
Options:
  -V, --version             VERSION, prints the version number.
  -h, --help                HELP, prints this section.
  -C, --config              CONFIGURATION, show the current config.
  -v, --verbose             VERBOSE, prints notification to screen.
  -q, --quiet               QUIET turns verbose off and suppresses output.
  -g, --get                 GET, pull down HTTP headers and display the
                            transaction. Great for application debugging.
  -p, --print               PRINT, like GET only it prints the entire page.
  -c, --concurrent=NUM      CONCURRENT users, default is 10
  -r, --reps=NUM            REPS, number of times to run the test.
  -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                            ex: --time=1H, one hour test.
  -d, --delay=NUM           Time DELAY, random delay before each requst
  -b, --benchmark           BENCHMARK: no delays between requests.
  -i, --internet            INTERNET user simulation, hits URLs randomly.
  -f, --file=FILE           FILE, select a specific URLS FILE.
  -R, --rc=FILE             RC, specify an siegerc file
  -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                            default is used: PREFIX/var/siege.log
  -m, --mark="text"         MARK, mark the log file with a string.
                            between .001 and NUM. (NOT COUNTED IN STATS)
  -H, --header="text"       Add a header to request (can be many)
  -A, --user-agent="text"   Sets User-Agent in request
  -T, --content-type="text" Sets Content-Type in request
      --no-parser           NO PARSER, turn off the HTML page parser
      --no-follow           NO FOLLOW, do not follow HTTP redirects

Copyright (C) 2017 by Jeffrey Fulmer, et al.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

安装好了

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/219055.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • ROS教程(一):ROS安装教程(详细图文)

    ROS教程(一):ROS安装教程(详细图文)前言关于ROS(RobotOS机器人操作系统),估计看这个教程的人已经大概知道是啥了,我在这就不废话了。首先对于ROS的安装,在它的官方网站:http://wiki.ros.org/ROS/Installation中有详细说明。但是。。。上面的教程都是英文的,如果感觉略有压力(本人就是)。所以文章目录前言一、版本选择二、开始安装2.1软件中心配置2.2添加源2.3安装2.4配置ROS环境到系统三、验证ROS

    2022年6月4日
  • 一步一步安装及配置R及Rstudio(详细图文)

    一步一步安装及配置R及Rstudio(详细图文)文章目录一、R下载及安装1.下载2.安装二、Rstudio下载及安装1.下载2.安装3.配置一、R下载及安装1.下载https://cran.r-project.org/mirrors.html选择清华的TUNA镜像根据需要选择下载,以windows下载为例选择base点击下载2.安装确定Next选安装目录时候,需要注意没必要安…

    2022年6月27日
  • windows安装opencv(opencv安装不了)

    终于实现了在windows下配置Qt和opencv,从刚学opencv尝试,到现在终于配置成功,断断续续经历了一年左右,真实操碎了心。。。走了太多弯路了系统:windows10Qt:Qt5.11.1,mingw5.3版本opencv:3.2.0版本一直有用最新软件的强迫症,这次屈服了,没有使用opencv3.4.2版本,本人尝试了2.7.13版本到3.4.2版本的所有opencv,…

    2022年4月13日
  • JavaScript语言知识收藏

    接触Web开发也已经有一段时间了,对javascript的认识也比以前有了更加深入的认识了,所以觉得应该整理一下。一、JavaScript不支持函数(方法)的重载,用一个例子证明如下:function

    2021年12月20日
  • c语言中console.writeline(console.writeline())

    C#中Console.WriteLine()的用法

    2022年4月17日
  • ds什么意思_小店源码

    ds什么意思_小店源码介绍:云铺购最新Ds网系统无后门全开源可运营版本控制端功能支持一键通秒搭建Ds网站点,一键新增修改站点版本,支持QQ一键通登录自主添加站点域名管理站点,可配置后台安全访问域名白名单IP(实时保护)控制端支持一键备份旗下所有站点数据,共享数据版大大减少服务器压力主站点功能前后台支持QQ一键通登录,前台风格8套内页风格3套,免密支付,订单代付自定义网站公告导航,等级配置,邮箱配置,密匙配置,站点一键通装修支持一键通秒对接云铺购系统,玖伍系统,亿乐系统,各大卡盟系统,网商系统等对接商品价格支持

    2022年8月13日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号