您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 安全文明施工 > 北航云计算公开课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:
本文标题:北航云计算公开课02a memcached homework
链接地址:https://www.777doc.com/doc-6343308 .html