10.5.3.145 localhost database
保存
hostname database
/etc/netstart
此时:
# ping database
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1.903 ms
解析为本机即可...
2:snort无法启动的问题:
/usr/local/bin/snort -c /usr/local/etc/snort.conf
检查snort的配置文件是否有问题,如果有,及时修改配置文件
3:acid无法读出数据,页面显示正常但是没有数据:
首先检查snort是否已经通过create_mysql建立了表;
如果有表,执行:
grant all on snort.* to root@localhost identified by "123456";
grant all on snort.* to snort@localhost identified by "123456";
grant all on snort.* to snort_log@localhost identified by "123456";
flush privileges;
quit
应该可以了。
如果连表都没有建立,请回到snort的解压缩后的原始目录:
cd /usr/ports/security/snort/snort-2.6.0/schemas
chmod 755 create_mysql
mysql -uroot -p123456 snort < ./create_mysql
mysql -uroot -p123456 snort < /usr/local/www/acid/create_acid_tbls_mysql.sql
21)附录:
如果想独立安装软件,也可以,但是port安装更快捷,更顺利一些罢了:
安装顺序:
apache 1.3.37 -> mysql 4.1.21 -> jpegsrc v6b -> jpgraph 1.20.4a -> zlib 1.2.3 -> libpng 1.2.8 -> gd 2.0.9 -> openssl 0.9.7c -> mod_ssl-2.8.28-1.3.37 -> ADODB Library for PHP4 -> php 4.4.3 -> phplot for ACID v. [0.9.6b9 - 0.9.6b21] -> JPGraph (for ACID v. >= 0.9.6b22) -> snort 2.6.0
以下是我整理的一些可能用到的资料。如下:
http://ijg.org/files/jpegsrc.v6b.tar.gz
apache 1.3.37
fetch http://apache.justdn.org/httpd/apache_1.3.37.tar.gz
tar zxvf apache_1.3.37.tar.gz
cd apache_1.3.37
./configure
acid
fetch http://acidlab.sourceforge.net/acid-0.9.6b23.tar.gz
php:
fetch http://cn2.php.net/get/php-4.4.3.tar.bz2/from/cn.php.net/mirror
tar jxvf php-4.4.3.tar.bz2
cd php-4.4.3
./configure --enable-versioning --enable-memory-limit --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --with-pcre --enable-bcmath --enable-session --with-gd --with-mysql --with-zlib-dir=/usr --enable-sockets --enable-fastcgi --with-apxs=/usr/local/sbin/apxs --with-regex=php --with-openssl=/usr --with-openssl-dir=/usr --prefix=/usr/local && make && make install
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 全文 网络 架构 攻击 安装 数据 服务器 echo 保存 include |
注册
个人空间
