歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

構建網絡安全長城之烽火台的建立(6)

[root .net server snort-2.0.2]#/usr/local/my sql /bin/mysql -u root -p ./contrib/create_mysql snort (請寫成一行) Enter password: (這裡輸入 MySQL 中root的密碼) [root@netserver snort-2.0.2]# cd contrib [root@netserver contrib]#zcat snortdb-e [root.netserver snort-2.0.2]#/usr/local/mysql/bin/mysql -u root -p < ./contrib/create_mysql snort (請寫成一行)
  Enter password: (這裡輸入MySQL中root的密碼)
  [root@netserver snort-2.0.2]# cd contrib
  [root@netserver contrib]#zcat snortdb-extra.gz |/usr/local/mysql/bin/mysql -p snort
  Enter password: (這裡輸入MySQL中snort的密碼)

  這一步需要一些時間,請等待幾分鐘

  然後,讓我們確認一下庫是不是建立成功了

  [root@netserver contrib]#/usr/local/mysql/bin/mysql -p
  >Enter password: (這裡輸入MySQL中root的密碼)
  mysql> SHOW DATABASES

  (你會看到下面這樣的表)

  +------------+
  | Database
  +------------+
  | mysql
  | snort
  | test
  +------------+
  3 rows in set (0.00 sec)
  mysql> use snort
  >Database changed
  mysql> SHOW TABLES
  +------------------+
  | 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)>Bye

  好,看到以上的表,說明我們的操作成功了。

  8、安裝JPGraph:

  [root@netserver contrib]#cd ../../
  [root@netserver ids]#cp jpgraph-1.13.tar.gz /www/htdocs
  [root@netserver ids]#cd /www/htdocs
  [root@netserver htdocs]#tar -xvzf jpgraph-1.13.tar.gz
  [root@netserver htdocs]#rm -rf jpgraph-1.13.tar.gz

  9、安裝ADODB:

  [root@netserver htdocs]#cd /root/ids/
  [root@netserver ids]#cp adodb390.tgz /www/htdocs/
  [root@netserver ids]#cd /www/htdocs
  [root@netserver htdocs]#tar -xvzf adodb390.tgz
  [root@netserver htdocs]#rm -rf adodb390.tgz


Copyright © Linux教程網 All Rights Reserved