|
gt;Enter password: 安裝DB表:(在contrib目錄) zcat snortdb-extra.gz /usr/local/mysql/bin/mysql -p snort 進(jìn)入mysql數(shù)據(jù)庫(kù),看看snort數(shù)據(jù)庫(kù)中的表: /usr/local/mysql/bin/mysql -p gt;Enter password: mysql>show databases; +————+ Database +————+ mysql snort test +————+ 3 rows in set (0.00 sec) mysql>use snort; mysql>show tables; 將會(huì)有這些: +——————+ Tables_in_snort +——————+ data detail encoding event flags icmphdr iphdr opt protocols reference reference_system schema sensor services sig_class sig_reference signature tcphdr udphdr +——————+ 19 rows in set (0.00 sec) mysql>exit 五.安裝配置Web接口 安裝JPGraph1.11 cp jpgraph-1.11.tar.gz /www/htdocs cd /www/htdocs tar -xzvf jpgraph-1.xx.tar.gz rm -rf jpgrap-1.xx.tar.gz cd jpgraph-1.11 rm -rf README rm -rf QPL.txt 安裝ADODB: cp adodb330.tgz /www/htdocs/ cd /www/htdocs tar -xzvf adodb330.tgz rm -rf adodb330.tgz 安裝配置Acid: cp acid-0.0.6b23.tar.gz /www/htdocs cd /www/htdocs tar -xvzf acid-0.9.6b23.tar.gz rm -rf acid-0.9.6b23.tar.gz cd /www/htodcs/acid/ 編輯acid_conf.php,修改相關(guān)配置如下: #8194;$DBlib_path = “/www/htdocs/adodb”; /* The type of underlying alert database * * MySQL : “mysql” * PostgresSQL : “postgres” * MS SQL Server : “mssql” */ #8194;$DBtype = “mysql”; /* Alert DB connection parameters * - ?$alert_dbname : MySQL database name of Snort alert DB * - ?$alert_host : host on which the DB is stored * - ?$alert_port : port on which to access the DB * - ?$alert_user : login to the database with this user * - ?$alert_password : password of the DB user * * This information can be gleaned from the Snort database * output plugin configuration. */ #8194;$alert_dbname = “snort”; #8194;$alert_host = “l(fā)ocalhost”; #8194;$alert_port = “”; #8194;$alert_user = “root”; #8194;$alert_password = “Your_Password”; /* Archive DB connection parameters */ #8194;$archive_dbname = “snort”; #8194;$archive_host = “l(fā)ocalhost”; #8194;$archive_port = “”; #8194;$archive_user = “root”; #8194;$archive_password = “Your_Password “; And a little further down #8194;$ChartLib_path = “/www/htdocs/jpgraph-1.11/src”; 本新聞共 4頁(yè),當(dāng)前在第 3頁(yè) 1 2 3 4 |
|
【收藏】【打印】【進(jìn)入論壇】 |
|
|
|
|
|
|
|