1、下载wget http://nmap.org/dist/nmap-7.01.tar.bz2
2、解压tar -xvf nmap-7.01.tar.bz2
3、cd 解压文件目录
4、./configure
5、make && make install
6、nmap -v测试是否安装成功