实验按照对每个工具运行每个基准

RAZOR

  1. 获取镜像sudo docker pull chenxiong/razor:0.01
  2. 运行镜像sudo docker run --name container_name -d -it chenxiong/razor:0.01
  3. 更新razor仓库
  4. 替换debian源为阿里源sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main

deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
  1. 下载Clang apt install clang

nginx

lighttpd

从源码编译步骤

  1. 克隆并更新仓库
# initial checkout
git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git
cd lighttpd1.4
# subsequent updates (to obtain latest source)
#cd lighttpd1.4
git pull
  1. 更新依赖 apt-get build-dep lighttpd
  2. automake
#cd lighttpd1.4
./autogen.sh
CC=clang ./configure -C --prefix=/usr/local  # ./configure --help for additional options
make -j 4
make check
  1. 出现问题
configure: error: pcre2-config not found, install the pcre2-devel package or build with --without-pcre2

解决方法:apt install libpcre2-dev

  1. 编译完成后,在src目录下生成lighttpd可执行文件
  2. 结合razor运行

nmap

  1. 下载位置
  2. 按照指导编译
  3. 使用clang编译
CC=clang CXX=clang++ ./configure
make