Install and configure php In memcached cache and use telnet to operate data in CMD

Source: Internet
Author: User
M200MBdstart command to start. (5

Step 1 download and install the memcached.exe file (1) decompress the downloaded file to the specified file (2) open the CMD console, enter cd \, and return to the root directory. (enter the required file names in the 3rd region. Then run the memcached.exe-d install command to install the tool. (4)use the memcached.exe p port or memcached.exe m 200 MB d start command. (5

Step 1 download and install the memcached.exe File

(1) decompress the downloaded file to the specified file

(2) Open the CMD console and enter cd \ to return to the root directory.

(3) enter the specified file, and then install it with memcached.exe-d install.

(4)use memcached.exe-p port orMemcached.exe-m 200 MB-d startCommand to start.

(5) Use netstat -anbcommand to configure the 11th port number to be occupied by memcached.exe. If the port number is occupied, the installation is successful.

Step 2 configure php_memcahce.dll to enable php memcache extension.

(1) download php_memcahce.dll corresponding to your php version. Note that the version must correspond to your php version.

(2) Place the downloaded php_memcahce.dll In the ext file under the PHP file.

(3) add extension = php_memcache.dll to the specified extension of php. ini.

(4) Restart Apache.

Note: If you want to use telnet to perform cache operations on the CMD console, first, if you find that the solution is not supported:

(1) first, check whether the systems32 in windows on drive C has telnet. If not, copy one on another computer.

(2) Right-click my computer, click manage, and enable telnet for the service.

(3) use telnet 127.0.0.1 11211 on the CMD console to link to the memcached service.

(4) UseTelnetAdd, delete, modify, and query,

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

Delete delet key name

Change the content size of the set key name 0 time (in seconds) (for example, 5) content (hello) Note (If yes, It is created if it does not exist)

Query the 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.