64-bit CentOS 6.4 installation configuration ntopng steps

  
                

ntopng is a real-time monitoring and display tool for network traffic. It can automatically identify useful information from the network. Many people have a lot of problems during installation. The following small series will introduce you to how CentOS 6.4 installs ntopng. Get up and get to know it.

64 bit CentOS 6.4 install network monitoring ntopng

1, the default configuration yum source

Ali experiments using mirror

1, the backup < Br>

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.def

2. Download the new CentOS-Base .repo to /etc/yum.repos.d/

CentOS 5

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun .com/repo/Centos-5.repo

CentOS 6

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com /repo/Centos-6.repo

3, after running yum makecache to generate the cache

2, install epel source and give domestic mirror

1, download and install

wget http://dl.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

chmod u+x epel-release-6-8 .noarch.rpm

rpm -ivh epel-release-6-8.noarch.rpm

2, backup (if other epel sources are configured)

mv /etc /yum.repos.d/epel.repo /etc/yum.repos.d/Epel.repo.backup

mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup

3, Download the new repo to /etc/yum.repos.d/

epel(RHEL 6)

wget -O /etc/yum.repos.d/epel.repo http://mirrors .aliyun.com/repo/epel-6.repo

3, install dependencies

yum install libpcap-devel glib2-devel GeoIP GeoIP-devel libxml2-devel libxml2-devel redis wget rrdtool

Download and install libzmq3, the website is: http://rpm.pbone.net/index.php3/stat/4/idpl/23532429/dir/centos_6/com/libzmq3-3.2.2-5.1.x86_64 .rpm.html

wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/openSUSE/repositories/home:/jblunck:/messaging/CentOS_CentOS-6/x86_64/libzmq3 -3.2.2-5.1.x86_64.rpm

chmod u+x libzmq3-3.2.2-5.1.x86_64.rpm

rpm -ivh libzmq3-3.2.2-5.1.x86_64. Rpm

To solve the following error:

[root@net1 ~]# rpm -ivh ntopng-1.2.2-8420.x86_64.rpm

warning: ntopng-1.2. 2-8420.x86_64 .rpm: Header V4 DSA/SHA1 Signature, key ID 7921df34: NOKEY

error: Failed dependencies:

librrd.so.4()(64bit) is needed by ntopng-1.2.2 -8420.x86_64

libzmq.so.3()(64bit) is needed by ntopng-1.2.2-8420.x86_64

rrdtool 》= 1.3.8 is needed by ntopng-1.2 .2-8420.x86_64

4. Install and configure ntopng

1. Download

Website: http://www.nmon.net/packages/rpm/x86_64 /

wget http://www.nmon.net/packages/rpm/x86_64/ntopng/ntopng-1.2.2-8420.x86_64.rpm

wget http://www. Nmon.net/packages/rpm/x86_64/ntopng-data/ntopng-data-1.2.2-8420.noarch.rpm

2, install

chmod u+x ntopng-1.2. 2-8420.x86_64.rpm ntopng-data-1.2.2-8420.noarch.rpm

rpm -ivh ntopng-1.2.2-8420.x86_64.rpm

rpm -ivh ntopng -data-1.2.2-8420.noarch.rpm

5, configure ntopng

1. View the default configuration file

[root@net1 ~]# cd /etc /ntopng /

[root@net1 ntopng]# ls

ntopng.conf.sample ntopng.start

Note that the ntopng.conf.sample file is a sample configuration file, ntopng .start is the configuration file required for ntopng startup (the ntopng version of the test is empty).

[root@net1 ntopng]# cat ntopng.conf.sample

-G=/var/tmp/ntopng.gid

Note that -G specifies the process used for the run. Number file.

The modified content is:

[root@net1 ntopng]# cat ntopng.conf

-G=/var/tmp/ntopng.pid

--local-networks “10.1.1.0/24”

--interface eth1

--user nobody

--http-port 8888

Note, --local-network “Specify the local subnet segment>; --interface eth1 specifies to listen to traffic on the eth1 NIC; --user z specifies that the account used by ntopng runtime is nobody; --http- Port Specifies that the web service port is 8888. If you do not specify a default of 3000.

6, start ntopng

Note, before running ntopng, to confirm that the redis service is started first, redis provides key value storage for ntopng. We restart the redis service here.

service redis start

service ntopng start

7. Test access

http://IP:8888

Default The username and password are admin.

The above is the introduction of CentOS 6.4 installation ntopng, after installing ntopng, remember to test access, and before installation, you need to configure the yum source and make related backups.

Copyright © Windows knowledge All Rights Reserved