Clamav Amavisd-new配置笔记
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-07
#============================install 组件================================================ cd /opt rpm -ivh arc-5.21o-1.el5.rf.i386.rpm rpm -ivh arj-3.10-0.1.i386.rpm rpm -ivh freeze-2.5.0-1.2.el5.rf.i386.rpm rpm -ivh unarj-2.63-0.a.2.el5.rf.i386.rpm rpm -ivh unrar-3.7.4-1.el5.rf.i386.rpm rpm -ivh unzoo-4.4-2.i386.rpm rpm -ivh zoo-2.10-2.2.el5.rf.i386.rpm rpm -ivh nomarch-1.4-1.el5.rf.i386.rpm #============================install compress =========================================== cd /opt mkdir compress tar -zxvf compress-4.0.1.tar.gz -C /opt/compress make;make install #============================install Clamav ============================================= cd /opt groupadd clamav useradd -s /sbin/nologin -c "Amavis User" -d /var/amavis amavis useradd -g clamav -s /sbin/nologin -d /dev/null clamav tar -zxvf clamav-0.91.2.tar.gz cd clamav-0.91.2 ./configure make make install mkdir /var/log/clamav mkdir /var/run/clamav chown clamav.clamav /var/run/clamav chown clamav.clamav /var/log/clamav # 编辑clamd.conf配置文件(详情见《防病毒、防垃圾邮件相关配置文件.txt》) mv /usr/local/etc/clamd.conf /usr/local/etc/clamd.conf.bak cp /opt/virus/clamd.conf /usr/local/etc/clamd.conf # 启动 clamd 程序 /usr/local/sbin/clamd # 编辑freshclam.conf配置文件(详情见《防病毒、防垃圾邮件相关配置文件.txt》) mv /usr/local/etc/freshclam.conf /usr/local/etc/freshclam.conf.bak cp /opt/virus/freshclam.conf /usr/local/etc/freshclam.conf chown amavis /var/log/clamav chown amavis /usr/local/share/clamav # 执行 Clamavs病毒库升级 /usr/local/bin/freshclam # 建立clamd的启动脚本 cp /opt/virus/clamd /etc/rc.d/init.d/clamd chmod 755 /etc/rc.d/init.d/clamd chkconfig --add clamd 拥有帝国一切,皆有可能。欢迎访问phome.net chkconfig --level 2345 clamd on #===========================Perl相关套件的安装=================================== ln -sv /usr/local/ssl/lib/libcrypto.so /usr/local/lib/ ln -sv /usr/local/ssl/lib/libcrypto.so /usr/lib/ cd /opt/perl tar -zxvf Digest-MD5-2.36.tar.gz cd Digest-MD5-2.36 export LC_ALL=C perl Makefile.PL make make install cd /opt/perl tar -zxvf Time-HiRes-1.9715.tar.gz cd Time-HiRes-1.9715 perl Makefile.PL make make install perl -MCPAN -e shell install Archive::Tar install Archive::Zip install Compress::Zlib install Convert::TNEF install Convert::UUlib install MIME::Base64 install MIME::Parser install Mail::Internet install Net::Server install Net::SMTP install Digest::MD5 install IO::Stringy install Time::HiRes install Unix::Syslog install BerkeleyDB install Digest::SHA1 install DBI install DB_File install Net::DNS install IP::Country exit #须手动安装Net::DNS cd /opt/perl tar -zxvf Net-DNS-0.63.tar.gz cd cd Net-DNS-0.63 perl Makefile.PL make;make install #============ 可选安装项 ====================== perl -MCPAN -e shell install HTML::Parser install Mail::SPF install Mail::SPF::Query install Mail::SpamAssassin::Plugin::Razor2 install IO::Socket::INET6 install IO::Socket exit cd /opt/perl tar -zxvf Net-Ident-1.20.tar.gz cd Net-Ident-1.20 perl Makefile.PL make;make install cd /opt/perl tar -zxvf Crypt-OpenSSL-Random-0.04.tar.gz cd Crypt-Op |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于Clamav Amavisd-new配置笔记的所有评论