CentOS 7 Kaitohutohu I - SMB Whatunga

Taupū whanui o te raupapa: Tuihono Rorohiko mo nga SME: Whakataki

E nga Kaipanui!

I etahi wa ka aro atu maatau ki nga Servers Professional e tautoko ana i etahi punaha Whakahaere i a raatau Whakarite - Te whakarato tuatahi I kitea e maatau ake nga kaiwhakarato, i tenei wa, ka tautoko noa i nga mea e whai ake nei:

  • Microsoft Windows Server Server 2003 me te Whanau
  • Microsoft Windows Server Server 2008 me te Whanau
  • Microsoft Windows Server Server 2012 me te Whanau
  • Red Hat Enterprise Linux RHEL 4, 6, me te 7
  • SUSE Te Kaituku Umanga Linux 12

Debian, Ubuntu, atu ...?. Kaore he mea. Ehara i te korero i runga ake nei kaore e taea e taatau te whakauru i tetahi punaha whakahaere rereke, engari me pehea te tiwhikete, nga taraiwa, nga taapiri, nga whakahou, me era atu? Tukuna ia kaipānui ki te whakatau i a raatau ake whakatau.

I tenei ra ka kitea e au ma taku korerorero whaiaro me taku hoa me taku hoamahi a Julio Cesar Carballo - kei te mahi ia i tetahi Pokapu Ripoata nui - i whakapau pea ia mo te 10 ra ki te whakauru 180 nga kaitoha ngaiomai i a raatau pouaka ki te riiki me te taapiringa o te kauti»Me te punaha whakahaere Ubuntu.

Ma te hangarau ka taea te whakamahi i te Debian, Ubuntu, CentOS - RHEL, SuSE, tetahi atu punaha whakahaere ranei UNIX Pai Tuhinga o mua pūnaha- e taunakihia ana mo taua mahi, hei tautoko virtualization i nga kaituku ngaio o nga waahanga katoa.

I tenei tuhinga kaore e tukuna e maatau he maha nga hononga i waenga i nga raina, na te mea ki ta maatau ko nga pou o mua i roto i te raupapa «Tuihono Rorohiko mo nga SME«, Ana kua mohio ki nga ingoa, nga ingoa haangai me nga whakamaaramatanga. He aha ena whaarangi?:

Ahakoa kaore i tika mai i te raarangi, ko te panui i te tuhinga e whai ake nei he tino whaihua, na te mea he tika ki te whiriwhiri i nga tohatoha Linux i mahia e maatau mo nga waahanga korero kua whakahuatia ake nei:

I tenei ra ka ngana ki te tuku a Aratohu ki te whakauru i tetahi Kaitohutohu me te CentOS - CentOS Hypervisor. Me urutau e ia kaipānui kia rite ki nga taputapu o to kaituku, me nga whakaritenga a te kaihanga. Kua waiho e matou te Taahiraa i te Taahiraa Whakauru ma nga Whakaahua, hei awhina i te panui o tenei tuhinga.

  • Kia mahara ko Red Hat, Inc. te kaitautoko matua o CentOS, a ko Red Hat, Inc te kaiwhakawhanake i te wahine rangatira, kaiwhakahaere-tino, oVirt, me te nuinga o nga mea katoa e pa ana ki te mariko ma te whakamahi i te Qemu -KVM me tana whakahaerenga.

Nga whakatikatika iti i muri i te taunga taahiraa-i te-taahiraa

Kia maama ai te ora, na te mea kaore o maatau DNS i roto i te LAN, ka whakarerekehia e maatau te konae / etc / manaaki:

[root @ centos7 ~] # nano / etc / manaaki
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.10.10.4 centos7.desdelinux.fan centos 10.10.10.1 sysadmin.desdelinux.fan sysadmin

Ka tino kii maatau i nga waahi ka whakamahia e maatau ka whakahou i te punaha:

[pakiaka @ centos7 ~] # cd /etc/yum.repos.d/
[root @ centos7 yum.repos.d] # ls -l
katoa 28 -waru-r - r--. 1 pakiaka pakiaka 1664 Dec 9 2015 CentOS-Base.repo -rw-r - r--. 1 pakiaka pakiaka 1309 Dec 9 2015 CentOS-CR.repo -rw-r - r--. 1 pakiaka pakiaka 649 Tihema 9 2015 CentOS-Debuginfo.repo -rw-r - r--. 1 pakiaka pakiaka 290 Dec 9 2015 CentOS-fasttrack.repo -rw-r - r--. 1 pakiaka pakiaka 630 Dec 9 2015 CentOS-Media.repo -rw-r - r--. 1 pakiaka pakiaka 1331 Hakihea 9 2015 CentOS-Pūtake.repo -rw-r - r--. 1 pakiaka pakiaka 1952 Hakihea 9 2015 CentOS-Vault.repo

