Igumbi lasendaweni leCentOS 7 (isibuko)

Uma kunjalo, lapha ngikulethela indlela yokulingisa i-CentOS 7. Ziyini izinzuzo zalokhu? Phakathi kwazo, ulondoloza umkhawulokudonsa we-inthanethi, ugcina ikhophi lasendaweni lamafosikhophi akho okulandwayo nokufakwa kwawo kushesha kakhulu, futhi okuyinhloko kukho konke kusiza kakhulu njengeseva yokuvuselela uma unamaseva ayi-10 noma izikhungo zokusebenzela eziyi-1000 I-CentOS ngicabanga ukuthi le inketho yakho engcono kakhulu ngoba unganikela ngenkonzo yokuvuselela okusheshayo nangejubane lenethiwekhi yakho ye-LAN.

Manje, ungenza isibuko sakho ngezindlela ezingaba yishumi kepha ngizokutshela eyodwa ngombono wami ukuthi iyashesha futhi inethezekile, kahle ungenza isibuko sakho kunoma yikuphi ukusatshalaliswa okusekela rsync. Yesiiiiii! noma ngubani, ungafunda ingxenye ye-rsync kuphela, wenze okugciniwe kwasendaweni kwe-centOS ku-ubuntu, i-debian, i-fedora, i-redhat, i-slackware, bonke basekela i-rsync

rsync uhlelo lokusebenza lwamahhala lwezinhlelo zohlobo lwe-Unix ne-Microsoft Windows ezinikezela ngokudluliswa okusebenzayo kwemininingwane ekhuphukayo, esebenza futhi ngemininingwane ecindezelwe futhi ebetheliwe. Usebenzisa inqubo yokufaka ikhodi ku-delta, ikuvumela ukuthi uvumelanise amafayela nezikhombisi phakathi kwemishini emibili kunethiwekhi noma phakathi kwezindawo ezimbili emshinini ofanayo, ukunciphisa ivolumu yedatha edlulisiwe.

Siyaqhubeka nokufaka i-rsync
# yum install rsync

Uma usufakiwe kufanele ubheke ohlwini lwe Izibuko zeCentOS isibuko esithile eduze kwasendaweni yakho esisebenza ne-rsync (yikholamu lesithupha) Indawo yeRsync

Dala ifolda lapho ungabeka khona ikhosombe, ngenze isibuko se-CentOS 7 kuphela, sigcwaliswe ngama-isos nawo wonke amafolda atholakalayo, athathe ama-38 GB, ngakho-ke cabanga uma uzokwenza isibuko esinqunyiwe sezinye izinhlobo ze-centOS noma isibuko esigcwele. Izothatha isikhala esingakanani? Into okufanele uyihlole.

# mkdir -p /home/repo/CentOS/7

Indawo yokugcina inawo wonke la mafolda:

  • atomic
  • ikhulu
  • ifu
  • cr
  • okungeziwe
  • okusheshayo
  • isos
  • os
  • sclo
  • isitoreji
  • izibuyekezo
  • amandla

i-rsync isebenza kanjena:

# rsync --delete-excluded --exclude "local" --exclude "isos" --exclude "*.iso"

  • Ngomaki susa - ukhishwe ngaphandle futhi-- ngaphandle ungawanaki amafolda noma amafayela, isibonelo ifolda ye-iso, noma amafayela we-.iso, kulula kakhulu?

# rsync -aqzH --delete msync.centos.org::CentOS /path/to/local/mirror/root

  • Ngokukhethwa kukho -Susa, izosusa amafayela angasekho kumthombo.
  • -a ingobo yomlando nesitolo
  • -q imodi ethule, icindezela imilayezo engeyona eyamaphutha
  • -z cindezela idatha ngesikhathi sokudlulisa
  • -H gcina izixhumanisi ezinzima, uma ufuna bengingancoma nenketho -l ukubamba ama-symlinks

Ngikwenze kanjani? elula kanjena:

