Server tare da CentOS da VirtualBox

Centos-Logo

Barka dai, wannan lokacin yana farantawa masu karatu rai kuma saboda duk maganganun ku A kan sabobin, wane rarraba Linux zan iya amfani dashi?: “Duba Brody da clearOS da Oracle da CentOS why (abubuwan da aka samo daga RedHat) me yasa baku magana game da wadancan? Ina kake tsaye? Da kyau ku saurare su kuma na kawo muku ne ga waɗanda basu taɓa yin amfani da RedHat ba ko kuma samo wani binciken bincike, na ainihi ... sabar tare da CentOS.

Wannan koyarwar ga waɗanda basu sani ba game da CentOS (RedHat) ko kuma aƙalla basu taɓa tunanin aiwatar da shi a kan sabar ba. Ina so in kira koyawa "Debian zuwa CentOS" o "Hanyar daga Debian zuwa CentOS" amma nayi tunanin cewa Debian fanboys za su yi ta ihu na a cikin maganganun hehehe

Saboda dalilan tsaro! xD ... Ba zan iya gaya muku a ina ba? kuma ba ainihin samfurin kayan aikin ba amma zan yi farin ciki dalla-dalla kan damar.

  • 4 Masu sarrafawa 16 tsakiya
  • 512 GB RAM
  • 6x600GB sata 3 disks, daidaiton diski shine: hari 0 2x600GB da raid 5 4x600GB
  • 1 Adaptec hari hari
  • 2 Qlogic HBA katunan
  • 4 katunan cibiyar sadarwa 1 gb

Bari mu ci gaba ... Cikakkun bayanai cikakkun bayanai ... To menene zazzage nan. CentOS 7 ko sama da haka ya auri gine-ginen i386 da x86_64 akan shafin yanar gizonta na hukuma, amma yin bincike da bincike kadan, ya nuna cewa basu watsar da sauran zaɓuɓɓukan ba gaba ɗaya, don haka idan ka je adireshin da ke gaba na wiki za su iya zaɓar wasu dandano.

Yana da nau'ikan 3 Komai, Dvd ISO da ƙarami, Na zaɓi na biyun don zuwa mafi ƙarancin buƙata kuma gwada abubuwa kamar saurin rumbunan ajiyar hukuma, saurin shigarwa, da kuma gujewa girka ayyukan da ba dole ba, da sauran abubuwa.

Abin mamaki na, mafi ƙarancin sigar tana da nauyin 630 mb kimanin., Wanda bana son yawa gaskiya. don haka sake kara dan kara kadan, sai ya zamana cewa kuna da tsarin da yakai kimanin 380mb kusan. (Ban san dalilin da yasa basa sanya rayuwar kowa sauki ba kuma sun sanya komai a shafin farko !!!) Abinda ya kamata kayi shine ka je x86_64, zabi madubi sannan ka zazzage sigar netinstall a nan.

To har yanzu asirin. Muna farawa da ƙaddamar da tsarin, tare da shigar da zaɓi CentOS.

Mun zabi yare.

20160215_100821

Wannan menu na "Takaitawar Shigarwa" yanada wadannan zabuka masu kyau kuma galibi yana gano su kai tsaye.

20160215_100942

A cikin "Manufofin Tsaro", kawo wasu bayanan martaba na muhallin da yanayin da aka riga aka ƙaddara, zaɓinku ne wanda yafi dacewa da bukatunku.

20160215_101132

Ba abin mamaki bane, na zaɓi wanda ya faɗi takamaiman azaman bayanin "shigarwar sabar".

20160215_101138

