您的位置 首页 linux 运维

ntopng (流量监控工具)docker-compose方式安装

ntopng (流量监控工具)docker-compose方式安装

docker-compose 方式

 

How to Install ntop on Your UGREEN NAS – Marius Hosting

 

registry.cn-hangzhou.aliyuncs.com/baimeidashu/bmds:ntopng-latest-20251215

管网镜像:

https://hub.docker.com/r/ntop/ntopng/tags

 

 

 

 

 

 

网络流量分析工具ntopng的安装与基本使用-腾讯云开发者社区-腾讯云

 

三、安装ntopng工具

3.1 官网地址

官网地址:https://packages.ntop.org/

安装:

curl https://packages.ntop.org/centos/ntop.repo > /etc/yum.repos.d/ntop.repo

安装:

yum clean all
yum update
yum install pfring-dkms n2disk nprobe ntopng cento ntap

四、ntopng的基本配置

4.1 修改配置文件

ntopng 的默认配置文件位于 /etc/ntopng/ntopng.conf,我们可以通过编辑此文件来调整 ntopng 的各项参数,如监听接口、日志级别和警报规则等。

 

vim /etc/ntopng/ntopng.conf
  • 修改服务端口:在 ntopng 配置文件中,使用 -w=3000 或 --http-port=3000 来设置嵌入式Web服务器的HTTP端口为3000。
  • 修改监听网卡:在 ntopng 配置文件中,使用 -i=eth1、-i=eth2 等配置项可指定 ntopng 用于网络监控的多个网络接口。
-i=enp6s18
  • 修改存储目录:在 ntopng 配置文件中,-d=/var/lib/ntopng 用于指定 ntopng 的数据存储目录,该目录必须对运行 ntopng 的用户具有写权限。
-d=/var/lib/ntopng

4.2 启动ntopng服务

  • 启动ntopng服务,并设置开机自启。
systemctl enable ntopng
systemctl start  ntopng

4.3 查看ntopng服务状态

  • 查看ntopng服务状态
systemctl status ntopng

五、访问ntopng服务

默认登录账号密码为admin/admin,输入账号密码后,提示修改密码以及设置系统语言。

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章