日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

基于运维网V8环境安装ntop

發(fā)布時間:2025/1/21 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 基于运维网V8环境安装ntop 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?注意:裝這個軟件最煩的就是依賴的東西太多,少一樣都不行。
??

以下安裝基于運維網集成的V8版本環(huán)境。

??

1.? ?? ? www.ntop.org網站下載最新版本的ntop,我下的是ntop-5.0.1.tar.gz,是38.2M

??

2.? ?? ? 上傳到/var/www目錄下

??

3.? ?? ? tar zxvf ntop-5.0.1.tar.gz

??

4.? ?? ? cd ntop-5.0.1

??

5.? ?? ? ls

??

6.? ?? ? [root@cnyunwei ntop-5.0.1]# ./autogen.sh

??

Starting ntop automatic configuration system v.0.2.3

??
??

??Please be patient, there is a lot to do...

??
??

1. Testing gnu tools....

??
??

You must have libtool installed to compile ntop.

??

Download the appropriate package for your distribution, or get the

??

source tarball from?ftp://ftp.gnu.org/pub/gnu/libtool

??

? ???We require version 1.4 or higher

??

? ???We recommend version 1.5 or higher

??
??

You must have wget installed to compile autogen.sh.

??

Download the appropriate package for your distribution, or get the

??

source tarball from?ftp://ftp.gnu.org/pub/gnu/wget

??

看到上面的提示信息是需要libtool

??
??[root@cnyunwei ntop-5.0.1]# yum install libtool
??
期間輸入?2Y,直到安裝完成
??
重新[root@cnyunwei ntop-5.0.1]# ./autogen.sh
??Starting ntop automatic configuration system v.0.2.3
? ?
? ? Please be patient, there is a lot to do...
? ?
??1. Testing gnu tools....
? ?
??You must have wget installed to compile autogen.sh.
??Download the appropriate package for your distribution, or get the
??source tarball from?ftp://ftp.gnu.org/pub/gnu/wget
??
提示要安裝wget
??[root@cnyunwei ntop-5.0.1]# yum install wget
??
輸入一次y直到安裝完畢。
??
重新[root@cnyunwei ntop-5.0.1]# ./autogen.sh
??
提示
??Starting ntop automatic configuration system v.0.2.3
? ?
? ? Please be patient, there is a lot to do...
? ?
??1. Testing gnu tools....
? ?
??You must have svn/subversion installed to compile autogen.sh.
??Download the appropriate package for your distribution, or get the
??source from?http://subversion.tigris.org
? ?
??[root@cnyunwei ntop-5.0.1]# yum install subversion
??
再執(zhí)行autogen.sh
? ?? ?? ?? ?? ?*** FATAL ERROR ***? ?? ?? ?? ??
? ?It looks that you don't have the libpcap distribution installed.
? ?Download, compile and, optionally, install it.
? ?When finished please re-run this program.
? ?You can download the latest source tarball at?http://www.tcpdump.org/
??configure: error:??The LBL Packet Capture Library, libpcap, was not found!
??
以下是根據(jù)錯誤提示,?還需要安裝的東西。
??[root@cnyunwei ntop-5.0.1]# yum install libpcap
??[root@cnyunwei ntop-5.0.1]# yum install libpcap-devel
??[root@cnyunwei ntop-5.0.1]# yum install libxml2
??[root@cnyunwei ntop-5.0.1]# yum install libxml2-devel
??[root@cnyunwei ntop-5.0.1]# yum install libpng
??[root@cnyunwei ntop-5.0.1]# yum install libpng-devel
??[root@cnyunwei ntop-5.0.1]# yum install pango
??[root@cnyunwei ntop-5.0.1]# yum install pango-devel
??[root@cnyunwei ntop-5.0.1]# yum install gdbm-devel
??[root@cnyunwei ntop-5.0.1]# yum install python
???
??
這樣安裝的python又提示版本低,哎
??
到官網下載python-2.7.3.tar.bz2,11.2M,傳到/usr/local/src目錄下
??[root@cnyunwei src]# cd /usr/local/src
??[root@cnyunwei src]# tar jxvf Python-2.7.3.tar.bz2
??[root@cnyunwei src]# cd Python-2.7.3
??yum install make
??./configure
??make
??make install
??
下載GeoIP-1.4.8.tar.gz并安裝
???
??[root@cnyunwei Python-2.7.3]# cd /var/www/ntop-5.0.1
??[root@cnyunwei ntop-5.0.1]# ./autogen.sh
??make[1]: Leaving directory `/var/www/ntop-5.0.1/nDPI/src/lib'
??make[1]: Entering directory `/var/www/ntop-5.0.1/nDPI'
??make[1]: Nothing to be done for `all-am'.
??make[1]: Leaving directory `/var/www/ntop-5.0.1/nDPI'
? ?
??Now we're ready to compile ntop
??
終于TMD的能安裝ntop了!
??[root@cnyunwei ntop-5.0.1]# ./configure --prefix=/var/www/ntop/
??
最后會提示
??Install directories:
? ?
? ?? ?Default prefix: /usr/local
? ?? ?Install into:? ?/var/www/ntop (default or via --prefix request)
? ?
? ?? ?Data files are in? ???/var/www/ntop/share/ntop
? ?? ?Config files are in? ?/var/www/ntop/etc/ntop
? ?? ?Run directory is? ?? ?/var/www/ntop/var/ntop
? ?? ?Plugin files are in? ?/var/www/ntop/lib/ntop/plugins
? ?? ?Database files are in /var/www/ntop/var/ntop
??make
??make install
??
結果
? ?
??************************************************************
??************************************************************
? ?
? ? WARNING: This install created a directory for the ntop
? ?? ?? ?? ? files and databases:
? ?
? ?? ?? ?? ?? ?/var/www/ntop/share/ntop
? ?
? ?? ?? ?? ? This directory MUST be owned by the user
? ?? ?? ?? ? which you are going to use to run ntop.
? ?
? ?? ?? ?? ? The command you must issue is something like:
? ?
? ?? ?? ?? ? chown -R ntop.ntop /var/www/ntop/share/ntop
? ?? ? or? ? chown -R ntop:users /var/www/ntop/share/ntop
? ?
? ?? ?? ?? ? man chown to check the syntax for YOUR system
? ?
??************************************************************
??************************************************************
? ??

