memcached Cache Technology Install PHP and use Telnet to manipulate data under CMD

Source: Internet
Author: User

First step download Install Memcached.exe file

(1) Extract the downloaded file to the specified file

(2) Open cmd console input cd\ back to the root directory

(3) Enter the developed file path and install it with memcached.exe-d installation

(4) Start with the Memcached.exe–p port number or the memcached.exe–m 200mb–d start command.

(5) Use the NETSTAT–ANB command to see if 11211 ports are occupied by Memcached.exe, and the installation is successful.

The second step of configuring Php_memcahce.dll makes PHP's memcache extensions available.

(1) Download your PHP version corresponding to the Php_memcahce.dll, note that the version must correspond to their own PHP version.

(2) Put the downloaded php_memcahce.dll in the ext file below the PHP file.

(3) Add Extension=php_memcache.dll to the designated extension of php.ini.

(4) Restart Apache.

Note: To use Telnet to cache operations in the CMD console, first if the discovery does not support a solution:

(1) First look at their own C-drive windows under the systems32 there is no telnet, do not go to someone else's computer to copy one.

(2) Right click on My Computer, click Manage and turn the service on to enable Telnet.

(3) Use Telnet 127.0.0.1 11211 to link to the memcached service under the CMD console .

(4) The use of telnet to increase and revise the search,

Add key Name 0 time (seconds) content size (for example: 5) content (hello)

Delete delet key name

Set Key name 0 time (seconds) content size (for example: 5) content (Hello) Note (created if there is no change)

check get key name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.