Prepare the installation environment
yum -y install libpcap libpcap-devel libpng libpng-devel gdbm gdbm-devel glib libxml2 libxml2-devel pango pango-devel gd
Download the latest stable version of ntop
wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz
Compile and install ntop
tar zxf ntop-5.0.1.tar.gz
cd ntop-5.0.1
./autogen.sh --with-tcpwrap
make
make install
If it is found in./autogen. sh -- with-tcpwrap
configure: error: Unable to find RRD at /usr/local/rrdtool/: please use --with-rrd-home=DIR
The rrdtool of the source code package needs to be installed for a long time.
Install rrdtool
Download the latest rrdtool source code package
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
Compile and install
tar zxf rrdtool-1.4.7.tar.gz
cd rrdtool-1.4.7
./configure --prefix=/usr/local/rrdtool
make
make install
Then re-configure it../Autogen. sh -- with-tcpwrap
If the following error occurs, yum install-y subversion
650) this. width = 650; "border =" 0 "src =" http://img1.51cto.com/attachment/201304/172730933.png "/>
If the following error is found again
Removing dups and misplaced entries from LIBS and INCS...
checking for GeoIP_record_by_ipnum in -lGeoIP... no
checking for GeoIP_name_by_ipnum_v6 in -lGeoIP... no
Please install GeoIP (http://www.maxmind.com/)
You can install related packages.
yum -y install GeoIP GeoIP-devel
Then you can install it smoothly!
Supplement: Install ntop in yum
If the source code installation is troublesome, you can use yum to install ntop as shown in the following figure.
yum -y install rrdtool cgilib ntop
Create log directory
mkdir /var/log/ntop
Create an ntop user
groupadd ntop
useradd ntop -g ntop
Change users and groups
chown -R ntop.ntop /var/log/ntop/
Set User and password
ntop -A
The following content appears:
650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131227/1929526113-1.png "/>
There are two ways to start ntop
Method 1
ntop -p /var/log/ntop/ -u nobody &
Start with the nobody user and log as/var/log/ntop in the background
Method 2
ntop -d -i eth0
Future daemon-d) run the NTOP service and monitor
Enter ip/domain name + port number 3000 by default
650) this. width = 650; "title =" ntop.png "src =" http://www.bkjia.com/uploads/allimg/131227/1929521U2-2.png "/>
This article is from the "Old Xu's Private food" blog and will not be reposted!