Kukhazikitsa Amazon S3 ya WordPress Blogs

mawu a amazon s3

Zindikirani: Kuyambira pomwe tidalemba izi, tasamukira ku Flywheel ndi Chiyanjano Chothandizira zoyendetsedwa ndi StackPath CDN, CDN yothamanga kwambiri kuposa Amazon.378

Pokhapokha mutakhala pamalipiro oyenera, kuchititsa bizinesi, ndizovuta kuti magwiridwe antchito ndi CMS ngati WordPress. Kugawana katundu, zosunga zobwezeretsera, kuchotsanso ntchito, kubwereza, komanso kutumizira zinthu sizitsika mtengo.

Oimira ambiri a IT amawona nsanja ngati WordPress ndikuzigwiritsa ntchito chifukwa ali kwaulere. Zaulere ndizochepa, komabe. Ikani WordPress pazomwe mungapangire zomangamanga ndipo ogwiritsa ntchito nthawi imodzi atha kubweretsa tsamba lanu. Kuti muthandizire magwiridwe antchito a blog yanga, sabata ino ndasintha kukhazikitsa kwanga kwa WordPress kukankha zojambula zonse kuchokera ku Amazon S3 (Amazon Simple Storage Service). Izi zimapangitsa seva yanga kuti ingokankha HTML kudzera pa PHP / MySQL.

Amazon S3 imapereka mawonekedwe osavuta ogwiritsa ntchito intaneti omwe angagwiritsidwe ntchito kusunga ndikusunga kuchuluka kulikonse kwa deta, nthawi iliyonse, kulikonse pa intaneti. Imapatsa wogwiritsa ntchito aliyense mwayi wofanana ndi wowopsa kwambiri, wodalirika, wofulumira, wotsika mtengo wosungira zida zomwe Amazon imagwiritsa ntchito kuyendetsa masamba ake. Ntchitoyi ikufuna kukulitsa maubwino owonjezera ndikudutsa maubwinowo kwa omwe akutukula.

Kutembenuza tsamba la Amazon S3 kudatenga pang'ono, koma nazi zofunikira:

  1. Lowani Mapulogalamu a Webusaiti a Amazon.
  2. Tengani zowonjezera pa Firefox pa S3. Izi zimakupatsani mawonekedwe abwino owongolera zomwe zili mu S3.
  3. kuwonjezera chidebe, pamenepa ndinawonjezera www.martech.zone.
  4. Onjezani CNAME kwa Domain Registrar yanu kuti mulembetse subdomain kuchokera patsamba lanu kupita ku Amazon S3 kuti ikuthandizireni.
  5. Tsitsani ndikuyika pulogalamu yowonjezera ya WordPress ya Amazon S3.
  6. Ikani ID yanu ya Key AWS Access ndi Key Key ndikudina pomwe.
  7. Sankhani subdomain / chidebe chomwe mudapanga pamwambapa cha Gwiritsani ntchito chidebe ichi kukhazikitsidwa.

wp-amazon-s3-zosintha.png

Masitepe otsatira anali gawo losangalatsa! Sindinkafuna kungotulutsa zakutsogolo kuchokera ku S3, ndimafuna kutumizira zonse, kuphatikizapo zotsatsa, mitu, ndi mafayilo am'mbuyomu.

  1. Ndapanga mafoda a Malonda, Tiwonandipo uploads mu chidebe changa pa S3.
  2. Ndinaikira kumbuyo zonse zanga (mafano azithunzi ndi media) m'mafoda omwe agwiritsidwa ntchito.
  3. Ndasintha fayilo yanga ya CSS pamutu wanga kuti nditenge zithunzi zonse kuchokera www.martech.zone/themes.
  4. Ndidachita Kufufuza kwa MySQL ndikusintha ndikusintha chilichonse chomwe chikufotokozedwera kuchokera kuma S3 subdomain.
  5. Ndasintha mafotokozedwe onse azithunzi azotsatsa zomwe ziyenera kuwonetsedwa kuchokera mufoda yotsatsa pa S3 subdomain.