Yayi, ɓangaren mai ban sha'awa shine kowa ya rikice ko ya sa tsarin ya fashe (masu farawa ina nufin, kar waɗanda ke cikin masaniya su bata min rai. Zan ga maganganun ra'ayoyi suna zuwa akan wannan batun). Manajan a ganina ba kai tsaye ba wancan wayayyen ba ne, na gwada shi, ya nace kan saita sdb a matsayin gida. Yanzu tare da zaɓi "Ina so in ƙirƙiri ƙarin sarari da za a samu", dole ne ku zaɓi waɗanne bangare ne ko diski mai sakawa zai iya ko ba zai iya taɓawa ba don ƙirƙirar duka tsarin fayil ɗin.

20160215_101400

A ƙarshe, ban zaɓi ɗayan waɗannan zaɓuɓɓuka ba kuma na tafi don al'ada. Rarraba hannu, a wannan lokacin yana ba ku damar ƙirƙirar lvm, daidaitacce ko ƙarin ɓangarori tsakanin wasu nau'ikan, musamman ƙirƙirar waɗannan ba tare da matsala mai yawa ba tunda don wannan binciken ne.

20160215_102943

Zabi + ya tambaye ku don dutsen ma'ana da tsari. Girma da girma suna da ɗan wahalar nunawa tare da wannan manajan, ban ga wani zaɓi ba, don amfani da sauran sararin, saboda haka dole ne ku zaɓi da ido sannan ku bincika idan har yanzu kuna da sarari.

20160215_102956

Da mahimmanci, a cikin zaɓin gyare-gyare a ƙarƙashin mai sarrafa ku, zaku iya zaɓar kundin mai yiwuwa inda manajan zai kimanta idan ɓangaren da kuka ƙirƙira yayi daidai.

20160215_103013

Misali, idan na kirkira / gida tare da 500 GiB kuma babu wadataccen sarari a cikin sda amma idan a cikin sdb to zai sanya shi ta atomatik a wannan faifan, don kaucewa wannan zaɓi faifan da kake son wannnan bangare ya wanzu.

20160215_103005

A ƙarshe, dole ne ku ƙirƙiri tushen mai amfani da mai amfani na yau da kullun

20160215_103242

A ƙarshen aikin, dole ne ku sake farawa kuma wannan ke nan. Lokacin da tsarin ya fara, allon allon baki da hanzari suna jiran shiga da kalmar wucewa, kamar yadda aka saba.

Anan htop (Dole ne in sanya htop baya zuwa ta asali, wanda yake gama gari ne).

htop

Anan df -h, ta hanyar farkon shigarwa yakai 1.2GB bayan haɓakawa, ƙasa da yadda yakamata ya kasance tare da 1.4 GB. Dalilin da yasa yayi nauyi 4.4 shine na girka Virtualbox da Kde (idan na riga na sani, ba shine mafi sauki ba, zasu ce min girka xfce ko shigar xen, amma wannan koyarwar ta kasance ta yau ce kuma ta masu farawa), da ƙari da yawa dakunan karatu.

df

Daga nan, wani biredin.

Hanyar sadarwa / Hanyar sadarwa

Kamar yadda aka saba akwai kamar hanyoyi 10 don saita hanyar sadarwa, Zan bayyana ɗayan da yawa, amma mai sauƙi, kuma yana tare da nmtui, Don saita hanyar sadarwar, zamu fara da gyaggyara haɗin haɗi:


Screenshot a 2016-03-01 08:20:36

Don haka dole ne ka zaɓi wane hanyar sadarwar da kake son gyara.

Screenshot a 2016-03-01 08:20:56

Kuma a ƙarshe, sanya dukkan daidaito, Manual ko DHCP, bana ba da shawarar dhcp akan sabar ba, amma shawarar kowa ce. Ban hukunta ku ba hahaha

Screenshot a 2016-03-01 08:21:40

Yanzu zamu ci gaba don sabunta tsarinmu:

yum update
yum upgrade

Ina ba da shawarar shigar da wannan kunshin, saboda (a taƙaice) yana ba ku damar adana 'yan megabytes ta hanyar sauke sauye-sauye kawai ba cikakken fakitin ba.

yum install deltarpm

