Centos安装ClamAV并且设置自动更新病毒库

  265  curl www.baidu.com先看看有网吗?
  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  更新病毒库
  271  clamscan -r /root    扫描指定目录
  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 写入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表示每周7的凌晨2点跑一次这个文件
  286  crontab -l
  287  crontab -e
  288  crontab -l
 

猜你喜欢

转载自blog.csdn.net/ccagy/article/details/110490926
今日推荐