博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
第 102 章 Ntop
阅读量:7072 次
发布时间:2019-06-28

本文共 3009 字,大约阅读时间需要 10 分钟。

102.1. Installation

102.1.1. Ubuntu

$ sudo apt-get install ntop$ sudo apt-get install graphviz

设置管理员密码

┌───────────────────────────┤ Configuring ntop ├───────────────────────────┐  │ Please choose a password to be used for the privileged user "admin" in   │  │ ntop's web interface.                                                    │  │                                                                          │  │ Administrator password:                                                  │  │                                                                          │  │ ________________________________________________________________________ │  │                                                                          │  │                                  
│ │ │ └──────────────────────────────────────────────────────────────────────────┘ ┌──────────────────────────┤ Configuring ntop ├───────────────────────────┐ │ Please enter the same password again to verify that you have typed it │ │ correctly. │ │ │ │ Re-enter password to verify: │ │ │ │ _______________________________________________________________________ │ │ │ │
│ │ │ └─────────────────────────────────────────────────────────────────────────┘

如果你忘记密码,可以使用下面命令重置密码

$ sudo ntop --set-admin-password
$ sudo /etc/init.d/ntop start

102.1.2. CentOS

5.x

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpmrpm -K rpmforge-release-0.5.2-2.el5.rf.i386.rpmrpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpmyum install ntop

设置管理员密码

# ntop -ATue May 22 13:03:34 2012  NOTE: Interface merge enabled by defaultTue May 22 13:03:34 2012  Initializing gdbm databasesntop startup - waiting for user response!Please enter the password for the admin user:Please enter the password again:Tue May 22 13:03:40 2012  Admin user password has been set

备份配置文件

# cp /etc/ntop.conf /etc/ntop.conf.old

/etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPTservice iptables restart

启动ntop

# /usr/bin/ntop -d -L -u ntop -P /var/ntop --use-syslog=daemonor# /usr/bin/ntop -d -L -u ntop -P /var/ntop --skip-version-check --use-syslog=daemon

/etc/init.d/ntop 脚本有bug无法启动,需要如下修改

# vim /etc/init.d/ntopstart () {    echo -n $"Starting $prog: "    #daemon $prog -d -L @/etc/ntop.conf    daemon $prog  @/etc/ntop.conf

原文出处:Netkiller 系列 手札

本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
android BSP与硬件相关子系统读书笔记(1)android BSP移植综述
查看>>
微信中通过页面(H5)直接打开本地app的解决方案
查看>>
在 Win 7或8 下使用 VirtualBOX 虚拟机安装 OS X 10.11 El Capitan 及 Xcode 7.0
查看>>
iOS -- SKPhysicsJointSpring类
查看>>
第三百九十五节,Django+Xadmin打造上线标准的在线教育平台—Xadmin集成富文本框...
查看>>
vim打造开发IDE
查看>>
【Linux】利用Xvfb关闭chrome的图形化输出
查看>>
error: pcap library not found! 解决方法
查看>>
MessageDigest简介
查看>>
Python中内置数据类型list,tuple,dict,set的区别和用法
查看>>
用ESP8266+android,制作自己的WIFI小车(Android 软件)
查看>>
音频采样中left-or right-justified(左对齐,右对齐), I2S时钟关系
查看>>
自己动手实现arm函数栈帧回溯【转】
查看>>
开发中,理解高内聚、低耦合
查看>>
【Android】Android六种布局详解
查看>>
Android TP(三)【转】
查看>>
redis使用watch秒杀抢购思路
查看>>
discuz上传头像失败怎么解决
查看>>
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
查看>>
AIDL 基础知识 知识点总结
查看>>