Uyicwangcisa kanjani i-Ubuntu Server ukufumana uhlaziyo lokhuselo ngokuzenzekelayo

Ubuntu iseva

Ubuntu Umncedisi Inguqulelo okanye 'incasa' enikezelwe ekusebenziseni kwayo kwiiseva kwaye ngenxa yoko kunokwenzeka ukuba abalawuli bayokugqibela ngokufikelela kuyo ukude ngeSSH, ukwenza imisebenzi yoqwalaselo kananjalo phucula. Lo inokuba ngumsebenzi omninzi, kodwa ngethamsanqa kwiLinux kuhlala kukho indlela yokwenza izinto ngokukhawuleza nangokufanelekileyo, kwaye yile nto sizakubonisa ngayo kule post.

I ngcamango qwalasela Ubuntu Server ukwenza uhlaziyo lokhuseleko ngokuzenzekelayo, kwaye ke nangona kufuneka sikhathalele ezinye izinto ezihlaziyiweyo (umzekelo, ezinye zeenkonzo okanye iiapps esizifakileyo) ubuncinci siya kuba senza indawo elungileyo yomsebenzi ngendlela ezenzekelayo, kunye nokonga ixesha kunye noxolo lwengqondo oku kuthetha ukuba kubaluleke kakhulu.

Into emnandi ngayo yonke le nto kukuba le nkqubo iyaqwalaselwa ngokugqithileyo, kwaye singayiguqula nanini na xa sifuna ukuyeka ukuzihlaziya ngokuzenzekelayo, okanye ukutshintsha iindawo zokugcina esivela kuzo. Ukuqalisa, into esiyifunayo ukufaka iphakheji uhlaziyo olungalindelwanga, into esiyenzayo ngolu hlobo lulandelayo:

# apt-fumana ufakelo olungalindelekanga

Ngale nto, ifayile yoqwalaselo ifakwe kwinkqubo yethu eya kubekwa kuyo /etc/apt/apt.conf.d/50unattended- uhlaziyo, kwaye yintoni eya kusivumela qwalasela iindawo zokugcina apho siza kufumana uhlaziyo, Kunye ne- iipakeji esifuna ukumakisha ukuba zingazihlaziyi (uluhlu lwabamnyama) ukuze sikwazi ukubanakho ukumisela ukuba sifuna ukubekela ecaleni usetyenziso okanye iinkonzo ezithile kwesi sikimu sohlaziyo oluzenzekelayo.

Ngoku, ekufuneka sikwenzile kukuvula ifayile kunye nomhleli wethu owuthandayo, ukuyiguqula kwaye uyenze ilunge:

#nano /etc/apt/apt.conf.d/50unattended- uhlaziyo

Into ekufuneka siyenzile kukushiya icandelo Imvelaphi evunyelweyo njengoko sibona ngezantsi:

// Ukuphucula ngokuzenzekelayo iipakeji kwezi (Imvelaphi: indawo yokugcina) paris
Uphuculo olungalindelwanga :: Imvelaphi evunyelweyo {
"$ {Distro_id}: $ {distro_codename} -ukhuseleko";
// "$ {distro_id}: $ {distro_codename} -ihlaziyo";
// "$ {distro_id}: $ {distro_codename} -kwenziwe";
// "$ {distro_id}: $ {distro_codename} -iindawo ezibuyela umva";
};

Emva koko sinako nje vumela uhlaziyo, izinto ezicetywayo okanye zokugcina ezingasemva susa nje uphawu lokuphawula (//) kwaye ugcine ifayile. Nje ukuba sithathe isigqibo malunga noku siya kwicandelo Uluhlu lweBhloko-uluhlu, engezantsi nje, kwaye kule meko kufuneka sikwenze kukongeza iiphakeji ESINGAFUNI ukuzihlaziya, ukuze ekugqibeleni ibe yinto enje:

// Uluhlu lweephakeji zokungazihlaziyi
Uphuculo olungalindelwanga :: Iphakheji-uLuhlu oluMnyama {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};

Ngoku into yokugqibela esishiyekileyo yile Yenza uhlaziyo oluzenzekelayo kwi-Ubuntu Server, esivulela kuyo ifayile /etc/apt/apt.d.conf.d/10periodic for editing:

#nano /etc/apt/apt.conf.d/10periodic

Esikwenzayo kukutshintsha u-0 ukuya ku-1 ukwenza uhlaziyo oluzenzekelayo, kunye nokuphambana nokuzenza zingasebenzi, ukuze ifayile yethu ijonge into efana nale:

I-APT :: Ixesha lexesha :: Hlaziya-Uluhlu lwePakeji-uLuhlu "1";
I-APT :: Ixesha lexesha :: Khuphela-iiPakethe ezihlaziyiweyo "1";
APT :: Ixesha lexesha :: AutocleanInterval "7";
I-APT :: Ixesha lexesha :: Uphuculo olungalindelwanga "1";

Kuko konke; njengoko siyibona iyinto elula ngokwenene kwaye sinombulelo esinakho ngokukhuselekileyo gcina ufakelo lwethu lwe-Ubuntu Server, ukukwazi ukuyikhupha ngokukhawuleza ukuba sinqwenela ngexesha elithile.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.