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