Momwe mungasinthire Ubuntu Server kuti mulandire zosintha zachitetezo chokha

thumb

Ubuntu Server Ndi mtundu kapena 'kununkhira' komwe kumaperekedwa kuti kumagwiritsidwe ntchito pamaseva motero ndizotheka kuti oyang'anira pamapeto pake adzaupeza Kutali kudzera pa SSH, Kuchita ntchito zosintha komanso zosintha. Uwu ukhoza kukhala ntchito yambiri, koma mwatsoka mu Linux nthawi zonse mumakhala njira zina zochitira zinthu mwachangu komanso moyenera, ndipo ndi zomwe tikuwonetsa positi iyi.

Lingaliro liri konzani Ubuntu Server kuti ichite zosintha zachitetezo chokha, choncho ngakhale timayenera kusamalira zosintha zina (mwachitsanzo, zina mwamautumiki kapena mapulogalamu omwe tidayika) mwina tidzakhala tikugwira bwino ntchitoyo munjira yokhayokha, komanso ndikusunga nthawi ndipo mtendere wamumtima womwe izi zikutanthauza ndikofunikira.

Chabwino pazonsezi ndikuti dongosololi limasinthika mopitirira muyeso, ndipo titha kulisintha nthawi iliyonse yomwe tikufuna kusiya kusinthanso zokha, kapena kusintha malo osungira omwe tasintha. Kuyamba, zomwe tikusowa ndikuyika package kusinthidwa kosasunthika, zomwe timachita motere:

# apt-get kukhazikitsa zosasinthidwa-zosintha

Ndi izi, fayilo yosinthidwa imayikidwa m'dongosolo lathu lomwe lipangidwe /etc/apt/apt.conf.d/50unattended-gragrades, ndipo izi zitilola sinthani nkhokwe zomwe tilandire zosintha, komanso phukusi lomwe tikufuna kulemba kuti tisasinthe (mndandanda wakuda) kotero kuti titha kusinthasintha kuti titha kudziwa ngati tikufuna kupatula mapulogalamu kapena ntchito zina pazomwe zingasinthidwe zokha.

Tsopano, zomwe tiyenera kuchita ndikutsegula fayiloyo ndi mkonzi yemwe timakonda, kuti tisinthe ndikukonzekera:

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

Zomwe tiyenera kuchita ndikusiya gawolo Zololedwa-Chiyambi monga tikuonera pansipa:

// Sinthani ma phukusi mwadzidzidzi kuchokera ku (chiyambi: archive) paris
Sintha-Zosintha :: Zololedwa-Zoyambira {
"$ {Distro_id}: $ {distro_codename} -chitetezo";
// "$ {distro_id}: $ {distro_codename} -osintha";
// "$ {distro_id}: $ {distro_codename} -kuperekedwa";
// "$ {distro_id}: $ {distro_codename} -mabwalo am'mbuyo";
};

Ndiye tikhoza basi thandizani zosintha, zotetezedwa kapena zosungira kumbuyo ingochotsani chizindikiro (//) ndikusunga fayilo. Tikasankha izi timapita ku gawolo Phukusi-Blocklist, yomwe ili pansipa, ndipo pankhaniyi tiyenera kuchita ndi kuwonjezera mapaketi omwe SITIKUFUNA kuwasintha, kuti pamapeto pake akhale ngati awa:

// Mndandanda wamaphukusi oti musasinthe
Sintha-Zosintha :: Phukusi-Mndandanda Wamtundu {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};

Tsopano chinthu chomaliza chomwe tatsala nacho ndi thandizani zosintha zokha pa Ubuntu Server, yomwe timatsegula fayilo /etc/apt/apt.d.conf.d/10periodic kuti isinthidwe:

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

Zomwe timachita ndikusintha 0 kukhala 1 kuti titsegule zosintha zokha, ndi zosiyana ndi kuzimitsa, kuti fayilo yathu iwoneke ngati iyi:

APT :: Nthawi: :: Sinthani-Phukusi-Mndandanda "1";
APT :: Nthawi: :: Zolemba-Zosintha-Zosintha "1";
APT :: Nthawi :: AutocleanInterval "7";
APT :: Nthawi: :: Kusintha Osasamala "1";

Ndizomwezo; monga tikuwonera ndichinthu chosavuta kwenikweni ndipo chifukwa cha zomwe tingathe sungani mosamala makina athu a Ubuntu Server, kukhala wokhoza kuichotsa mwachangu kwambiri ngati tikufuna nthawi ina.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.