Kev siv Amazon S3 rau WordPress Blogs

amazon s3 lus meej

Nco ntsoov: Txij li thaum sau qhov no, Peb tau txij li tsiv rau flywheel nrog ib tug Cov ntsiab lus me nyuam Network Tsav Los Ntawm StackPath CDN, ntau ntau sai dua CDN dua li Amazon.378

Tshwj tsis yog koj nyob ntawm tus hwm, kev koom ua lag luam hosting platform, nws nyuaj kom tau txais kev ua lag luam kev ua tau zoo nrog CMS nyiam WordPressCov. Thauj khoom sib koom, thaub qab, rov ua dua, rov ua dua, thiab cov ntsiab lus xa tawm tsis yog pheej yig.

Coob tus neeg sawv cev IT saib cov platform zoo li WordPress thiab siv lawv vim tias lawv nyob freeCov. Pub dawb yog kwv tij, txawm hais tias. Tso WordPress rau ntawm lub vev xaib raug tsim thiab ob peb puas tib lub sij hawm cov neeg siv khoom tuaj yeem coj koj lub xaib mus rau kev sib tsoo Txhawm rau pab hauv kuv qhov blog ua tiav, lub lim tiam no kuv tau hloov kho kuv cov WordPress thawb tag nrho cov duab los ntawm Amazon S3 (Amazon Yooj Yim Cia Kev Pabcuam). Qhov no tawm kuv cov neeg rau zaub mov kom yooj yim thawb HTML ntawm PHP / MySQL.

Amazon S3 muab qhov yooj yim web service interface uas tuaj yeem siv los khaws thiab khaws cov ntaub ntawv txhua lub sijhawm, txhua lub sijhawm ntawm txhua lub vev xaib. Nws muab txhua tus tsim tawm nkag mus rau tib cov peev xwm tshaj lij, txhim khu kev qha, ceev, pheej yig cov ntaub ntawv khaws cia vaj tse uas Amazon siv los khiav nws tus kheej thoob ntiaj teb cov vev xaib. Cov kev pabcuam ua kom muaj txiaj ntsig zoo tshaj plaws ntawm cov nplai thiab kom dhau cov kev pabcuam rau cov tsim tawm.

Txhawm rau hloov cov xaib rau Amazon S3 coj me ntsis ntawm kev ua haujlwm, tab sis ntawm no yog cov hauv paus:

  1. Sau npe rau Amazon Web Services.
  2. Ntsaws lub Firefox Add-on rau S3. Qhov no muab koj lub interface zoo rau kev tswj cov ntsiab lus hauv S3.
  3. Ntxiv ib tug thoob, nyob rau hauv cov ntaub ntawv no kuv ntxiv www.martech.zone.
  4. Ntxiv CNAME rau koj Tus Sau Npe Sau Npe los taw tes ib subdomain los ntawm koj lub xaib rau Amazon S3 rau virtual hosting.
  5. Rub tawm thiab nruab WordPress plugin rau Amazon S3.
  6. Teem koj lub AWS Saib Xyuas Cov Ntaub Ntawv Tseem Ceeb thiab Tus Yeem Ntxiv thiab nyem hloov tshiab.
  7. Xaiv cov subdomain / thoob koj tsim saum toj no rau lub Siv cov thoob no chaw.

wp-amazon-s3-settings.png

Cov kauj ruam tom ntej yog qhov kev lom zem! Kuv tsis xav kom tsuas yog ua haujlwm rau yav tom ntej los ntawm S3, Kuv xav ua haujlwm rau txhua yam ntsiab lus, suav nrog kev tshaj tawm, cov ntsiab lus, thiab cov ntaub ntawv dhau los.

  1. Kuv tsim folders rau tawm, ntxhais, Thiab uploads hauv kuv lub thoob rau S3.
  2. Kuv phiv tag nrho kuv cov ntsiab lus tam sim no (cov duab thiab cov ntaub ntawv tawm) rau cov ntawv tais ceev tseg.
  3. Kuv hloov kho kuv cov ntawv CSS hauv kuv cov ntsiab lus kom rub tag nrho cov duab los ntawm www.martech.zone/themes.
  4. Kuv puas tau a MySQL nrhiav thiab hloov thiab kho txhua qhov siv rau hauv cov ntsiab lus xov xwm yuav tsum tau ua los ntawm S3 subdomain.
  5. Kuv hloov kho tag nrho cov duab xa mus rau cov lag luam tawm kom pom los ntawm cov ntawv tais ceev tseg rau ntawm S3 subdomain.