# rsync -avzqlH --delete --delay-updates rsync://ftp.osuosl.org/centos/7/ /home/repo/CentOS/7

Ungajahi, ngizochaza ukuthi kungani ngikwenze kanjena.

  • -Izibuyekezo zokubambezeleka Faka wonke amafayela abuyekeziwe ekugcineni kokulanda konke, uyangizwa? Okusho ukuthi, akabuyekezi njalo lapho elanda ifayili elisha, kepha kunalokho, uma ngabe bekukhona amafayela amasha ayi-100, ngemuva kokuqeda amafayela amasha ayi-100, uwavumelanise beka endaweni
  • i-rsync: //ftp.osuosl.org/centos/7/ ngoba ngifuna ukwenza kuphela i-CentOS 7
  • / var / www / html / repo / CentOS / 7 lapho ngizobeka khona wonke amafayela wami engiwakopishe emthonjeni.

Akudingekile, kepha ngincoma iphakheji mdalo, ngokumane nje ikwenze ukuyinikeza isici se-http bese udala inkomba yokugcina kwakho

# yum install createrepo

Ngemuva kwalokho vele usebenzise umyalo okhomba endaweni yakho yokugcina

# createrepo /home/repo/CentOS/7

Manje uma usuqedile, kufanele wabelane ngayo ngandlela thile, ngihlala ngisebenzisa iseva ye-http, ngiqhubeka neCentOS 7, ungafaka isiphakeli sewebhu esiyisisekelo ngokulandelayo (sebenzisa i-httpd, akuyona i-apache)

# yum group install -y "Basic Web Server

Dala isixhumanisi esingokomfanekiso sisuka endaweni yangempela yokugcina siye kufolda ethi "www"

# ln -s /home/repo /var/www/html/repo

Sakha amafolda anikwe amandla amasayithi namasayithi
# mkdir /etc/httpd/sites-available
# mkdir /etc/httpd/sites-enabled

Sihlela ifayela le-httpd.conf ukwengeza wonke amasayithi ethu anikwe amandla amasayithi

# vi /etc/httpd/conf/httpd.conf

Faka lo mugqa ekugcineni kwefayela
Faka amasayithi anokukhetha anikwe amandla / *

Sakha futhi sihlele iwebhusayithi yethu

# vi /etc/httpd/sites-available/repocentos.conf


I-ServerName repocentos.com
#ServerAlias ​​example.com
IdokhumentiRoot / var / www / html / repo / CentOS /
IphuthaLog /var/log/httpd/error.log
I-CustomLog /var/log/httpd/requests.log ihlangene

Senza indawo yethu isebenze ngokwakha isixhumanisi esingokomfanekiso

# ln -s /etc/httpd/sites-available/repocentos.conf  /etc/httpd/sites-enabled/repocentos.conf

Sishintsha umnikazi neqembu lamafayela namafolda ama-apache

# chown apache. www/ -R

Sisebenzisa umyalo olandelayo ukuze iseva yewebhu iqale kusukela lapho siqala khona umshini

# systemctl enable httpd.service

Siqala kabusha iseva yewebhu ngomyalo olandelayo

# systemctl restart httpd

Singayisebenzisa kanjani?

Dala ifayela ku /etc/yum.repos.d/local.repo bese unamathisela imigqa elandelayo:

[os] name = master - Base baseurl = http: //ip noma i-url/ repo / CentOS / $ releasever / os / $ basearch / gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7 [updates] name = master - Updates baseurl = http: //ip noma i-url/ repo / CentOS / $ release / updates / $ basearch / gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7 [extras] name = master - Extras baseurl = http: //ip noma i-url/ repo / CentOS / $ releasever / extras / $ basearch / gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7 [centosplus] name = master - CentosPlus baseurl = http: //ip noma i-url/ repo / CentOS / $ releasever / centosplus / $ basearch / gpgcheck = 1 gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-7

Sivuselela amakhosombe nge:
# yum clean all

# yum repolist all

# yum update

