• 使用clamav查杀病毒


    cd ~
    wget http://www.zlib.net/fossils/zlib-1.2.8.tar.gz
    
    tar -xvzf zlib-1.2.8.tar.gz
    cd zlib-1.2.8
    ./configure --prefix=/usr/local/zlib
    make -j8 && make install
    cd ..
    rm -rf /root/zlib-1.2.8*
    
    wget https://www.clamav.net/downloads/production/clamav-0.99.1.tar.gz
    groupadd clamav
    useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
    
    tar xvzf clamav.tar.gz
    cd clamav-0.99.1
    ./configure --prefix=/usr/local/clamav  --disable-clamav
    make -j8
    make install
    
    mkdir /usr/local/clamav/logs 
    mkdir /usr/local/clamav/updata 
    
    touch /usr/local/logs/freshclam.log
    touch /usr/local/logs/clamd.log
    cd /usr/local/clamav/logs
    touch freshclam.log clamd.log
    chmod 644 freshclam.log clamd.log
    chown clamav:clamav clamd.log freshclam.log
    
    cd /usr/local/clamav/etc/
    rm -rf *
    cat >> clamd.conf << EOF
    LogFile /usr/local/clamav/logs/clamd.log
    PidFile /usr/local/clamav/updata/clamd.pid
    DatabaseDirectory /usr/local/clamav/updata
    EOF


    cat >> freshclam.conf << EOF
    DatabaseDirectory /usr/local/clamav/updata
    UpdateLogFile /usr/local/clamav/logs/freshclam.log
    PidFile /usr/local/clamav/updata/freshclam.pid
    DatabaseMirror database.clamav.net
    EOF
    chown clamav:clamav /usr/local/clamav chown clamav:clamav /usr/local/clamav/updata/ #清除安装文件 rm -rf /root/clamav* rm -rf /root/zlib-1.2.8* #更新病毒库 cd /usr/local/clamav/updata rm -rf * wget http://database.clamav.net/main.cvd wget http://database.clamav.net/daily.cvd wget http://database.clamav.net/main.cvd chown clamav:clamav * #查毒 cd /root/ /usr/local/clamav/bin/freshclam rm -rf /root/clamav.log rm -rf /root/nohup.out nohup /usr/local/clamav/bin/clamscan -r / -l /root/clamav.log & tail -f /root/nohup.out #/usr/local/clamav/bin/clamscan -r / -l /root/clamav.log #/usr/local/clamav/bin/clamscan -r --bell -i / -l /root/clamav.log
  • 相关阅读:
    three.js-sun-lensflare
    three.js-Raycaster
    three.js-shadow
    three.js-core
    three.js-Basic-Expand
    Three.js Basic
    md5加密
    密码验证正则表达式
    启动线程开启信的线程
    获取WINDOW.OPEN url js中的get取值
  • 原文地址:https://www.cnblogs.com/cainiaoit/p/8580295.html
Copyright © 2020-2023  润新知