Sanya hoto mai zane don akwatin kwalliya, Ina amfani da kde, amma kuna da gnome, kfce, aboki, da sauransu.

 yum -y groups install "KDE Plasma Workspaces" 

Bayan haka kawai saita shi don farawa ta tsohuwa lokacin da ta fara takalmin sannan kuma fara yanayin sau ɗaya.

# echo "exec startkde" >> ~/.xinitrc
# startx

Tare da akwatin kwalliya, Ina ba da shawarar ba kawai kara wuraren adana kayan kwalliyar kwalliya ba amma na rpmforge don gamsar da duk masu dogaro, ba tare da wata matsala ba.

Anan shigar da babban fayil ɗin ajiyar kuɗi kuma zazzage sabon repo

cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

Enable rpmforge kuma shigar dkms

yum --enablerepo rpmforge shigar dkms

Muna girka duk wani abu da ya zama dole, dakunan karatu da aikace-aikace na ci gaba gami da kernel devel don kanun kernel da sauran abubuwa

yum groupinstall "Kayan aikin bunƙasa"
yum shigar kernel-devel

Muna ƙara mai amfani da mu a rukunin vboxusers

usermod -a -G vboxusers sunan mai amfani

Kuma a ƙarshe idan kana son amfani ko raba na'urorin USB ɗinka tare da injunan kama-da-wane, kawai waɗannan layin suna gudana

mkdir / vbusbfs
amsa kuwwa "babu / vbusbfs usbfs rw, devgid = $ (awk -F: '/ vboxusers / {buga $ 3}' / sauransu / rukuni), devmode = 664 0 0" >> / etc / fstab
hau -a

 

Screenshot a 2016-03-01 08:19:55

Da sauki?

Aiki? amfanin? Fa'idodi? Da kyau a halin yanzu yana aiki da kyau, bani da korafi, daidai yake da Debian, Ina girka sabbin injina na zamani, don abubuwan da zasu zo nan gaba


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

22 comments, bar naka

Bar tsokaci