Txij ntawm no tawm, Kuv tsuas xav tau xa tawm xov xwm rau S3 ntau dua li siv lub neej ntawd duab upload kev sib tham rau WordPress. Lub plugin ua txoj haujlwm zoo heev hauv kev tso tus S3 icon nyob rau tib qho chaw nyob ntawm Upload / Ntxig cim hauv WordPress admin.

Txav tag nrho cov ntaub ntawv thiab khiav ntawm S3 rau ob peb hnub tam sim no tau ua rau $ 0.12 hauv S3 tsub, yog li kuv tsis txhawj xeeb txog cov nqi koom nrog - tej zaum ob peb duas las hauv ib hlis yog dab tsi nws yuav raug nqi. Ntawm qhov txuas ntxiv, yog tias kuv tau txais ib tev ntawm cov neeg tuaj saib, kuv yuav tsum muaj peev xwm ua ntau yam ntau dua li cov kev pabcuam ntawm lub platform tam sim no. Kuv qhov chaw tab tom thau lub home page nyob li 40% ntawm lub sijhawm uas nws tau siv, yog li kuv zoo siab nrog kev tsiv mus!

Qhov zoo tshaj plaws txog qhov kev hloov no yog tias nws tsis xav tau kev tsim kho!

28 Comments

  1. 1

    Kuv tuaj los,

    Kuv muaj ib tus Amazon S3 account, tab sis tom qab sim ua kom paub tseeb, Kuv tsuas yog tso nws vim tias nws nyuaj heev. Puas yog firefox addin rau S3 ua nws yooj yim dua?

    • 2

      Kuv tuaj los Ramin,

      Lub Firefox Add-on tau yog qhov tseem ceeb ntawm daim ntawv no. Koj yuav tsum muaj kiag li muaj thoob nyob rau hauv qhov chaw ua ntej lub plugin ua haujlwm - yog li ntawd ua rau nws ntxaws.

      Doug

  2. 3

    Kuv yuav tsum tau ntxiv, koj yuav tsum taw tes koj CNAME rau qhov tshiab koj_unique_cloudfront_distribution_name.cloudfront.net hloov rau koj_unique_subdomain.s3.amazonaws.com. Tab sis tom qab ntawd, koj kho nws zoo li ib qho S3 thoob.

    Nws raug nqi ntau dua thaum siv ntau dua ntawm qhov nrawm / qis latency CloudFront xaiv. Yog tias koj txiav txim siab koj xav hloov rov qab mus rau tus qauv S3 version, tsuas yog hloov koj CNAME rau taw tes rov qab rau s3.amazonaws.com hloov.

    Txog ib xyoos dhau los, kuv sau tauhttp://www.carltonbale.com/tag/amazon-s3/"a ob peb kab lus blog ntawm Amaon S3 rau leej twg txaus siab.

  3. 4

    Yog tias koj tab tom nrhiav rau ntau dua ntawm qhov kev nce nrawm, tig koj lub Amazon S3 Thoob rau hauv Amazon CloudFront thoob, uas tsim lub ntiaj teb muaj tseeb ntau tus neeg rau zaub mov, qis latency Cov Ntsiab Lus Sib Faib Network. Ntawm no yog ib qhov txuas nrog tag nrho cov ntsiab lus: http://aws.amazon.com/cloudfront/faqs/

    Tsis tas li ntawd, wp-supercache plugin tuaj yeem muab qhov nce siab ntxiv rau ntawm cov chaw siab vim tias nws txo ntau CPU load thiab database hu.

    • 5

      Txias heev, Carlton! Yog li nws yog ntau heev faib network xws li AkamaiCov. Kuv tsis tau paub tias lawv muaj qhov ntawd! Kuv tuaj yeem coj kom zoo dua tom qab pom qee tus nqi.

      Kuv tau muaj caching nrog wp enabled ua ntej, tab sis kuv muaj qee cov ntsiab lus dynamic yog li kuv tau tawm tsam nrog nws vim tias nws yuav qee zaum cov ntsiab lus uas kuv xav tau thauj khoom ntawm lub sijhawm.

      • 6

        Douglas,

        Los ntawm lawv cov lus piav qhia nws suab zoo li Amazon tab tom ua qee yam txawv, lawv hais tias:

        “Amazon CloudFront siv 14 qhov chaw nyob hauv cov lag luam loj thoob plaws ntiaj teb. Yim yog nyob hauv Tebchaws Meskas (Ashburn, VA; Dallas / Fort Worth, TX; Los Angeles, CA; Miami, FL; Newark, NJ; Palo Alto, CA; Seattle, WA; St. Louis, MO). Plaub nyob hauv Europe (Amsterdam; Dublin; Frankfurt; London). Ob tug nyob hauv Asia (Hong Kong, Tokyo). ”

        Lawv qhov kev txiav txim siab tau txais txiaj ntsig hauv kev sib tham hauv Internet los txhawb lawv cov neeg ze rau qhov twg li CDN zoo li Akamai muaj cov servers ze rau qhov kawg cov neeg siv feem ntau nyob hauv ISP cov network.

        Amazons txoj kev ua nws yog pheej yig dua thiab ua haujlwm dua Akamai.

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

  4. 7

    Kuv yuav tsis hais nws? S nyuaj rau "tau ua lag luam kev ua tau zoo nrog CMS nyiam WordPress."

    Nws yog txhua yam nyob rau hauv yuav ua li cas koj teeb tsa koj lub infrastructure lossis txoj kev koj tau tuav koj CMS.
    Txoj kev uas CMS nws tus kheej tau coded tseem tuaj yeem ua qhov tseem ceeb hauv nws qhov kev ua tau zoo raws li Carlton taw tawm nrog kev siv wp-supercache plugin.

    Nws yuav tau zoo dua yog tias kev ua haujlwm ntawm wp-supercache plugin tau tsim rau hauv wordpress txij thaum pib - tab sis uas yuav xav tau rov sau ua ntej kawg. Uas yog dab tsi teebtw.org tau ua.

    Tawm thauj khoom zoo li qub cov ntsiab lus rau qee yam xws li S3 yog txoj hauv kev zoo rau kev thauj khoom tawm thiab xa tawm los ntawm cov neeg rau zaub mov tseem ceeb. Nws yog ib txoj kev yooj yim thiab yooj yim ntawm kev tapping mus rau Amazons cov txheej txheem los ua qhov hnyav nqa tab sis thaum koj mus txog lub laj kab cretin, Amazon yuav pib tau txais cov khoom kim heev thiab nws yuav pheej yig dua los ua nws hauv tsev thiab mus nrog CDN.

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

    Ntawv
    Kuv tau xav txog qhov xwm txheej ntawd rau me ntsis, yog tias tsuas yog 100 tus neeg tau sib koom ua ke thiab tau txhawb txhua lub hli tus nqi ntawm cov neeg rau zaub mov zoo uas lawv ib txwm them rau qhov lawv tuaj yeem tsim / tso ua ke hosting infrastructure uas yuav daws tau txhua yam.

  5. 8

    $ 0.12 rau thawj ob peb hnub ntawm S3 cov kev pabcuam. Koj puas tuaj yeem rov qab tham lub ncauj lus hauv ob peb lub hlis thiab qhia qee cov stats ntawm tsheb piv rau cov nqi? Nws yuav tau nthuav kom pom tias tus nqi lov-rau cov qhua tshwj xeeb thiab tawm tsam cov nqi ad lossis lwm yam kev nkag.

  6. 13

    Yog tias koj yog Windows koj tuaj yeem siv S3 Browser - http://s3browser.com txhawm rau upload cov ntaub ntawv, xws li duab, ntawv sau, thiab lwm yam rau Amazon S3. Yuav tsum muaj cov cuab yeej.

    Thiab tsaug rau qhov tseem ceeb ncej!

  7. 14

    Amazon S3 yog qhov kev pabcuam zoo tshaj plaws. Kuv tsuas yog nyob rau hauv tus txheej txheem ntawm kev koom ua ke nws mus rau hauv CMS. Qhov teeb meem tsuas yog qhov kuv tau hla los ntawm kev txhim kho kev xav, tsis yog Amazon kev pab cuam lub zeem muag, yog tias koj xav kom koj tus neeg siv pob tshab cov ntaub ntawv ncaj qha rau S3 ntawm POST thiab koj muaj daim foos uas sib txuas cov ntawv tuaj rau koj lub zos. database, koj nyob nraum nyam. Koj yog xav tau cais nws ua ob daim ntawv, lossis sim siv ajax los upload cov ntaub ntawv ua ntej ces ntawm kev vam meej xa cov ntaub ntawv hauv zos.

    Yog tias leej twg muaj cov tshuaj zoo dua, thov qhia kuv paub: o)

    Txawm li cas los xij, tus nqi txuag nyiaj rau kev tuaj tos cov tsheb loj ntawm cov ntaub ntawv yuav ua kom muaj kev txhim kho ntawm cov kab ke no.

    Grant

    Cov Ntawv Teev Tseg Yuav Tswj Xyuas Lub Tshuab

  8. 15

    Kuv tuaj los,

    Zoo kawg li sau. Kuv tau nqis mus txog raws li koj tau piav qhia, tab sis hauv kuv lub vaj huam sib luag saib xyuas qhov chaw kuv xa cov duab, Kuv tsis pom S3 khawm. Kuv tau pom tias kuv cov duab, thaum upload ib txwm xaus rau ntawm Amazon, puas yog qhov no txhais tau tias tam sim no kuv tuaj yeem luam tag nrho kuv cov duab uas twb muaj lawm thiab rho tawm cov uas nyob ntawm lub server?

    Thiab kuv puas yuav tsum hloov kho qhov twg kuv cov duab los ntawm lossis cov plugin ua qhov no?

  9. 16

    Nyob zoo Scott,

    Koj yuav tsum pom me ntsis database saib icon rau sab xis ntawm koj lub icon uas raug. Ntawd yog lub icon los pop tawm ntawm Amazon qhov rai. Kuv tau tsiv tag nrho ntawm wp-cov ntsiab lus / uploads rau Amazon thiab paub tseeb tias kuv muaj tib txoj kev… tsuas yog qhov txawv tsuas yog qhov subdomain. Lawv nyob ntawm http://www..Cov. thiab tam sim no lawv nyob ntawm images.marketingtechblog.com. Tom qab kuv luam tag nrho cov duab mus rau Amazon, Kuv siv PHPMyAdmin thiab tau tshawb thiab hloov rau src = "http://martech.zone thiab hloov nws nrog src =" images.marketingtechblog.com. (https://martech.zone/wordpress/mysql-search-replace/)

    Vam tias yuav pab tau! Nws tsis yog kev sib khi, tab sis nws ua haujlwm.

    Doug

  10. 17

    Hav Douglas, ua tsaug rau qhov ntawd, Kuv tau hloov kho DB yog li txhua cov duab taw tes rau cov duab., Tab sis kuv pom qee tus ntiv tes xoo (thaum ntsia ntawm ntawm nplooj ntawv cov ntaub ntawv) qhia cov iamge tseem nyob ntawm www.

    Nov yog lub vev xaib (www.gamefreaks.co.nz) - a, alos muaj qee qhov teeb meem nco tseem ceeb rau cov ntawv ua ntej, tsuas yog pib thaum peb hloov hosting, yog li kuv tam sim no saib ntawm off qee qhov hosting siab rau S3. 😎

  11. 18

    koj puas paub yog tias nws muaj peev xwm cia li upload rau S3 tsis tas nws tseem khaws cia ib daim qauv ntawm qhov chaw nyob hauv thaj?

    Tnx

  12. 19

    Nyob zoo Scott, S3 plugin muab nws txoj hauv kev ncaj qha rau Amazon, yog li cov ntaub ntawv TSIS TXHOB nyob hauv zos.

  13. 20
    • 21

      Nws tau sib xws nrog cov kho tshiab, tab sis kuv ua siab ncaj tsis nyiam qhov kev ua haujlwm - koj yuav tsum hloov thiab thauj txhua cov duab rau S3 nrog cov txheej txheem sib txawv. Peb yuav tau txhim kho CDN ntau ntxiv (Cov Xa Khoom Network) kev koom ua ke nrog WP uas sib txuas ua ke tsis yog xav tau cov txheej txheem sib txawv.

  14. 22
  15. 23

    Koj puas paub yog tias qhov no ua haujlwm nrog "Thoob Thoob Sab Nraud" dhau? Kuv xav teeb tsa qhov no rau blog ntawm ib tus phooj ywg ntawm kuv thiab cia nws siv lub thoob hauv kuv tus account AWS (Kuv twb tau tsim tus neeg siv nyiaj rau nws thiab muab nws nkag mus rau ib qho ntawm kuv lub thoob siv cov Amazon IAM cuab yeej).

  16. 24
  17. 25
    • 26

      Celia, mus rau AWS tsev http://aws.amazon.com/ thiab nyob rau hauv lub "Kuv Tus Account / Console" nqis los, xaiv "Cov Ntawv Pov Thawj Kev Ruaj Ntseg." Kos npe rau hauv yog tias koj xav tau. Txij ntawd los, kos rau hauv nkag mus nkag Cov Ntawv Pov Thawj thiab koj yuav pom koj nkag mus saib ID nkag mus. Luam ib daim ntawm cov lej cim tseem ceeb rau lub plugin no, thiab nyem rau kab lus “Qhia” txuas kom pom tus Ntev Kev nkag mus siv tau ntev. Luam qhov ntawd thiab muab tso rau hauv cov chaw teeb tsa zoo li. Koj yuav tsum tau tag nrho teeb tsa tom qab ntawd!

  18. 27
  19. 28

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.