nmap在Centos7下的安装教程

帅比萌擦擦* 提交于 2020-01-20 03:04:18

nmap在Centos7下的安装教程

安装方式有两种:
#如果没有安装make

wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz
tar -zxvf cmake-3.13.2.tar.gz
cd cmake-3.13.2/
yum -y install gcc make gcc-c++
./bootstrap --prefix=/usr/local/cmake
make
make install

1.原码编译安装:

wget https://nmap.org/dist/nmap-7.80.tar.bz2
bzip2 -cd nmap-7.80.tar.bz2 | tar xvf –
cd nmap-7.80

#yum install flex bison //这一步是执行./configure时候会出错的时候才需要
configure: error: Neither flex nor lex was found. configure: error

./configure

在这里插入图片描述

make
make install

在这里插入图片描述
2.RPM软件包安装:

wget https://nmap.org/dist/nmap-7.80-1.x86_64.rpm
rpm -ivh nmap-7.80-1.x86_64.rpm
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!