过程 28.1. 安装步骤
-
netams netams-web
$ sudo apt-get install netams netams-web
$ dpkg -s netams netams-web
-
NeTAMS administrator password
┌───────────────────┤ Configuring netams ├────────────────────┐ │ Please enter password for "admin" user in NeTAMS database. │ │ │ │ NeTAMS administrator password: │ │ │ │ *******____________________________________________________ │ │ │ │ <Ok> │ │ │ └─────────────────────────────────────────────────────────────┘ ┌──────────┤ Configuring netams ├───────────┐ │ │ │ │ │ Repeat password for NeTAMS user "admin": │ │ │ │ *******__________________________________ │ │ │ │ <Ok> │ │ │ └───────────────────────────────────────────┘
如果你想重新配置安装过程可以运行下面命令
$ sudo dpkg-reconfigure netams netams-web
-
基本配置
$ sudo vim /etc/default/netams RUN="yes"
$ sudo cp /etc/netams/netams.conf /etc/netams/netams.conf.old $ sudo vim /etc/netams/netams.conf $ sudo /etc/init.d/netams restart
$ cat /etc/apache2/conf.d/netams.conf Alias /netams/images /usr/share/netams Alias /netams/stat /var/lib/netams/stat <Directory /var/lib/netams/stat/> Options -Indexes -FollowSymlinks DirectoryIndex index.html AllowOverride All </Directory> <Directory /usr/share/netams/> Options -Indexes -FollowSymlinks AllowOverride None </Directory>
$ cat /etc/apache2/conf.d/netams-web.conf ScriptAlias /netams/cgi-bin /usr/share/netams-web # Uncomment the following if you have no netams package installed #Alias /netams/images /usr/share/netams-web/images <Directory /usr/share/netams-web> Options -Indexes +FollowSymlinks AddHandler cgi-script .cgi AllowOverride None # By default we deny access from other hosts. May be you will need to configure # mod_auth_basic or mod_auth_mysql. Order deny,allow Deny from All Allow from 127.0.0.1 </Directory>
-
.netamsctl.rc
$ vim ~/.netamsctl.rc login=admin password=123456 host=localhost $ netamsctl "show version" NeTAMS 3.4.3 (3475.1) buildd@yellow / Tue 06 Apr 2010 03:40:49 +0000 Run time 22 mins 6.5699 secs System time: 22 mins 1.2800 secs Average CPU/system load: 0.10% Process ID: 23647 RES: 9212K Memory allocated: 3640404 (23161), freed (31) (0 NULL) [23130 used] Total objects: Oids used: 9 NetUnits: 4 Policies: 3 Services: 10 Users: 1 Connections: 1 active, 8 total Services info: Storage ID=1 type mysql wr_q 0/0 rd_q 0/0 Data-source ID=1 type LIBPCAP source eth0:0 loop 316382 average 4182 mcsec Perf: average skew delay 21580 mcsec, PPS: 77, BPS: 16788 Alerter 0 queue max: 255, current: 0 Scheduled tasks: 1
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。