需要先安装epel源
yum -y install gcc make libtool automake autoconf rrdtool-devel libpcap-devel gdbm-devel zlib-devel dos2unix geoip*
yum install libpcap libpcap-devel libpng gdbm gdbm-devel glib libxml2-devel pango pango-devel gd dos2unix libtool-ltdl libtool-ltdl-devel gcc libtool rrdtool-devel -y
git clone https://github.com/ntop/nDPI.git;
cd nDPI;
./autogen.sh;
make;
make install
cd ..
rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/libcurl-devel-7.29.0-51.el7.x86_64.rpm
rpm -ivh http://springdale.math.ias.edu/data/puias/computational/7/x86_64//libmaxminddb-1.2.0-1.el7.x86_64.rpm
rpm -ivh http://springdale.math.ias.edu/data/puias/computational/7/x86_64//libmaxminddb-devel-1.2.0-1.el7.x86_64.rpm
yum install -y libsqlite3*
git clone https://github.com/ntop/ntopng.git
cd ntopng
./autogen.sh
./configure
make
make geoip
make install
yum install -y redis tcl
service redis start
mkdir /var/lib/ntopng
chmod -R 777 /var/lib/ntopng
/usr/local/bin/ntopng -u /etc/ntopng.conf &
//配置文件内容
-G=/var/tmp/ntopng.gid
--local-networks=172.16.54.0/24
--interface=*
--http-port=3000
/////////
firewall-cmd --add-port=3000/tcp --permanent
firewall-cmd --reload