How to Stop and Disable ClamAV Service from CentOS?

We all know that ClamAV scanner is a pretty heavy on CPU-Memory resources, and it should be avoided in low memory Linux systems. If you want to disable the ClamAV scanner from your CentOS system, you can refer to the following instructions.

 

Disable ClamAV service

  1. The first step is to stop the ClamAV scanner by applying following command.

    # service clamd stop
  2. To enable and disable the services in Red Hat based Linux distributions, chkconfig script is used. Issue following commands to disable the ClamAV scanner at the system startup.

    # chkconfig clamd off 
    # chkconfig clamd --del 
  3. Once ClamAV is disabled, you may have to verify it's status. Execute the following command to check whether ClamAV is disabled at boot level or not. If ClamAV is disabled successfully following command won't show you any result.

    #chkconfig --list | grep clam

    After applying above changes, The system next time will boot without ClamAV service which in fact will be saving our system resource and the server would be faster.


Disable other unwanted services


You can execute command shown in step#2 to disable other unwanted packages and application from your CentOS system. All you've to do is, execute the following command to list all services and determine the service name you want to disable. The following command will display all services and their status at boot on each run level.

 

# chkconfig --list


Once service name is determined, execute the command shown in step#2 replacing service name with clamd.


  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

5 Wget Command Examples to Download Files in Linux.

wget is used to download your files from the remote server. It is used mostly on Linux...

Fix :: SSH Error: Starting sshd: Missing privilege separation directory: /var/empty/sshd

Problem Statement Could not connect to Linux machine through SSH. Error Message While starting...

How to deploy Mean.js application to Linux VPS?

Upload Mean.js Files via SFTP In FileZilla Once your mean.js webcontent is ready, you need to...

How to Install Jenkins on CentOS 7?

Jenkins is an opensource and free tool for developers to develop, test and deploy the code...

How to check Various cPanel logs like WHM, Apache, MySQL, Email, Error etc?

You can use cPanel to access your Linux hosting account with GUI. It is relatively easier to work...