Last login: Sun Sep 25 09:46:20 2016 from 192.168.24.242
[tu@ufuso ~]$ su ← ユーザーをrootに変更
パスワード: ← rootのパスワードを入力
[root@ufuso tu]# yum -y install clamd --enablerepo=rpmforge
← Clam AntiVirusインストール
インストール:
clamd.x86_64 0:0.98.4-1.el7.rf
依存性関連をインストールしました:
clamav.x86_64 0:0.98.4-1.el7.rf clamav-db.x86_64 0:0.98.4-1.el7.rf
完了しました!
Clam AntiVirus設定
[root@ufuso tu]# 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 tu]# 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 tu]# systemctl start clamd ← clamd起動
[root@ufuso tu]# systemctl enable clamd ← clamd自動起動設定
clamd.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig clamd on
[root@ufuso tu]# chkconfig clamd on ← clamd自動起動設定やり直し
ウィルス定義ファイル最新化
[root@ufuso tu]# sed -i 's/Example/#Example/g' /etc/freshclam.conf
← ウィルス定義ファイル更新機能の有効化
[root@ufuso tu]# freshclam ← ウィルス定義ファイル最新化
Clamd successfully notified about the update.