??echo "Shall you be using SELinux please run:"
??Shall you be using SELinux please run:
??echo "make install-selinux-policy"
??make install-selinux-policy
????

??
配置ntop
??[root@cnyunwei ntop-5.0.1]# useradd -M -s /sbin/nologin -r ntop
??[root@cnyunwei ~]# chown -R ntop.ntop /var/www/ntop/share/ntop
??[root@cnyunwei bin]# chown -R ntop.ntop /var/www/ntop/var/ntop
??[root@cnyunwei bin]# cd /var/www/ntop/bin
??[root@cnyunwei bin]# ./ntop –A
??
輸入2admin的密碼
??
開啟防火墻的3000端口
??
啟動ntop服務
??[root@cnyunwei bin]# /var/www/ntop/bin/ntop -u ntop
??
重啟httpd服務
??service httpd restart
??
在瀏覽器里面輸入?http://IP:3000就可以看到頁面了。

????

?

?

?

?

?

?

?

做一名運維工程師,監(jiān)控恐怕是日常生活中必不可少的活了,在企業(yè)中的監(jiān)控,大多是用開源軟件來實現(xiàn)的,而且開源軟件也有著非常優(yōu)秀的表現(xiàn),其中著名的有cactinagiosntopGanglia等等。而cacti+nagios+ntop的結合應用,能為企業(yè)做到更細微的保證。

Ntop
是一種監(jiān)控網絡流量工具,用ntop顯示網絡的使用情況比其他一些網絡管理軟件更加直觀、詳細。Ntop甚至可以列出每個節(jié)點計算機的網絡帶寬利用率。他是一個靈活的、功能齊全的,用來監(jiān)控和解決局域網問題的工具;尤其當ntopnprobe配合使用,其功能更加顯著。它同時提供命令行輸入和web頁面,可應用于嵌入式web服務

?

?


下面提供幾個關于Ntop的相關文檔分享給大家下載參考

手把手實現(xiàn)企業(yè)級開源監(jiān)控軟件cacti+nagios+ntop整合(圖解)
?手把手實現(xiàn)企業(yè)級開源監(jiān)控軟件cacti nagios ntop整合(圖解).rar?(1.57 MB,
下載次數(shù): 975)?

NTop
搭建-圖文詳細版:
?NTop搭建-圖文詳細版.rar?(372.41 KB,
下載次數(shù): 315)?

NTop
中文手冊:
?NTop中文手冊.rar?(33.79 KB,
下載次數(shù): 267)?

NTop
使用指南:
?NTop使用指南.part1.rar?(1.39 MB,
下載次數(shù): 544)?
?NTop使用指南.part2.rar?(1.39 MB,
下載次數(shù): 576)?
?NTop使用指南.part3.rar?(830.97 KB,
下載次數(shù): 264)?

?

轉載于:https://blog.51cto.com/fccwcom/1094406

總結

以上是生活随笔為你收集整理的基于运维网V8环境安装ntop的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。