服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - 64位CentOS 6.4安装配置流量监控工具ntopng

64位CentOS 6.4安装配置流量监控工具ntopng

2019-09-20 15:26CentOS之家 Centos

ntopng是网络流量实时监控显示工具,能够自动从网络上识别有用的信息,下面为大家介绍下CentOS 6.4如何安装ntopng,不知道的朋友可以看看

ntopng是网络流量实时监控显示工具,能够自动从网络上识别有用的信息,不少人在安装的时候出现了不少问题,下面小编就给大家介绍下CentOS 6.4如何安装ntopng,一起来了解下吧。

64位CentOS 6.4安装网络监控 ntopng

1、配置默认yum源

实验使用阿里的镜像

1、备份

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

2、下载新的CentOS-Base.repo 到/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、之后运行yum makecache生成缓存

2、安装epel源及给国内镜像

1、下载安装

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、备份(如有配置其他epel源)

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、下载新repo 到/etc/yum.repos.d/

epel(RHEL 6)

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

3、安装依赖库

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

下载安装libzmq3,网站为: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

解决如下出错:

[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、安装及配置ntopng

1、下载

网站 :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、安装

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、配置ntopng

1、查看默认配置文件

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

[root@net1 ntopng]# ls

ntopng.conf.sample ntopng.start

注,ntopng.conf.sample 文件是配置文件样例,ntopng.start是ntopng启动时需要的配置文件(测试的ntopng版本此文件为空)。

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

-G=/var/tmp/ntopng.gid

注,-G指定运行所用进程号文件。

修改后的内容为:

[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

注,--local-network “指定本地子网段”; --interface eth1 指定监听eth1网卡上的流量; --user z指定ntopng运行时使用的账户为nobody; --http-port 指定web服务端口为8888,如果不指定默认为3000。

6、启动ntopng

注,在运行ntopng之前,要确认先启动redis服务,redis为ntopng提供键值存储。我们这边重新启动一下redis服务。

service redis start

service ntopng start

7、测试访问一下

http://IP:8888

默认的用户名和密码是admin。

上面就是CentOS 6.4安装ntopng的介绍了,在安装完ntopng后,记得要测试访问,且在安装前,需要配置yum源并进行相关备份。

延伸 · 阅读

精彩推荐
  • CentosCentOS6.2网卡设置

    CentOS6.2网卡设置

    如果你想让服务器可以更新、让网友访问你的LINUX服务器,那一定要设置LINUX网上给网卡绑定一个IP,下面我们就介绍CentOS6.2网卡设置IP的方法。...

    CentOS教程网10092021-10-03
  • Centos在CentOS系统上安装Docker的教程

    在CentOS系统上安装Docker的教程

    这篇文章主要介绍了在CentOS系统上安装Docker的教程,Docker是当下人气最为火热的容器类虚拟软件,需要的朋友可以参考下 ...

    开源中文社区3952019-09-17
  • Centoscentos 7中添加一个新用户并授权的步骤详解

    centos 7中添加一个新用户并授权的步骤详解

    这篇文章主要给大家介绍了关于在centos 7中添加一个新用户并授权的步骤,文中将实现的步骤介绍的非常详细,通过文中介绍的步骤可以轻松的创建一个新...

    Ryan.Miao9832022-02-12
  • CentosCentOS7 阿里云的yum源使用详解

    CentOS7 阿里云的yum源使用详解

    这篇文章主要介绍了CentOS7 阿里云的yum源使用详解的相关资料,这里对备份yum源,添加EPEL源,和缓存清理,进行了介绍,需要的朋友可以参考下...

    天王9312020-12-28
  • Centos使用Xshell连接Centos 6.6服务器操作图文教程

    使用Xshell连接Centos 6.6服务器操作图文教程

    这篇文章主要介绍了使用Xshell连接Centos 6.6服务器操作图文教程,本文用详细的操作步骤讲解了如何使用Xshell连接Centos服务器,需要的朋友可以参考下 ...

    脚本之家4032019-09-18
  • CentosCentOS系统下软件包的制作方法和过程详解

    CentOS系统下软件包的制作方法和过程详解

    今天小编将为大家带来的是CentOS系统下软件包的制作方法和过程详解;希望对大家会有帮助,有需要的朋友一起去看看吧...

    CentOS之家4802019-05-30
  • CentosCentOS 最新版本git的安装教程

    CentOS 最新版本git的安装教程

    本文主要给大家介绍了CentOS 最新版本git的安装教程,非常不错,具有参考借鉴价值,感兴趣的朋友一起看看吧...

    CentOS教程网9252021-11-29
  • CentosCentOS上SVN服务器端程序的安装与使用教程

    CentOS上SVN服务器端程序的安装与使用教程

    SVN是一款高人气的软件项目版本控制系统,由于其在Windows的客户端的简易操作,在Git的浪潮中仍然保有很多的用户数量,这里我们就来看一下CentOS上SVN服务器端...

    cnblogs3902019-07-16