Mokhoa oa ho kenya ClamAV ho Rocky Linux 9

ClamAV ke sesebelisoa sa antivirus se feto-fetohang le se matla se ka itšireletsang khahlanong le software e mpe joalo. E 'ngoe ea litšebeliso tsa eona tsa bohlokoa ke ho li-server tsa poso, tse ka hlahlobang mangolo-tsoibila a kenang bakeng sa livaerase le litšokelo tse ling. E ka boela ea sebelisoa ho li-server tse amohelang lifaele ho hlahloba lifaele tse fumanehang bakeng sa ho jarolleloa sechabeng. Ntle le ts'ebeliso ea eona ho li-server, ClamAV e ka boela ea sebelisoa lik'homphieutha ka bomong ho hlahloba malware le litšokelo tse ling.

Software ea antivirus e boetse e ts'ehetsa liforomo tse ngata tsa lifaele, e sebelisa likarolo tsa sehatisi sa likhoele tse ngata, 'me e fumana lintlafatso bakeng sa database ea eona ea ho saena letsatsi le letsatsi, ka linako tse ling makhetlo a mangata ka letsatsi bakeng sa ts'ireletso ea morao-rao. Ka mantsoe a mang, ke sesebelisoa se matla sa ho sireletsa komporo ea hau ho tsoa kotsi. Kahoo haeba u batla lenaneo la antivirus le ka u fang khotso ea kelello, ClamAV e loketse ho e hlahloba.

Thupelo e latelang e tla u ruta mokhoa oa ho lokisa ClamAV ho Rocky Linux 9 komporong kapa seva le litaelo tse ling tsa mantlha tsa scan u sebelisa terminal ea line ea taelo.

Ntlafatsa Rock Linux

Pele o tsoela pele, tsamaisa apdeite e potlakileng ho netefatsa hore liphutheloana tsohle li nakong ho qoba likhohlano nakong ea ho kenya ClamAV.

sudo dnf upgrade --refresh

Kenya ClamAV

Mosebetsi oa pele ke ho kenya polokelo ea EPEL, 'me khothaletso ke ho kenya lipolokelo ka bobeli.

Taba ea pele, nolofalletsa polokelo ea CRB.

sudo dnf config-manager --set-enabled crb

E latelang, kenya EPEL sebelisa tse latelang (dnf) taelo ea terminal.

sudo dnf install \
    https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
    https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

Joale, kenya ClamAV ho tsoa sebakeng sa polokelo ea kamehla ka ho etsa taelo e latelang.

sudo dnf install clamav clamd clamav-update -y

Kaha joale u kentse ClamAV, u ka tsoela pele ho ntlafatsa database ea kokoana-hloko.

Nchafatsa Database ea ClamAV Virus

Ka ClamAV e kentsoeng, nchafatsa pokello ea hau ea polokelo ea ClamAV pele u sebelisa sehatisi sa vaerase (clamscan). Ho ntlafatsa litlhaloso, o tla hloka hore sistimi ea hau e hokahane le Marang-rang o sebelisa (freshclam) taelo ea terminal.

Ntlha ea pele, u lokela ho emisa ho (clamav-freshclam) tšebeletso pele o ka ntlafatsa. Ho etsa sena, thaepa taelo e latelang:

sudo systemctl stop clamav-freshclam

Joale o ka tsoela pele ho ntlafatsa database ea tlhaloso ea vaerase ka taelo e latelang ea terminal:

sudo freshclam

Mohlala oa tlhahiso:

Mokhoa oa ho kenya ClamAV ho Rocky Linux 9

Hang ha database e nchafalitsoe, u ka qala ho (clamav-freshclam) tšebeletso.

sudo systemctl enable clamav-freshclam --now

Taelo e ka holimo e tla kenya ts'ebeletso ebe e khona ho e nolofalletsa ho boot system, e khothaletsoang haholo.

Nakong e tlang, haeba o hloka ho tima clamav-freshclam, taelo e latelang e tla etsa mano.

sudo systemctl disable clamav-freshclam --now

Hlokomela, (freshclam) khoasolla ClamAV CVDS le database sebakeng sa bukana (/var/lib/clamav).

Qetellong, molemong oa ho ithuta, ho sheba bukana ea clamav le matsatsi a lifaele, sebelisa (ls -l) taelo.

ls -l /var/lib/clamav/

Mohlala oa tlhahiso:

Mokhoa oa ho kenya ClamAV ho Rocky Linux 9

Mokhoa oa ho hlahloba ka ClamAV (Clamscan)

Kaha joale u kentse ClamAV le ho e ntlafatsa, ke nako ea ho hlahloba sistimi ea hau ho netefatsa hore e hloekile. Sena se etsoa ka ho (clamscan) taelo.

Mohlala oa syntax o ka tlase.

sudo clamscan [options] [file/directory/-]

Se latelang ke lethathamo la mehlala ea litaelo tse tloaelehileng; tsena li ka fetoloa hore li lumellane le litlhoko tsa hau tsa ho hlahloba kamoo u bonang ho loketse.

Thuso ea ho hatisa ClamAV:

