欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

nmap在Centos7下的安装教程

程序员文章站 2022-03-09 22:56:39
...

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

nmap在Centos7下的安装教程

make
make install

nmap在Centos7下的安装教程
2.RPM软件包安装:

wget https://nmap.org/dist/nmap-7.80-1.x86_64.rpm
rpm -ivh nmap-7.80-1.x86_64.rpm