Ae ra he pai ki te panui i nga korero o nga konae whakapuakii taketake mai i nga putunga korero kua whakaarohia e te CentOS. Ko nga whakarereketanga ka mahia e matou i konei na te kore o a maatau Ipurangi me te mahi tahi me nga putunga o te rohe i tangohia mai i te WWW.

[root @ centos7 yum.repos.d] # mkdir taketake
[root @ centos7 yum.repos.d] # mv CentOS- * taketake /

[root @ centos7 yum.repos.d] # nano centos-base.repo
[centos-base] ingoa = CentOS- $ releasever baseurl = http: //10.10.10.1/repos/centos/7/base/ gpgcheck = 0 whakahohea = 1

[root @ centos7 yum.repos.d] # nano centos-whakahou.repo
[centos-updates]
name=CentOS-$releasever
baseurl=http://10.10.10.1/repos/centos/7/updates/x86_64/
gpgcheck=0
enabled=1

[root @ centos7 yum.repos.d] # yum horoia katoa
Kua utaina nga monomai: tere, whakaeke, horoi i nga putunga: centos-base centos-whakahou Whakapai i nga mea katoa

[root @ centos7 yum.repos.d] # whakahoutanga yum
Mono kua utaina: whakaata whakaohooho, pokapu-pokapū pokapū | 3.4 kB 00:00 centos-whakahoutanga | 3.4 kB 00:00 (1/2): centos-base / primary_db | 5.3 MB 00:01 (2/2): centos-whakahoutanga / tuatahi_db | 9.1 MB 00:01 Te whakatau i nga whakaata tere rawa Kaore he putea i tohua hei whakahou

Ko te kupu «Kaore (kei) nga kohinga kua tohua hei whakahou» - «Kaore he putea i tohua mo te whakahou» e tohu ana, ma te whakaatu i nga waahi rongoa tino waatea e waatea ana ki a maatau i te wa e whakauru ana, ko nga putea i tino whakauruhia

He aha nga kohinga Hypervisor-e pa ana kua whakauruhia?

I roto i te kōpaki / pakiaka, Te kaiwhakauru Anaconda waiho tetahi konae me nga taapara nui whakaharahara i whakamahia i te wa o te tohatoha o te CentOS. Kei te hiahia matau ki nga kohinga i whakauruhia, mai i tenei wa kaore ano kia whakamahia totika te whakahau yum tāuta, ka whakamahi ana i tetahi kaiwhakairo whakairoiro.

[root @ centos7 ~] # ngeru anaconda-ks.cfg ....
% pōkai @ ^ mariko-taiao-manaaki
@ turanga
@ compat-wharepukapuka
@matua
@patuiro
@ mariko-hypervisor
@ mariko-kaupapa
@ mariko-taputapu
....

Nga kohinga - pōkai me te tohu @ i te tuatahi, e tohu ana ratou i nga Ropu Paetete. I a maatau, ki te tiki i te raarangi o nga Roopu - Ropu, me taapiri e matou te DVD whakauru ki te panui o nga whare pupuri.

[root @ centos7 ~] # eke / dev / sr0 / pāpāho /
Maunga: / dev / sr0 he tuhinga-tiakina, he paanui panui-anake

[root @ centos7 ~] # nano /etc/yum.repos.d/centos-media.repo
[centos-media] ingoa = CentOS- $ releasever baseurl = konae: /// media gpgcheck = 0 whakahohea = 1

[root @ centos7 ~] # yum horoia katoa
Mono utaina: whakaata whakaata, putunga Horoi horoi putunga: centos-turanga centos-media centos-whakahou Whakapai i nga mea katoa Te horoi i te raarangi whakaata tere ake

[root @ centos7 ~] # yum whakahou
Mono kua utaina: whakaata whakaohooho, pokapu-pokapū pokapū | 3.4 kB 00:00 centos-toharite | 3.6 kB 00:00 centos-whakahoutanga | 3.4 kB 00:00 (1/4): centos-pāpāho / roopu_gz | 155 kB 00:00 (2/4): centos-pāpāho / tuatahi_db | 5.3 MB 00:00 (3/4): centos-base / primary_db | 5.3 MB 00:00 (4/4): centos-whakahoutanga / tuatahi_db | 9.1 MB 00:01 Te whakatau i nga whakaata tere rawa Kaore he putea i tohua hei whakahou

