Faka i-LEMP kwi-Ubuntu Trusty Tahr

Faka i-LEMP kwi-Ubuntu Trusty Tahr

Obunye bobuso obudumileyo boBuntu kukuphuhliswa kwayo kunye nokuzinikezela kwilizwe leeseva nakwilizwe leshishini. Ngaphakathi koku, ukongeza ekubeni nohlobo olunikezelwe kuphela kwihlabathi leeseva, Ubuntu buhlanganisa kwaye buhlaziye uninzi lwesoftware esetyenziselwa ilizwe leshishini kunye nenethiwekhi yobungcali kwaye oku kuneempembelelo ngandlela thile kubasebenzisi. abafuna ukwenza iwebhusayithi okanye ukwenza iserver yekhaya. Olona khetho lusetyenzisiweyo kwaba basebenzisi bokugqibela yile ukufakwa kweseva ye-LAMP ku-Ubuntu bethu. Ukufakwa kweseva ye-LAMP kuqheleke kakhulu kwiinguqulelo zamva nje ze-Ubuntu, mhlawumbi kuba ukuba kunzima ukuyifaka, ngekhe isetyenziswe kwiiseva zobungcali. Kodwa Uyifaka njani i-LEMP server? Yintoni iseva ye-LEMP? Ndingaba neLAMP kunye neseva ye-LEMP kumatshini omnye? Qhubeka ufunda kwaye uza kufumana iimpendulo zale mibuzo.

Yintoni iseva ye-LEMP?

Kwabo bazaziyo iiseva ze-LAMP, uyazi ukuba zizifinyezo zesoftware ephethwe ngumncedisi, kwimeko Lamp es I-Linux, i-Apache, iMysql kunye ne-Php okanye iPython. Oko kukuthi, inkqubo yokusebenza (iLinux), isoftware yolawulo lweserver (i-Apache), isiseko sedatha (iMysql) kunye nolwimi lweseva (i-Php okanye iPython). I-LEMP Iya kuba ngumahluko kwiphakheji yesoftware eziswa yi-LAMP, ngolu hlobo, i-LEMP iya kuba yiLinux, InjiniX (Nginx), iMaríadb okanye iMysql kunye nePhp okanye iPython. Umahluko kuphela ngokubhekisele kwi-LAMP kukuba i-LEMP isebenzisa i-Nginx hayi i-Apache njengesoftware ephetheyo yokulawula iserver, ethi yeyokutsha, ivakalise ukuba lutshintsho olukhulu olo. Okwangoku, ndingaba ne-LAMP kunye ne-LEMP kwiseva efanayo? Ngamandla unokuba nawo, nangona kunjalo kwiiseshoni ezimbalwa ukuba ingekho kweyokuqala, iserver ingadilika kuba kukho abaphathi babini beserver. Ke, kungcono ukhethe enye okanye enye.

Kwiinyanga ezimbalwa ezidlulileyo, I-Nginx ibonakala iyeyona inqwenelekayo kwezorhwebo, Ke isisombululo se-LEMP kujongeka ngathi iya kuba likamva, kodwa Ufaka njani?

Ukufaka iseva ye-LEMP

Eyona ndlela ikhululekileyo yokufaka iserver nokuba yi-LAMP okanye i-LEMP ikhibhodi kunye nesiphelo sendlela, ke sivula i-terminal kwaye sibhale:

sudo apt-get install inginx

I-Nginx sele ikho kwindawo yokugcina esemthethweni, ke akukho ngxaki. Ngoku siyeke, vula kwaye uqalise kabusha iseva ye-Nginx ukuze Ubuntu iqale ukuyamkela kwaye iyazise ekuqaleni kwayo, ke sibhala:

Inkonzo ye-sudo nginx yeka

Inkonzo ye-sudo nginx qala

sudo service nginx ukuqala kabusha

uhlaziyo lwe-sudo-rc.d nginx

Kwaye ukuba kuyasebenza, kuya kufuneka ubone umyalezo ofana nale:

Inkqubo yokuqalisa / yokumisa amakhonkco e /etc/init.d/nginx sele ikho.

Ngoku kufuneka sifake zonke izixhobo zeseva ye-LEMP. Siza kuqhubeka ne-Php, nangona kukho inketho yokufaka iPython, kuphuhliso lwewebhu bathambekele ekukhetheni i-php nangona zombini zilungile.

Sudo apt-fumana ukufaka php5 php5-cgi spawn-fcgi

sudo service nginx ukuqala kabusha

Kwaye ekugqibeleni sifaka isiseko sedatha, sinokukhetha phakathi kukaMariaDB kunye neMysql, ziyafana ngokufanayo, umahluko osetyenziswa luluntu ngelixa iMysql ivela kwinkampani. Kule meko sifaka iMysql ngokungabinangxaki kamva, kodwa kwezi ndlela zimbini zinokusebenza

Sudo apt-fumana ukufaka i-mysql-server mysql-client php5-mysql phpmyadmin

sudo service nginx ukuqala kabusha

Le phakheji yokugqibela inoxanduva lokulawula isiseko sedatha kwisikhangeli. Ngoku ikhompyuter yethu kunye ne-Ubuntu 14.04 yethu ikulungele ukusebenza njengeseva. Khumbula ukuba ukujonga ukuba kuyasebenza na kufuneka sichwetheze kwi-browser yangaphakathi kwaye siza kubona isikrini apho iileta zisebenza khona! Ukongeza, ukubona iiwebhu esizenzayo, kufuneka sizigcine kwi / var / www ifolda yenkqubo yethu. Ngoku ukonwabela Ubuntu Trusty kunye ne-LEMP!


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

Izimvo, shiya eyakho

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.

  1.   Omar rojas sitsho

    Kulungile ukuvuyisana kokuqala ngegalelo, i-nginx ingenza ukubamba iindwendwe? , Le seva ye-LEMP iyacetyiswa kuphuhliso oluthatha ixesha elininzi ukuyenza? Ndiyaqonda ukuba kuyaxhomekeka kubuchwephesha obusebenzisayo nakwizibonelelo onazo, ndithetha ukuba kungacetyiswa ngakumbi ukusebenzisa i-NGINX endaweni ye-APACHE? okoko NGINX Ngaba ibonisa igalelo elingaphezulu kune-Apache okanye lukhetho olunye kuphela?
    Enkosi ngosinaka ixehsa lakho
    iposti
    Ndikubuza lo mbuzo kuba ndivile phaya phandle ukuba kwezinye iindawo khange babeke indawo yokuphuhlisa nge-xampp, i-mamp okanye i-lampp ukuba yenye indawo yobungcali ngokokutsho kwabo kwaye ibiphambili, ndisebenze konke Ubomi bam nge xampp kwaye khange ndifumane zininzi iziphene kodwa kwindawo enkudlwana yophuhliso andikhange ndivavanye ukuba i-xampp iziphatha njani, kodwa ndicinga ukuba i-nginx ndiyathetha ukuba i-LEMP igqwesile ngakumbi "ungatsho

    I gracias
    mbuliso
    Omar rojas
    (y)