Centos install ClamAV and set automatic update virus database

  265 curl www.baidu.com is there any Internet?
  266 yum install -y pcre* zlib zlib-devel libssl-devel libssl
  267 yum install -y openssl
  268 yum install -y epel-release
  269 ​​yum install clamav clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
  270 /usr/bin/freshclam Update virus database
  271 clamscan -r /root Scan the specified directory
  272 service crond start 
  273 service crond status 
  274 chkconfig crond on 
  275 chkconfig --list crond
  276 vi / etc/crontab
  277 cd /root
  278 ls
  279 vim clamav.sh
  280 ls
  281 chmod u+x clamav.sh
  282 ls
  283 ./clamav.sh write freshclam
  284 vi /etc/crontab
  285 crontab -e

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed

00 2 * * 7 /root/clamav.sh means to run this file once a week at 2 a.m.
  286 crontab -l
  287 crontab -e
  288 crontab -l
 

Guess you like

Origin blog.csdn.net/ccagy/article/details/110490926