Kuchokera pano kupita kunja, ndikungoyenera kuyika media ku S3 m'malo mogwiritsa ntchito zokambirana zosasintha za WordPress. Pulagi iyi imagwira ntchito yosangalatsa poika chithunzi cha S3 pamalo omwewo Pakani / Ikani zithunzi mu admin ya WordPress.

Kusuntha deta yonse ndikuyendetsa S3 kwa masiku angapo tsopano kwabweretsa $ 0.12 pamilandu ya S3, chifukwa chake sindidandaula za zolipira zomwe zikukhudzidwa - mwina madola ochepa pamwezi ndizomwe zidzawonongeke. Kumbali yabwino, ndikapeza alendo ochuluka, ndiyenera kuthana ndi zochulukirapo kuposa nsanja zomwe zilipo pano. Tsamba langa likutsitsa tsamba lofikira pafupifupi 40% ya nthawi yomwe inali, kotero ndine wokondwa kwambiri ndikusunthaku!

Chosangalatsa kwambiri pakusunthaku ndikuti sichidafune chitukuko chilichonse!

28 Comments

  1. 1

    Hi,

    Ndili ndi akaunti ya Amazon S3, koma nditayesa kudziwa izi, ndinangoisiya chifukwa ndizovuta kwambiri. Kodi firefox addin ya S3 imapangitsa kukhala kosavuta kwambiri?

    • 2

      Wawa Ramin,

      Zowonjezera pa Firefox zidalidi chidutswa chofunikira kwambiri. Muyenera kukhala ndi ndowa m'malo mwake pulojekitiyo isanagwire ntchito - motero zimapangitsa kuti zikhale zosavuta.

      Doug

  2. 3

    Ndiyenera kuwonjezera, muyenera kuloza CNAME yanu yatsopano your_unique_cloudfront_distribution_name.cloudfront.net m'malo mochita anu_unique_subdomain.s3.amazonaws.com. Koma zitatha izi, mumazitenga ngati chidebe chabwinobwino cha S3.

    Zimagula zambiri mukamagwiritsa ntchito liwiro lapamwamba / kutsika kotsika kwa CloudFront. Ngati mungaganize zokonda kubwerera ku mtundu wa S3, ingosinthani CNAME yanu kuti mubwererenso ku s3.amazonaws.com m'malo mwake.

    Pafupifupi chaka chapitacho, ndidalembahttp://www.carltonbale.com/tag/amazon-s3/"a zolemba zochepa pa blog ya Amaon S3 kwa aliyense amene akufuna.

  3. 4

    Ngati mukufuna chiwonjezeko chowonjezeka, sinthani chidebe chanu cha Amazon S3 kukhala chidebe cha Amazon CloudFront, chomwe chimapanga seva yapadziko lonse lapansi, otsika kwambiri a Distribution Network. Apa pali ulalo ndi tsatanetsatane wonse: http://aws.amazon.com/cloudfront/faqs/

    Komanso, wp-supercache plugin imatha kupangitsa kuwonjezeka kwachangu pamasamba othamangitsa anthu chifukwa zimachepetsa kwambiri ma CPU ndi ma database.

    • 5

      Wabwino kwambiri, Carlton! Chifukwa chake ndi netiweki yogawidwa kwambiri monga Akamai. Sindinazindikire kuti anali nazo! Nditha kutenga mwayi nditawona zina mwazovuta.

      Ndakhala ndikulemba ndi wp kale, koma ndili ndimphamvu zina kotero ndimavutika nazo chifukwa nthawi zina zimasungira zomwe ndimafuna kutulutsa nthawi yeniyeni.

      • 6

        Douglas,

        Kuchokera pamafotokozedwe awo zikumveka ngati Amazon ikuchita china chosiyana kwambiri, akuti:

        "Amazon CloudFront imagwiritsa ntchito malo okwana 14 m'misika yayikulu padziko lonse lapansi. Eight ali ku United States (Ashburn, VA; Dallas / Fort Worth, TX; Los Angeles, CA; Miami, FL; Newark, NJ; Palo Alto, CA; Seattle, WA; St. Louis, MO). Anayi ali ku Europe (Amsterdam; Dublin; Frankfurt; London). Awiri ali ku Asia (Hong Kong, Tokyo). ”

        Amagwiritsa ntchito kusinthana kwa intaneti kuti athandizire kuyandikira kwa wogwiritsa ntchito pomwe ma CDN ngati Akamai ali ndi ma seva pafupi kwambiri ndi wogwiritsa ntchito kumapeto kwa netiweki ya ISP.

        Njira ya Amazons yochitira ndi yotsika mtengo kwambiri komanso yothandiza kwambiri Akamai.

        Rogerio - Wachinyamata http://www.itjuju.com/

  4. 7

    Sindinganene kuti ndizovuta "kupeza magwiridwe antchito ndi CMS ngati WordPress."

    Zonse ndi momwe mumakhazikitsira zomangamanga kapena momwe mumasungira CMS yanu.
    Momwe ma CMS omwe adalembedwera amathanso kutengapo gawo lalikulu pantchito yake monga Carlton adanenera pogwiritsa ntchito pulogalamu ya wp-supercache.

    Zikanakhala bwino ngati magwiridwe antchito a wp-supercache plugin atapangidwira mu mawu kuchokera pachiyambi - koma izi zingafune kuti tilembenso kumapeto. Chomwe chiri zambita.org anachita.

    Kutulutsa kutsitsa zinthu zina monga S3 ndi njira yabwino yotulutsira kukonza ndi kutumiza kuchokera ku seva yayikulu. Ndi njira yosavuta yosavuta yogwiritsira ntchito zida za Amazons kuti mukweze katundu koma mukangofika kumene, Amazon iyamba kukhala yotsika mtengo ndipo kungakhale yotsika mtengo kutero m'nyumba ndikupita ndi CDN.

    Rogerio - Wachinyamata http://www.itjuju.com/

    Ps
    Ndakhala ndikuganiza za izi kwakanthawi, ngati anthu 100 okha atakumana ndikuthandizira mwezi uliwonse mtengo wa seva yabwino yomwe amakhala akulipira omwe amatha kupanga / kuphatikiza zida zomangamanga zomwe zitha kuthana ndi chilichonse.

  5. 8

    $ 0.12 kwa masiku angapo oyamba a ntchito za S3. Kodi mungayang'anenso mutuwo miyezi ingapo ndikuwonetsa ziwerengero zamayendedwe poyerekeza ndi mtengo? Zingakhale zosangalatsa kuwona momwe mtengo umatsikira kwa alendo apadera komanso motsutsana ndi mtengo wotsatsa kapena zolowetsa zina.

  6. 13
  7. 14

    Amazon S3 ndi ntchito yamtengo wapatali kwambiri. Ndikungoyiphatikiza kukhala CMS. Magazini yokhayo yomwe ndidakumana nayo potengera chitukuko, osati ntchito ya Amazon, ndikuti ngati mukufuna kuti wogwiritsa ntchito asungitse fayiloyo molunjika ku S3 kudzera pa POST ndipo muli ndi mawonekedwe angapo omwe amaphatikizira zolemba zakomweko Nawonso achichepere, inu munakhala. Muyenera kuti mulekanitse mitundu iwiri, kapena yesani kugwiritsa ntchito ajax kuti muyike fayiloyo kenako kuti mupambane perekani zidziwitso kwanuko.

    Ngati wina ali ndi yankho labwino, omasuka kundiuza: o)

    Ngakhale zili choncho, ndalama zomwe zimasungidwa posungira mafayilo amtundu waukulu zimatsimikizira kukhazikitsidwa kwa dongosololi.

    Grant

    Mndandanda Wotsutsa Mndandanda wa Machitidwe

  8. 15

    Hi,

    Zabwino kulemba. Ndadutsa momwe mumalongosolera, koma pagulu langa la admin pomwe ndimayika zithunzi, sindikuwona batani la S3. Ndazindikira kuti zithunzi zanga, zikakwezedwa nthawi zambiri zimathera ku Amazon, kodi izi zikutanthauza kuti nditha kutengera zithunzi zanga zonse ndikuzifufuta pa seva?

    Ndipo kodi ndiyenera kusintha komwe mafano anga amachokera kapena pulogalamu yowonjezera imachita izi?

  9. 16

    Wawa Scott,

    Muyenera kuwona chithunzi chazithunzi chakumanja kumanja kwa chithunzi chanu. Ndicho chithunzi chotsegula zenera la Amazon. Ndasunthira zonse za wp-okhutira / zomwe zidakwezedwa ku Amazon ndikuwonetsetsa kuti ndili ndi njira yofananira… kusiyana kokha kukhala subdomain. Iwo anali pa http://www... ndipo tsopano ali pa images.marketingtechblog.com. Nditatengera zithunzi zonse ku Amazon, ndidagwiritsa ntchito PHPMyAdmin ndikufufuza ndikusintha src = "http://martech.zone ndikuisintha ndi src =" images.marketingtechblog.com. (https://martech.zone/wordpress/mysql-search-replace/)

    Ndikuyembekeza zomwe zimathandiza! Siyo wopanda msoko, koma imagwira ntchito.

    Doug

  10. 17

    Hei Douglas, zikomo chifukwa, ndasintha DB kuti zithunzi zonse ziloze mafano., Koma ndimawona zala zazikulu za m'manja (zikayang'aniridwa kudzera patsamba la info) zikuwonetsa mawonekedwe omwe adakalipo pa www.

    Nayi tsamba (www.gamefreaks.co.nz) - a, omwe ali ndi vuto lalikulu lokumbukira tsamba loyamba, adangoyambira pomwe tidasunthira kuchititsa, chifukwa chake ine tsopano ndikuyang'ana pakutsitsa kukakamizidwa kwa S3. 😎

  11. 18
  12. 19
  13. 20
    • 21

      Ndizogwirizana ndi mtundu waposachedwa, koma moona mtima sindimakonda momwe zimagwirira ntchito - muyenera kusuntha ndikukhazikitsa zithunzi zonse ku S3 ndi njira ina. Titha kupanga kulumikizana kwamphamvu kwambiri kwa CDN (Content Delivery Network) ndi WP yomwe imagwirizana m'malo mongofuna njira ina.

  14. 22
  15. 23

    Kodi mukudziwa ngati izi zingagwire ntchito ndi "Zidebe Zakunja" nawonso? Ndikufuna kuyika blog yanga ya mnzanga ndikumulola kuti agwiritse ntchito ndowa muakaunti yanga ya AWS (ndidamupangira kale akaunti ndikumupatsa mwayi wopeza ndowa zanga zina pogwiritsa ntchito zida za Amazon IAM).

  16. 24
  17. 25
    • 26

      Celia, pitani kunyumba ya AWS http://aws.amazon.com/ ndipo pansi pa "Akaunti Yanga / Kutitonthoza" kwanga, sankhani "Zikalata Zachitetezo." Lowani ngati mukufuna kutero. Kuchokera pamenepo, pendani pansi kuti mupeze Zida Zofikira ndipo muwona ma ID anu a Key Access atchulidwa. Koperani chimodzi mwazomwe zili ndi ID ya pulogalamu iyi, kenako ndikudina ulalo wa "Show" kuti muwone Chinsinsi Chofikira Chachitali. Lembani izo ndikuziyika m'makonzedwe a plugins. Muyenera kukhazikitsidwa pambuyo pake!

  18. 27
  19. 28

Mukuganiza chiyani?

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.