memcached緩衝技術之安裝配置php 並在CMD下用telnet操作資料

來源:互聯網
上載者:User

標籤:memcached   緩衝   telnet   php   資料   

第一步下載安裝memcached.exe檔案

 

(1)將下載的檔案解壓到指定檔案

(2)開啟CMD控制台輸入cd\回到根目錄

(3)將制定的檔案路徑輸入,然後用memcached.exe -d install安裝

(4)用memcached.exe –p 連接埠號碼 或memcached.exe –m 200MB –d start 指令啟動。

(5)用netstat –anb指令查看11211連接埠是否被memcached.exe佔用,佔用則安裝成功。

 

第二步配置php_memcahce.dll使得php的memcache的擴充可以使用。

 

(1)下載自己php版本對應的php_memcahce.dll,注意版本一定要對應自己的php版本。

(2)將下載好的php_memcahce.dll放在php檔案下面的ext檔案中。

(3)在php.ini的指定擴充處加上extension=php_memcache.dll。

(4)重啟Apache。

 

注意:要想使用telnet在CMD控制台進行緩衝的操作,首先如果發現不支援有解決方案:

(1)首先看一下自己的C盤的windows下面的systems32有沒有telnet,沒有就去別人電腦複製一個。

(2)右擊我的電腦,點擊管理然後將服務開啟啟用telnet。

(3)在CMD控制台下用telnet 127.0.0.1  11211連結到memcached服務。

(4)用telnet進行增刪改查,

   增    add 鍵名 0 時間(秒為單位)內容的大小(如:5) 內容(hello)

   刪    delet 鍵名

   改    set 鍵名 0 時間(秒為單位)內容的大小(如:5) 內容(hello) 注(存在則改不存在則建立)

      查        get  鍵名

             

           

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.