[root @ centos7 ~] # yum repolist katoa
Mono kua utaina: whakaata tere, awhiawera Kei te uta i nga tere whakaata mai i te whareutuutu whakauru i te ingoa putunga id te ingoa centos-turanga mana CentOS-7 kua whakahohea: 9,007 centos-pāpāho CentOS-7 kua whakahohea: 9,007 centos-whakahoutanga kua whakahohea CentOS-7: 2,560 repolist: 20,574

[root @ centos7 ~] # raarangi roopu roopu
... Rōpū Taiao E Wātea ana: Kaiwhakarite Tūmau Whakahōu Iti Mahi Tūmau Tūmau Tūmau me te Upoko Tiwhikete Tūmau Tukutuku Paetukutuku Whakawhanaunga Kaihoko Kaihautū me te GUI Gnome Papamahi KDE Whanaketanga Plasma Mahi me te Waahanga Mahi Mahi Waatea Whaainga: Whakahaerehia a Te Puna Whakahaere Tautoko Legacy UNIX Whakahaerenga Whakapaa Utauta Utauta Haumaru Taputapu Haumaru Whakairoiro Utauta Utauta Whakamaa Ipurangi. Tautoko Pūtaiao Tautoko kaari atamai ...

ó

[root @ centos7 ~] # tau roopu roopu id
Mono kua utaina: whakaata tere, awhiawera Kei te uta i nga tere whakaata mai i te papaaherehere Kei te waatea nga Roopu Taiao: Te whakauru iti i te Node Compute (rorohiko-waahi-taiao) Kaihoko hanganga (hanganga-taiao-taiao) Kaihoko me te konae taarua (ko-taarua -whakarite-taiao) He kaiwhakarato paetukutuku taketake (paetukutuku-server-taiao) Kaihono whakaihuwaka (mariko-manaaki-taiao) Kaihoko me te GUI (taiao -whakarite-taiao-taiao) Papamahi Gnome (gnome-papamahi-taiao) Mahinga Mahi Plasma KDE ( kde-papamahi-taiao) Whakawhanake me te Mahinga Mahi Auaha (kaiwhakawhanake-mahi-taiao) Roopu Kua Whakaputahia: Whare Pukapuka Hototahi (wharepukapuka-a-whanui) Tautoko UNIX Taonga (legacy-unix) Utauta Whakahaerenga Whakahaerenga (punaha-whakahaere-taputapu ) Taputapu Haumaru (taputapu-ahuru) Rōpū e waatea ana: Whakahaeretanga punaha (whakahaere-punaha) Taputapu whanaketanga (whanaketanga) Uta whakaata Whakairoiro minita (whakairoiro-kaiwhakahaere-taputapu) Utauta mo te papatohu Ipurangi. (papatohu-ipurangi) Tautoko pūtaiao (pūtaiao) Tautoko mo te kaari atamai (kaari atamai)

I te wa o te whakauru ka tohua e maatau te waahanga matua Kaihautū Motuhake a roto ia i te Papa Tuuturu:

[root @ centos7 ~] # yum groupinfo virtualization-host-taiao
---- Roopu Taiao: Motuhake Tauira Taiao Id: mariko-manaaki-taiao Whakaahuatanga: Kaiwhakarite mariko iti. Rōpū whakahauanga: matua kaupapa
    mariko-hypervisor
    taputapu-mariko
Rōpū Kōwhiringa: patuiro + whatunga-kōnae-punaha-kaitono + whakahaere-punaha mamao
    turanga-mariko

[root @ centos7 ~] # yum groupinfo mariko-hypervisor
.... Rōpū: Virtualization Hypervisor Group-Id: virtualization-hypervisor Whakaahuatanga: Ko te iti rawa ka taea te whakauru kaihauturu. Pōkai whakahauanga:
   = maru
   = qemu-kvm
 Mōkī Kōwhiri: taputapu qemu-kvm

[pakiaka @ centos7 ~] # yum groupinfo mahi mariko-taputapu
.... Rōpū: Taputapu Motuhake Rōpū-Id: taputapu-mariko Whakaahuatanga: Utauta hei whakahaere i te ahua mariko kua momotu. Pōkai taunoa:
   = nga manene
 Mōkī Kōwhiri: libguestfs-java libguestfs-taputapu libguestfs-taputapu-c

