Mehdiershadi98
October 19th, 2017, 23:48
8. Anti-Virus – ClamAV
You need AV protection to protect the server against worms and trojans
invading your mailbox and files! Just install clamav (a free open source
antivirus software for linux). More information can be found on clamav.
website – http://www.clamav.netIn order to install CLamAV login into SSH and type
yum install clamav
Once you have installed clamav for your CentOS, here are some basic commands you will need:Update the antivirus database
freshclam
Run antivirus
clamscan -r /home
Running as Cron Daily Job
To run antivirus as a cron job (automatically scan daily) just run
crontab -e from your command line. Then add the following line and save
the file.
@daily root clamscan -R /home
It means clamav will be scanning /home directory every day. You can change the folder to whatever you want to scan.
You need AV protection to protect the server against worms and trojans
invading your mailbox and files! Just install clamav (a free open source
antivirus software for linux). More information can be found on clamav.
website – http://www.clamav.netIn order to install CLamAV login into SSH and type
yum install clamav
Once you have installed clamav for your CentOS, here are some basic commands you will need:Update the antivirus database
freshclam
Run antivirus
clamscan -r /home
Running as Cron Daily Job
To run antivirus as a cron job (automatically scan daily) just run
crontab -e from your command line. Then add the following line and save
the file.
@daily root clamscan -R /home
It means clamav will be scanning /home directory every day. You can change the folder to whatever you want to scan.