linux下安装clamav
yum install epel-release //安装红帽扩展
//安装
yum install clamav –y
yum install clamav-scan*
yum install clamav-serv*
freshclam //似乎是更新病毒库
vim /etc/clamd.d/scan.conf //编辑配置文件 注释目的不清楚
//定位配置文件中的socket:
进入文件:/socket 使用n向下
使用grep命令 grep -rn socket scan.conf
systemctl enable clamd@scan //设置开机自启动 systemctl enable service
systemctl start clamd@scan //启动服务
systemctl status clamd@scan
//检查开机启动服务
# systemctl is-enabled clamd@scan
//列出全部服务
# systemctl list-unit-files
//列出服务后再进行过滤
# systemctl list-unit-files|grep clam