[root @ centos7 ~] # yum groupinfo virtualization-platform
.... Rōpū: Papa Tuuturu Rōpū-Id: virtualization-platform Whakaahuatanga: Ka whakarato i tetahi atanga ki te urunga me te whakahaere i nga ipu mariko me nga manuhiri. Nga putea e hiahiatia ana: libvirt
   = libvirt-kaihoko
   = virt-who
 Mōkī Kōwhiri: taiapa-virtd-libvirt taiapa-wahine-multicast taiapa-virtd-rangatū libvirt-cim libvirt-java libvirt-snmp perl-Sys-Virt

Ko tetahi atu huarahi ki te tiki i te Rarangi Katoa o nga Mete Kua Whakanohia ko enei e whai ake nei:

[root @ centos7 ~] # raarangi kua whakauruhia
[root @ centos7 ~] # raarangi raarangi kua whakauruhia> kua whakauruhia.txt

He whanaunga ki te Tohungarau

[root @ centos7 ~] # egrep "(vir | kvm | qemu)" whakauru.txt
ipxe-roms-qemu.noarch 20130517-8.gitc4bce43.el7_2.1 @Updates libvirt.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-client.x86_64 1.2.17-13.el7_2.5 @Updates libvirt- daemon.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-daemon-config-network.x86_64 1.2.17-13.el7_2.5 @Updates libvirt-daemon-config-nwfilter.x86_64 1.2.17-13.el7_2.5 .86 @Updates libvirt-daemon-driver-interface.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-lxc.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver- network.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-nodedev.x64_1.2.17 13-7.el2.5_86 @Updates libvirt-daemon-driver-nwfilter.x64_1.2.17 13-7.el2.5_86 .64 @Updates libvirt-daemon-driver-qemu.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-daemon-driver-secret.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-daemon-driver- storage.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-daemon-kvm.x1.2.17_13 7-2.5.el86_64 @Updates libvirt-python.x1.2.17_2 7-86.el64 @Base qemu-img. x10_1.5.3 105: 7-2.7.el86_64 @Whakahōu qemu-kvm.x10_1.5.3 105: 7. 2.7-86.el64_10 @Whakahōu qemu-kvm-noa.x1.5.3_105 7: 2.7-86.el64_1.13 @ Whakahoutia virt-what.x6_7 0.14-9.el7 @Base virt-who.noarch 2.1-XNUMX. elXNUMX_XNUMX @Whakahōu

Kia mahara ko te putanga o runga ake nei e whakaatu ana ko tehea te putunga i whakauruhia ai ia kohinga takitahi. Ma te aha, ka tirotirohia e maatau kei te mahi tahi tatou me te putanga CentOS 7.2. Ka kitea hoki e taatau, me te taatari e whakamahia ana i te raarangi o nga kohinga, hei tauira, te kohinga Tuhinga o mua he waahanga ano hoki o te Raupaparorohiko Mariko.

Ka whakaarohia e maatau tirotiro i te Rarangi o nga Paki Kua Whakanohoia.

Nga mahi whakamutunga ... tata ranei

Whakaotia te whirihoranga hypervisor centos7.fromlinux.fan me te hanga i to miihini mariko tuatahi, mamao, penei i ta maatau i tuhi ai i te tuhinga Kaitohu-Kaiwhakahaere me te wahine: Whakahaere Mamao ma te SSH.

Mo nga kaipānui e hiahia ana ki te Papatohu i tukinohia i nga wa katoa, ka whakatapua e matou nga Tuhinga ka whai mai «CentOS 7 Kaitohutohu: Whakahaere Mamao» i roto i nei ka whakamahia e matou te nuinga o nga whakahau wahine y whakauruhia rere mamao mai i ta maatau mahi sysadmin.fromlinu.fan.

Taahiraa-i te-taahiraa whakauru ma nga whakaahua

