linux杀毒软件clamav,linux杀毒软件-clamav
8种机械键盘轴体对比
本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?
第一篇 Install ClamAV
ClamAV® is an open source (GPL) anti-virus engine used in a variety of situations including email scanning, web scanning, and end point security. It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and an advanced tool for automatic database updates.
1. Install and Configure ClamAV on CentOS 7yum install epel-release
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
2. Disable SELinux for ClamAV[[email protected] system]# more /etc/selinux/config
SELINUX=disabled
3. Configuration of Clam daemoncp /usr/share/clamav/template/clamd.conf /etc/clamd.d/clamd.conf
sed -i ‘/^Example/d’ /etc/clamd.d/clamd.conf
mkdir -p /var/run/clamd.servce/
chown clamscan:clamscan clamd.service
vi /etc/clamd.d/clamd.conf
User clamscan
LocalSocket /var/run/clamd.servce/clamd.sock
4. Configuration of Clam scan daemoncp /etc/clamd.d/scan.conf /etc/clamd.d/scan.conf.backup
sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf
vi /etc/clamd.d/scan.conf
User clamscan
LocalSocket /var/run/clamd.scan/clamd.sock
5. Enable FreshclamFreshclam helps with keeping the database of ClamAV up-to-date. First delete the related “Example” line from /etc/freshclam.conf.cp /etc/freshclam.conf /etc/freshclam.conf.bak
sed -i ‘/^Example/d’ /etc/freshclam.conf
6. Missing systemd service fileWe didn’t get a systemd service file, so creating a quick file here. The process should be forking itself and start freshclam in daemon mode. In this case we configure it to check 4 times a day for new files.
Create a new file /usr/lib/systemd/system/clam-freshclam.service# Run the freshclam as daemon
[Unit]
Description = freshclam scanner
After = network.target
[Service]
Type = forking
ExecStart = /usr/bin/freshclam -d -c 4
Restart = on-failure
PrivateTmp = true
[Install]
WantedBy=multi-user.targetNow enable and start the service.systemctl enable clam-freshclam.service
systemctl start clam-freshclam.service
[[email protected] system]# systemctl status clam-freshclam.service
● clam-freshclam.service - freshclam scanner
Loaded: loaded (/usr/lib/systemd/system/clam-freshclam.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-11-08 02:31:36 GMT; 3h 33min ago
Main PID: 26033 (freshclam)
Memory: 1.3M
CGroup: /system.slice/clam-freshclam.service
└─26033 /usr/bin/freshclam -d -c 4
Nov 08 02:31:36 ct7.qa.webex.com systemd[1]: Starting freshclam scanner...
Nov 08 02:31:36 ct7.qa.webex.com freshclam[26033]: freshclam daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Nov 08 02:31:36 ct7.qa.webex.com freshclam[26033]: ClamAV update process started at Wed Nov 8 02:31:36 2017
Nov 08 02:31:36 ct7.qa.webex.com systemd[1]: Started freshclam scanner.
Nov 08 02:31:37 ct7.qa.webex.com freshclam[26033]: main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Nov 08 02:31:37 ct7.qa.webex.com freshclam[26033]: daily.cvd is up to date (version: 24023, sigs: 1774015, f-level: 63, builder: neo)
Nov 08 02:31:37 ct7.qa.webex.com freshclam[26033]: bytecode.cld is up to date (version: 318, sigs: 75, f-level: 63, builder: raynman)
Nov 08 02:31:37 ct7.qa.webex.com freshclam[26033]: --------------------------------------
7. Missing systemd service fileBy default, the service files seem to be messy and not working.#These are the files bundled:
[[email protected] system]# ls -l /usr/lib/systemd/system/clam*
-rw-r--r--. 1 root root 136 Apr 29 20:38 [email protected]
-rw-r--r--. 1 root root 231 Apr 29 20:38 /usr/lib/systemd/system/clamd@.service
#When enabling the clamd service, we would see something like this:
[[email protected] system]# systemctl enable /usr/lib/systemd/system/clamd@.service
Failed to issue method call: Unit /usr/lib/systemd/system/clamd@.service does not exist.
#So let’s fix it. First rename the /usr/lib/systemd/system/clamd@.service file.
#Rename the clamd@ file.
mv /usr/lib/systemd/system/clamd@.service /usr/lib/systemd/system/clamd.service
#Now we have to change the [email protected] service as well, as it refers to a non-existing file now. Change this line in [email protected] and remove the @ sign.
[[email protected] system]# more [email protected]
.include /lib/systemd/system/clamd.service
#Next step is changing the clamd service file /usr/lib/systemd/system/clamd.service
[[email protected] system]# more [email protected]
.include /lib/systemd/system/clamd.service
[Unit]
Description = Generic clamav scanner daemon
[Install]
WantedBy = multi-user.target
[[email protected] system]# more /usr/lib/systemd/system/clamd.service
[Unit]
Description = clamd scanner daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/clamd.conf --foreground=yes
Restart = on-failure
PrivateTmp = true
[Install]
WantedBy=multi-user.target
#Start all services.
cd /usr/lib/systemd/system
[[email protected] system]# systemctl enable clamd.service
[[email protected] system]# systemctl enable [email protected]
[[email protected] system]# systemctl start clamd.service
[[email protected] system]# systemctl start [email protected]
#Check the status
[[email protected] system]# systemctl status clamd.service
● clamd.service - clamd scanner daemon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-11-08 05:31:45 GMT; 38min ago
Main PID: 32202 (clamd)
Memory: 510.1M
CGroup: /system.slice/clamd.service
└─32202 /usr/sbin/clamd -c /etc/clamd.d/clamd.conf --foreground=yes
Nov 08 05:31:58 ct7.qa.webex.com clamd[32202]: HTML support enabled.
Nov 08 05:31:58 ct7.qa.webex.com clamd[32202]: XMLDOCS support enabled.
Nov 08 05:31:58 ct7.qa.webex.com clamd[32202]: HWP3 support enabled.
Nov 08 05:31:58 ct7.qa.webex.com clamd[32202]: Self checking every 600 seconds.
Nov 08 05:42:00 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
Nov 08 05:42:00 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
Nov 08 05:52:03 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
Nov 08 05:52:03 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
Nov 08 06:02:11 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
Nov 08 06:02:11 ct7.qa.webex.com clamd[32202]: SelfCheck: Database status OK.
[[email protected] system]# systemctl status [email protected]
● [email protected] - Generic clamav scanner daemon
Loaded: loaded ([email protected]; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-11-08 06:11:17 GMT; 4s ago
Main PID: 1622 (clamd)
CGroup: [email protected]
└─1622 /usr/sbin/clamd -c /etc/clamd.d/clamd.conf --foreground=yes
Nov 08 06:11:17 ct7.qa.webex.com systemd[1]: Started Generic clamav scanner daemon.
Nov 08 06:11:17 ct7.qa.webex.com systemd[1]: Starting Generic clamav scanner daemon...
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Received 0 file descriptor(s) from systemd.
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Running as user clamscan (UID 387, GID 386)
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Log file size limited to 1048576 bytes.
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Reading databases from /var/lib/clamav
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Not loading PUA signatures.
Nov 08 06:11:17 ct7.qa.webex.com clamd[1622]: Bytecode: Security mode set to "TrustSigned".
8. if not work, check this log[[email protected] clamd.service]# tail -f /var/log/messages
Nov 8 06:13:22 ct7 systemd: [email protected] holdoff time over, scheduling restart.
Nov 8 06:13:22 ct7 systemd: Started Generic clamav scanner daemon.
Nov 8 06:13:22 ct7 systemd: Starting Generic clamav scanner daemon...
Nov 8 06:13:22 ct7 clamd[1721]: Received 0 file descriptor(s) from systemd.
Nov 8 06:13:22 ct7 clamd[1721]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Nov 8 06:13:22 ct7 clamd[1721]: Running as user clamscan (UID 387, GID 386)
Nov 8 06:13:22 ct7 clamd[1721]: Log file size limited to 1048576 bytes.
Nov 8 06:13:22 ct7 clamd[1721]: Reading databases from /var/lib/clamav
Nov 8 06:13:22 ct7 clamd[1721]: Not loading PUA signatures.
Nov 8 06:13:22 ct7 clamd[1721]: Bytecode: Security mode set to "TrustSigned".
Nov 8 06:13:33 ct7 clamd[1721]: Loaded 6335039 signatures.
linux杀毒软件clamav,linux杀毒软件-clamav相关推荐
- 编译linux为病毒,Linux杀毒软件ClamAV(转:秦工)
内容纲要ClamAV是一个C语言开发的开源病毒扫描工具用于检测木马/病毒/恶意软件等.可以在线更新病毒库, Linux系统的病毒较少,但是并不意味着病毒免疫,尤其是对于诸如邮件或者归档文件中夹杂的病毒 ...
- 杀毒软件的Linux版,Linux杀毒软件免费版下载
Linux杀毒软件很多是收费的,这里,我们提供几款国外的Linux杀毒软件免费版下载,为什么要强调国外的呢?因为国产的Linux杀毒软件免费版,多数开发的不够持久,有些已经停止更新很久了,有些已经无法 ...
- linux系统怎么安全杀毒软件,Linux系统用什么杀毒软件 为什么Linux不中毒
Linux下有哪些杀毒软件?国产的我找了一遍貌似没有,国外的avast.norton.eset也不支持. 其实之前有了解过Linux不容易中毒,但没有考虑过Linux下有哪些杀毒软件,为什么Linux ...
- Centos Linux 安装杀病毒扫描软件 clamAV
clamAV安装脚本 clamAV安装脚本 clamAV安装脚本 #!/bin/bash echo "install ClamAV" yum -y update yum -y in ...
- Linux下安装免费杀毒软件---ClamAV
一.简介 ClamAV是用于检测木马,病毒,恶意软件和其他恶意威胁的一个开源杀毒引擎. 官网:http://www.clamav.net/ 二.安装 安装包安装 安装包或yum安装 下载安装地址:ht ...
- Linux != Windows( Linux 不是 Windows)
Linux != Windows ( Linux 不是 Windows) Derived works 如果你访问了这个页面,那么十有八九你是一个 Linux 的新用户,你正遇到许多关于如何由 Wind ...
- Alpine linux 小内存版,Alpine Linux系统-Alpine Linux系统【轻量级Linux】下载v3.11.0 最新版-西西软件下载...
Alpine Linux系统[轻量级Linux],Alpine Linux其实就是一个清凉版的Linux系统,通过牺牲一些不常用的功能和特性来达到更加轻巧的体积以及更快的响应速度.Alpine Lin ...
- Linux学习之三-Linux系统的一些重要配置文件
Linux学习之三-Linux系统的一些重要配置文件 1.网卡配置文件 /etc/sysconfig/network-scripts/ifcfg-eth0 说明: DEVICE=eth0 ...
- 虚拟机桌面linux系统,KVM - Linux下三大免费桌面虚拟机评测_Linux教程_Linux公社-Linux系统门户网站...
KVM KVM(基于内核的虚拟机)是一个x86 Linux全虚拟化解决方案,需要硬件支持虚拟化扩展(Intel VT 或AMD-V),它由一个载入时内核模块kvm.ko(提供核心虚拟化基础设施)和一个 ...
最新文章
- Ajax[Mount]
- 1.8 循环神经网络的梯度消失-深度学习第五课《序列模型》-Stanford吴恩达教授
- [20171227]表的FULL_HASH_VALUE值的计算2
- qq地区采集_用户诉QQ浏览器违法收集个人隐私,法院裁定腾讯立即停止相关行为...
- Flask框架(flask中的request对象,获取请求参数,保存上传的文件)
- html制作翻页效果代码,使用原生JS实现滚轮翻页效果的示例代码
- 算法 --- [map的使用]求最大和谐子序列
- 函数 devm_kzalloc()
- 水滴石穿C语言之typedef的问题
- Asp.net Ajax 的 PageRequestManager类的事件
- C# 读取Execl和Access数据库
- 002-Go通过ioutil 读写文件
- [ POI 2005 ] Bank Notes
- mysql where range_MYSQL explain详解之range
- 移动端 短信发送,一键拨号功能
- 2021年中国图书出版行业经营现状及重点企业对比分析:凤凰传媒优势明显[图]
- 在职研究生-学术硕士和专业硕士有什么区别?
- OSPF之区域间路由
- 调整IT外包业务合同 降低外包价格
- 基于双向 GRU 的文本分类 Python 算法实战