Your email address ba za a buga.

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Ƙungiya m

    A wani lokaci nayi kokarin girka Centoos 7 (Ina jin DVD din yana nan) kuma a gaskiya na samu damar samu amma da zarar an girka, ba a gano tsarin zane ba tare da tsabtace yanayin da ya kamata kuma bayan fada da shi da yawa awowi na bar shan kashi.

    1.    Rariya m

      Ta hanyar tsoho yana kawo jigilar direbobi da daidaitawa, dole ne kuyi aiki da hannu shigar da duk ƙarin ko direbobin mallakar da kuke buƙata. komai, idan kun sake gwadawa kuma kun kasa tuntube ni don ganin idan zan iya taimaka muku. Godiya ga bayaninka

  2.   Jaruntaka 2.0 m

    sau da yawa kokwamba na uwar garke daidai?

    1.    Rariya m

      bambance-bambancen al'adu da aka gano ... hahaha Ban sani ba ko kuna nufin wani abu mai kyau ko mara kyau, mun fito daga ƙasashe daban-daban, yana da kyau ko mara kyau? Godiya ga bayaninka

      1.    sarfaraz m

        Abin da kokwamba yake nufi shine inji yana da kyau :).

  3.   Gajere m

    Lafiya; A cikin bayanin da na gabata ban yi magana game da Centoos a matsayin rauni ga rarraba ba amma, a nawa bangare, tunda ban sami damar girka shi da gamsarwa ba.

  4.   Alejandro m

    Yaya RAID 0, inda nake aiki muke amfani da RAID 5 da yawa, gaskiya har yanzu na koya daga hakan kuma menene tsarin kamar in kara kare kaina.

    1.    Rariya m

      Duba, ya fi sauri saboda bayanin ya bazu a kan faya-fayai da yawa, saboda haka saurin karantawa ya fi sauri, amma yana bayar da sau 0, ba za ku iya yin komai don dawo da bayanan ba idan diski ya lalace. Amma a cikin wannan sakon kuskure ne, saboda na yiwa hari 1 (mirroring) da gaske kuna iya ganin sa a df -h da na nuna

  5.   sarfaraz m

    Shin ba zai fi kyau a yi amfani da KVM tare da Virt-Manager ba? Ina tsammanin shine mafi kyawun zaɓi fiye da VirtualBox :). Yayi kyau ga Raid 1 don tsarin.

    1.    Jaruntaka 2.0 m

      Tabbas kvm yafi kwanciyar hankali fiye da VirtualBox, don yanayin samar da kvm na ga hakan yafi tsanani da ƙarfi.Bugu da ƙari, magana tana ba ni damuwa.

    2.    Rariya m

      ba shakka, akwai wasu tabbatattun hanyoyin da suka fi na akwatin kirki, amma don nunawa da kuma dalilai masu ma'ana, rumfa ta kama aiki. Godiya ga bayaninka

    3.    Gonzalo Martinez m

      Fa, na gode da kyau kun bayyana cewa don dalilai ne na nunawa.

      Zan ce cewa ya zama kamar rikici da ɓarnata don amfani da babban uwar garken tare da akwatin kama-da-wane

  6.   mara suna m

    Vbox don kunnawa / Ayyuka da KVM / LVM / VNC / CentOS-imalananan (abin farin ciki) zuwa Laburar…
    Ka tuna cewa KVM yana ba da PCI-Passtrough, wanda da shi zaka manta da-boot-boot har abada

    1.    Rariya m

      Na yarda, wannan shine dalilin da ya sa amsata ta baya… duk da cewa na fi iya aiki da xen (kuma yana goyan bayan PCI-Passtrough)… fiye da CentOS kaɗan, gwada net-install

  7.   Moises serrano m

    Gaisuwa daga Venezuela, darasin yana da ban sha'awa sosai, Ina fata da sannu zaku buga yadda zaku tsara injunan kama-da-wane tare da ayyuka daban-daban.

    1.    Rariya m

      wani takamaiman aiki?

      1.    Moise yananan m

        Wakili 😀 da kuma uwar garken bugawa

    2.    Rariya m

      Wakilin da na riga nayi, shine za'a buga tsakanin yau zuwa gobe ... don masu bugawa zan yi jerin gwano don rubutu na gaba. Godiya ga bayaninka

  8.   Alfredito m

    Wani irin inji !!!
    Ina yin hayar vps na 1gb na rago kuma da maƙirarin 2 kuma yana aiki sosai.

  9.   Gonzalo Martinez m

    Centos 7 yana aiki sosai.

    Ina da sabobin da yawa a cikin samarwa tare da kararraki 7 da 0 a kan ɗayansu.

    Ofayansu yana da 32GB na rago, da 8 da kuma hari na 1 na 512 SSD kuma kawai MySQL, wanda ke karɓar ma'amaloli da yawa a cikin dakika ɗaya (don ba ku shawara, Ina neman loda shirin bayanan zuwa ga masu karɓar, saboda yana ci duk 10 Symmetric Mbps na zirga-zirga), tunda ginshiƙan an cinye su ta hanyar sabobin yanar gizo guda 8 waɗanda suma suna da zirga-zirgar su, kuma ina da wasu bayanai dalla-dalla tare da mysql, amma a matakin OS, dutse.

    1.    Rariya m

      Wannan haka ne, yana da karko sosai. Wataƙila kawai zargi na shine nau'ikan fakitin sun ɗan tsufa idan aka kwatanta da na yanzu, misali postgres 9.2, squid 3.3, da dai sauransu ... amma wannan yana ɗaya daga cikin halayen da ya sa ya zama mai karko. Godiya ga bayaninka

  10.   Pepe Pepe m

    Da gaske ban fahimci dalilin da yasa a cikin masu adaftar hanyar sadarwa kuke ɓata ip ɗinku na gida ba, shin za mu kwace katin sadarwar ku?