sudo clamscan -h

Hlakola faele:

sudo clamscan /home/script.sh

Hlakola lethathamo la lintho:

sudo clamscan /home/

Hatisa lifaele tse nang le tšoaetso feela:

sudo clamscan -i /home/

Tlohela ho hatisa lifaele tsa OK:

sudo clamscan -o /home/

Se ke oa hatisa kakaretso qetellong ea skena:

sudo clamscan --no-summary /home/

Tsebiso ea Bell mabapi le ho lemoha vaerase:

sudo clamscan --bell -i /home

Hlakola li-directory ka ho pheta-pheta:

sudo clamscan --bell -i -r /home

Boloka scan ninemangart ho faele:

sudo clamscan --bell -i -r /home -l output.txt

Hlakola lifaele tse thathamisitsoeng ka mola faeleng:

sudo clamscan -i -f /tmp/scan

Tlosa lifaele tse nang le tšoaetso:

sudo clamscan -r --remove /home/USER

Hlokomela hore sena se hlakola faele ho sistimi ea hau. Haeba e le phoso, u ke ke ua khona ho fumana faele.

Tsamaisa lifaele tse tšoaelitsoeng bukeng ea karabelo:

sudo clamscan -r -i --move=/home/USER/infected /home/

Fokotsa Tšebeliso ea ClamAV CPU

ClamAV nakong ea ho hlahloba e ka ba matla haholo ho CPU, 'me litsamaiso tse sebetsang ka lisebelisoa tse fokolang kapa tsa khale li ka fumana ts'ebetso e le lekhetho haholo lits'ebetsong tsa tsona. Mokhoa o bonolo oa ho fokotsa (CPU) nakong ea skena ke ho sebelisa (e ntle) laela pele ho taelo e 'ngoe le e 'ngoe ea ClamAV.

Mohlala oa a (e ntle) taelo ea ho fokotsa ClamAV CPU:

sudo nice -n 15 clamscan && sudo clamscan --bell -i -r /home

Molemo o moholo oa ho sebelisa mokhoa ona ke hore ClamAV e sebelisa (clamscan) e tla eketsa ts'ebeliso ea CPU haeba ho se letho le leng le sebelisang CPU. Leha ho le joalo, haeba ts'ebetso e 'ngoe e tlang pele haholo e hloka CPU, clamsca e tla theoha ka katleho ho lumella ts'ebetso e' ngoe hore e tle pele.

Leha ho le joalo, ho na le likhetho tse ling tse seng kae; the (e ntle) taelo ke tharollo e molemohali. E tla eketsa CPU haeba e lokolohile 'me e theohe ha li-processor tse ling li e hloka, ka katleho e u fa motsoako o motle oa ts'ebetso le polokeho.

Mokhoa oa ho ntlafatsa / ho ntlafatsa ClamAV

Kaha ClamAV e kentsoe ho sebelisoa mookameli oa sephutheloana sa DNF ho tloha polokelong ea EPEL, sebelisa taelo e latelang ho hlahloba lintlafatso tsa ClamAV kapa sephutheloana sefe kapa sefe sa sistimi se kentsoeng.

sudo dnf update --refresh

Bakeng sa basebelisi ba komporo, o lokela ho sebelisa taelo ea "terminal" leha o na le litsebiso tse ikemetseng kapa lintlafatso tsa othomathiki. Sena se tiisa hore liphutheloana tsohle li nchafatsoa ka nepo, 'me terminal e ke ke ea hlola e hloleha.

Mokhoa oa ho tlosa (Uninstall) ClamAV

Taba ea pele, tima ts'ebeletso bakeng sa basebelisi ba seng ba sa rate ho sebelisa ClamAV.

sudo systemctl disable clamav --now

E latelang, sebelisa taelo e latelang ho tlosa mesaletsa eohle ea ClamAV le litšepiso tsa eona.

sudo dnf autoremove clamav clamd clamav-update -y

Maikutlo le Qetello

ClamAV ke sesebelisoa sa antivirus se feto-fetohang ka mokhoa o makatsang ebile se matla se ka sireletsang khahlanong le software e mpe joalo. E 'ngoe ea litšebeliso tsa eona tsa bohlokoa ke ho li-server tsa poso, tse ka hlahlobang mangolo-tsoibila a kenang bakeng sa livaerase le litšokelo tse ling. E ka boela ea sebelisoa ho li-server tse amohelang lifaele ho hlahloba lifaele tse fumanehang bakeng sa ho jarolleloa sechabeng. Ntle le ts'ebeliso ea eona ho li-server, ClamAV e ka kenngoa le litsing tsa mosebetsi ka bomong ho itšireletsa tšoaetsong ea malware. Haeba u batla tharollo ea antivirus e felletseng le e tšepahalang, ClamAV ke khetho e ntle haholo.

Ho fumana leseli le eketsehileng mabapi le ho sebelisa ClamAV, etela ofisiri litokomane.



Latela LinuxCapable.com!

Na u rata ho fumana liapdeite? Re latele ho e 'ngoe ea li-account tsa rona tsa litaba tsa sechaba!