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打开解压包:…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全家桶1年46,售后保障稳定

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

Jetbrains全家桶1年46,售后保障稳定

切换到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)
上一篇 2025年7月10日 下午8:15
下一篇 2025年7月10日 下午8:43


相关推荐

  • python面试题汇总(史上最全)

    python面试题汇总(史上最全)python 面试题对于机器学习算法工程师而言 Python 是不可或缺的语言 它的优美与简洁令人无法自拔 那么你了解过 Python 编程面试题吗 今天我们就来了解一下 1 python 下多线程的限制以及多进程中传递参数的方式 1 python 多线程有个全局解释器锁 globalinterp 这个锁的意思是任一时间只能有一个线程使用解释器 跟单 cpu 跑多个程序一个意思 大家都是轮着用的 这叫 并发 不是 并行 多进程间共享数据 可以使用 multiprocess

    2026年3月18日
    2
  • linux下修改docker容器RabbitMQ端口映射(修改RabbitMQ默认端口)

    linux下修改docker容器RabbitMQ端口映射(修改RabbitMQ默认端口)1.xshell执行以下命令获取docker容器IDdockerps-a2.修改/var/lib/docker/containers/{容器ID+一些字符串}/hostconfig.json中”PortBindings”:{“容器端口/tcp”:[{“HostIp”:””,”HostPort”:”改成你要改的端口”}]3.修改并上传配置文件后执行以下代码sy…

    2025年7月14日
    7
  • 进销存软件开发视频教程(C#版,共70讲)

    进销存软件开发视频教程(C#版,共70讲)课程出处:学途无忧网课程观看地址:http://www.xuetuwuyou.com/course/28  本教程以进销存管理实务为基础,采用时下主流的开发工具(VisualStudio2008+SQLServer2005),使用流行的C#语言。涵盖软件开发的全部过程,包括需求分析、数据库设计、架构设计、程序编码、软件发布。讲解以深入浅出为主,同时循序渐进。对软件开发过

    2022年5月8日
    44
  • Mac快捷键【窗口最小化、切换窗口】

    Mac快捷键【窗口最小化、切换窗口】应用窗口非最大化状态下的快捷键 command m 最小化窗口 command h 切换最近使用过的两个窗口 通用快捷键 command tab 切换最大化的其它应用窗口 command control f 最大 缩小当前窗口 command w 关闭当前窗口 command q 退出当前程序

    2026年3月18日
    2
  • css属性cursor修改鼠标样式方法

    css属性cursor修改鼠标样式方法

    2026年3月16日
    1
  • X3D 概念

    X3D 概念Extensible3D(X3D)Part1:Architectureandbasecomponents4Concepts概念4.1一般4.1.1主题此条款描述了X3D的核心概念,包括:如何创建和回放X3D场景,X3D场景的运行时语法,组件和概貌构成的模块化结构,通过层概念保证顺应性,数据编码语法,程序存取,网络化因素。表

    2022年6月5日
    52

发表回复

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

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