良玉的博客 点点滴滴,积水成河_良玉的博客_页游、手游linux运维工程师之路

psad安装报错及解决

[root@localhost psad-2.2.3]# /etc/init.d/psad start
Starting psad: Can't locate IPTables/ChainMgr.pm in @INC (@INC contains: /usr/lib/psad /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/sbin/psad line 3234.
然后去网站下载安装模块ChainMgr.pm
#tar xvf IPTables-ChainMgr-1.2.tar.bz2
#cd IPTables-ChainMgr-1.2
#cat README
#perl Makefile.PL
#make
#make install
再次开启psad
[root@localhost perl5]# /etc/init.d/psad start
Starting psad: Can't locate IPTables/Parse.pm in @INC (@INC contains: /usr/lib/psad /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/IPTables/ChainMgr.pm line 23.
BEGIN failed--compilation aborted at /usr/local/share/perl5/IPTables/ChainMgr.pm line 23.
Compilation failed in require at /usr/sbin/psad line 3234.
然后去网站下载安装模块Parse.pm
#tar xvf IPTables-Parse-1.1.tar.bz2
#cd IPTables-Parse-1.1
#cat README
#perl Makefile.PL
#make
#make install
再次开启psad
[root@localhost IPTables-Parse-1.1]# /etc/init.d/psad start
Starting psad: Can't locate Unix/Syslog.pm in @INC (@INC contains: /usr/lib/psad /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/sbin/psad line 3237.
查到模块地址,下载并安装:
#tar xvf Unix-Syslog-1.1.tar.gz
#cd Unix-Syslog-1.1
#cat README
#perl Makefile.PL
#make install
再次开启psad
[root@localhost Unix-Syslog-1.1]# /etc/init.d/psad start
Starting psad:
开启ok
[root@localhost Unix-Syslog-1.1]# ps aux|grep psad
root     29402  0.0  3.0 171184 31280 ?        Ss   11:43   0:00 /usr/bin/perl -w /usr/sbin/psad
root     29411  0.0  0.0 103176   844 pts/1    S+   11:44   0:00 grep psad 



psad需要的模块有:

q   Date::Calc

q   IPTables::Parse

q  Net::Ipv4Addr

q   IPTables::ChainMgr

q   Unix::Syslog



留言列表
发表评论
来宾的头像