Kulungile ngalesi sikhathi. Njengenjwayelo khumbula ukulandela eduze okuthunyelwe kwami ​​nale webhusayithi. Beka amazwana ngakho-ke sonke sabelana ngolwazi lwethu, kuze kube yisikhathi esizayo !!!


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   elindokuhle kusho

    Ngabe iCentos ilungele ukusetshenziswa kwi-PC yomsebenzisi wokugcina? Noma ukuchitha izinsiza? Kade ngiyivivinya nge-Live-usb futhi ngiyithande kakhulu.

    1.    BrodyDalle kusho

      Kuzinzile kakhulu, kuyindlela enhle impela. Siyabonga ngokuphawula kwakho

    2.    I-HO2Gi kusho

      Elendilnarsil othandekayo sebenzisa uFedora njengomsebenzisi wokugcina onamasenti kufanele usebenze kakhulu futhi iseva ezinzile kakhulu.

  2.   Gonzalo Martinez kusho

    Amandla angakwazi. Kepha akuhloselwe kakhulu ama-desktops wabasebenzisi abajwayelekile.

    Ungamangali uma i-Wifi noma enye i-diver engingayazi, ikhamera yewebhu, (ngoba ifaka phakathi abashayeli ngaphezu kwanoma iyiphi iseva kanzima), ukuthi ku-repo akukho phakheji engingayazi, ama-codec, i-office automation, noma into efana naleyo, noma ukuthi amaphakheji madala (kepha azinzile njengensimbi)

    1.    BrodyDalle kusho

      Angivumelani nawe, kukhona amakhosombe asemthethweni aqondiswe kulokhu, njenge-epel ne-nux https://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS7

  3.   Gonzalo Martinez kusho

    Ukuya ku-athikili, kuhle kakhulu !!

    Lapho unenani elikhulu lamakhompyutha we-Linux, ukufakwa kushesha kakhulu futhi kusebenza ngokwengeziwe.

    1.    BrodyDalle kusho

      kunjalo, ngiyabonga ngokuphawula kwakho

  4.   U-Alexmanafan kusho

    Sawubona uzakwethu, ngingakhansela futhi ngiqale kabusha ukulanda kabusha? qhubeka lapho ngishiye khona?
    Gracias

  5.   luis kusho

    umngani ongabazayo, njengoba ngisebenzisa i-repo ngo-http, okungukuthi, bona ukwakheka kwe-repo kusuka ku-httpd
    http://172.16.1.9 Ngithola ikhasi le-apache kepha ngifuna ukulibeka http://172.16.1.9/??? ukubona ukwakheka nge-http.

    I-gracias

  6.   I-Odnamra kusho

    Ngidinga ukubuza umbuzo ngokungabaza okwavela ...
    rsync -avzqlH -susa-ukubambezela-ukubuyekeza rsync:…. Noma kukhona okuhle kodwa akudingeki ngibeke lapho izokopishwa khona ngokuhamba kwesikhathi?
    Isibonelo: rsync -avzqlH –delete –delay-updates rsync:…. / run / media / miuser / Idatha / indawo yokugcina / centos7 / 7 /

  7.   UDaniel Morales kusho

    Sawubona ntambama

    Ngifuna imininingwane kuwebhu ngithole le manuwali oyithandayo oyibhalile, Siyakuhalalisela ngalokho. Umbuzo wami uvela ngoba ngifuna ukudala i-Mirror ngokusabalalisa okuningi kwe-Linux, i-Centos, i-OracleLinux, i-Debian, bonke abanezinhlobo zabo zakamuva engizifakile enkampanini. Kepha ngingenza kanjani ukuthi i-mirror server efanayo igcine ukusatshalaliswa nezinguqulo eziningana? Ngabe kufanele ngakhe enye ifolda enegama lokwabiwa nokunye? Lezi zinqolobane zibuyekezwa ngokuzenzakalela noma kufanele ngisebenzise umyalo njalo kaningi? Bheka imibono yakho. Usuku olujabulisayo