Tirohanga:

  • Ko nga whakaahua he whakamarama ake. Ko te kaiwhakauru Anaconda na CentOS he taputapu tino kaha i roto i tana akomanga
  • Ko nga uara e whakaatuhia ana hei whakamatautau anake, me tango i nga wa katoa kia rite ki nga korero mo te mana ranei.
  • Ko te ota i whai ake nei kia ea ai nga tono a te kaiwhakaputa, hei tauira noa iho
  • Ko tenei kaore i tohua e maatau Kaupapahere Haumaru - HEI WHAKAPONO TUPUNA tetahi e kore te auraa e kia koe. Ano hoki, ka tono atu matou ki a koe kia whakamahi
  • Ki te whiringa KDUMP he rite tonu te ahua ki nga waahanga o mua
  • I roto i te whirihoranga o te Whatunga, kaore e pa ki a maatau nga waahanga maha na te mea kaore e hiahiatia ana e maatau ki te hanga i ta maatau kaitohu whakamatautau mariko. Me kii atu, ahakoa he whakamatautau, he tino tika te mahi
  • Ko te momo whakawehe me te rahi o ona waahanga wahanga he tauira kaore kau atu
  • SELECTION SOFTWARE ko te tiki Hypervisor me te rahinga o nga kohinga kua whakauruhia. Ka tono matou ki a koe kia whakarangatira i to kaituku mahi
  • Mo te WHAKAMUTUNGA, ka whakamahia ano e taatau nga putunga o te rohe na te korekau o te hononga kaainga ki te Ipurangi. Ka mahi tahi matou me nga whare pupuru o te rohe i tangohia-e nga hoa me nga hoa mahi- mai i te WWW
  • Mena i muri i te tiimata o te punaha whakahaere i te mutunga o te whakauru ka tonoa koe ki te panui me te whakaae i te Whakaaetanga Raihana Whakamutunga, ko te ota o nga ki "1", "2" me te "c", me te kore o nga tohu whakahua. Nau mai haere !. 😉

Taiwhanga Whakaahua


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

6 korero, waiho maau

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra. Kua tohua ngā āpure e hiahiatia ana ki *

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   Kaihauturu Zodiac ka mea

    Tino Pai Pouaka, Fico. Kei te tatari ano ahau ki muri mo te whakahaere mamao mai i te virsh me te whakauru-katoa. Kei te tono ahau i roto i nga mahi whakaputa i nga tuhinga katoa o te raupapa PYMES a tae noa ki tenei wa kei te pai taku mahi. Mauruuru Fico

  2.   kaikaiwhenua ka mea

    Nga mihi nui ki a koe hoa Zodiac. Ko enei kaupapa e tino ngakaunuitia ana e te hunga panui, te ahua.

  3.   juanjo ka mea

    He pai nga tuhinga, hei taonga whakamahara mo nga mea e wareware ana koe ki te waahi kaore e aro nui ki a koe

    1.    kaikaiwhenua ka mea

      Mauruuru mo te korero, Juanjo. Ka whakamahia e au enei tuhinga hei kaiarahi mo te whakamahi.

  4.   Ismael Alvarez Wong ka mea

    Fico, mai i nga wa katoa puta noa i te raarangi katoa tae noa ki tenei wa, he tino pai te tuhinga e pa ana.
    He mea hou tonu: anei ko tena, kaua ki te whakauru i te CentOS «iti» (ko te mea noa tenei); Mai i te mahinga whakauru ano, ko te taiao «Virt Host» kua tohua me tana Virt Platform me nga wharepukapuka hototahi.
    Ko te tikanga whakarereke i te putake whakauru whakauru ka whakamahia e te katoa (ko te putunga kei roto i te kaiwhakawhanake CentOS ISO DVD) mo te putunga o te rohe kei runga i te whatunga kua whakahoangahia e http he tino pai (anei he whakahauanga, whirihorahia te kaari tuatahi whatunga, tino pai ano tenei). Ko te mea noa ko te whakauru i te kaituku mo te wa tuatahi me te whirihora i to maatau hononga whatunga, ka taea e taatau te taaputu rohe.
    He tino whaihua nga kaupae katoa i roto i nga korero taapiri mo te tirotiro i nga kohinga whakauru katoa e pa ana ki te Virtu kemu (mai i anaconda.cfg, ki te whakaara i te whare pupuri DVD DVD ki te mahi ka whakamahi i nga Roopu).
    Kaore he hoa, ko te rahinga o nga korero, a, e ai ki te paratarafa whakamutunga, ko te tuhinga e whai ake nei he nui atu nga mea i whakaaria mai.

  5.   kaikaiwhenua ka mea

    Kia ora e hoa e Wong mo o korero. I tarai ahau ki te whai i tetahi huarahi ke ki te mohio ki nga kohinga kua whakauruhia. I whakaaro ahau he kaupapa tino pai tenei, na reira au i whakaputaina ai. Kei te tatari ahau ki a koe i roto i aku tuhinga ka whai ake