linux杀毒软件下载、安装(在线安装、离线安装)

下载

ClamAVNet

linux杀毒软件下载、安装(在线安装、离线安装)_第1张图片

离线安装

# 离线安装
rpm -ivh --prefix=/usr/local/clamav clamav*linux.x86_64.rpm
# 添加用户组和组成员
groupadd clamav
useradd -g clamav clamav
# 创建日志目录、病毒库目录和套接字目录
mkdir -p /usr/local/clamav/logs
mkdir -p /usr/local/clamav/update
mkdir -p /usr/local/clamav/socket
# 创建日志文件
touch /usr/local/clamav/logs/clamd.log
touch /usr/local/clamav/logs/freshclam.log
#文件授权
chown clamav:clamav /usr/local/clamav/logs/clamd.log
 chown clamav:clamav /usr/local/clamav/logs/freshclam.log
 chown clamav:clamav /usr/local/clamav/logs
 chown clamav:clamav /usr/local/clamav/update
 chown clamav:clamav /usr/local/clamav/socket
# 修改配置文件
cp  /usr/local/clamav/etc/clamd.conf.sample /usr/local/clamav/etc/clamd.conf
cp /usr/local/clamav/etc/freshclam.conf.sample /usr/local/clamav/etc/freshclam.conf







你可能感兴趣的:(linux,服务器,运维)