[root@ufuso ~]# vi /etc/clamd.conf ← clamd設定ファイル編集
# Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges
User clamav
↓
#User clamav ← root権限で動作するようにする
[root@ufuso ~]# vi /etc/freshclam.conf ← ウィルスデータベース更新設定ファイル編集
# Uncomment the following line and replace XY with your country
# code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
#DatabaseMirror db.XY.clamav.net
DatabaseMirror db.jp.clamav.net ← ウィルスデータベース入手元を日本に変更
Clam AntiVirus起動
[root@ufuso ~]# systemctl start clamd ← clamd起動
[root@ufuso ~]# systemctl enable clamd ← clamd自動起動設定
clamd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig clamd on
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
[root@ufuso ~]# chkconfig clamd on ← clamd自動起動設定やり直し
ウィルス定義ファイル最新化
[root@ufuso ~]# sed -i 's/Example/#Example/g' /etc/freshclam.conf
← ウィルス定義ファイル更新機能の有効化
[root@ufuso ~]# freshclam ← ウィルス定義ファイル最新化
Clamd successfully notified about the update.