北航云计算公开课02a memcached homework

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1/20By罗彦SmartClouder.com3/6/20122/202TAs:•罗森辉,移动云计算,研一A2班,classiclocke@gmail.com•邹荣波,计算机学院研二zourongbo007@126.com3/203Description:UseMemcachedandMySQLtosaverecord.ThenretrievetherecordfromMemcachedandMySQLrespectively.Tips:1.Underwindowsxporwindows72.Memcachedwindowsinstalledpackage://github.com/pompo500/xslib-memcached4/205/205Step1.InsertrecordintoMySQLandMemcachedInwebpage,itlookslikethis6/206Step2.GettherecordfromMemcachedInwebpage,itlookslikethis7/207Step3.DeletetherecordinMemcachedInwebpage,itlookslikethis8/208Step4.GettherecordfromMySQLInwebpage,itlookslikethis9/1610/2010Step1.installmemcachedonwindowsUnzippackagememcached-1.2.6-win32-bin.zip,thenindoswindow,gotomemcacheddirectory,executecommand:#memcached.exe–dinstall11/2011Step2.startmemcacheddaemonIndoswindow,executecommand:#memcached.exe–dstart–l127.0.0.1–p1121112/2012Step3.DeploythewebsiteThereare3phpfileinattachment,puttheminhtdoc/memdirectory.memdirectorywascreatedmanually.htdocisunderthexamppdirectoryasthelastlecturementioned.13/2013Step4.DownloadmemcachedphpclientanddeployMemcachedphpclientwasaphpfilenamedxslib-memcached.php,putitinhtdoc/memdirectory.14/2014Step5.UsethewebpagetoinsertrecordintoMemcachedandMySQLLoginwebpage,://localhost/mem/get.php.ItwouldgiveprioritytoMemcachedtoretrievetherecordratherthanMySQL.16/2016Step7.UsethewebpagetodeletetherecordfromMemcachedLoginwebpage,://localhost/mem/get.php.Becausewehaveremovedtherecordfrommemcached,itwouldretrievetherecordfromMySQL.18/2019/2019Step1.ModifyworkflowtoinsertrecordModifyinsert.phptoworklikethis:20/2020Step2.ImproveworkflowgetrecordModifyget.phptoworklikethis:

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功