Home  >  Article  >  Backend Development  >  How to install Memcached server under windows and install PHP memcache extension

How to install Memcached server under windows and install PHP memcache extension

巴扎黑
巴扎黑Original
2017-07-23 16:50:222020browse

Memcahed

Introduction: Memcahed is a memory cache server (similar to MySQL server)

Function: Improve the response speed of the web, such as caching database query results

Principle: Store data in memory (reason to increase speed)

Tutorial related

System: windows7 (x64)

Memcached version: 1.4.4

PHP version: 5.6.30

memcache extension: TS x64

1. Install Memcached server

1. Download address:

2. Extract the memcached folder in the compressed package to the E: root directory

3. Open cmd as an administrator, enter the E:\memcached folder just now, and execute the command memcached -d install

4. The installation is successful (you can see memcached by checking the computer's services)

Related commands:

memcached -d start //Open memcached

memcached -d stop //Close memcached

2. PHP install memcache extension

1. Download address:

2. There is a php_memcache in the download and decompression. The dll file is placed under ext in the PHP installation directory

3. Open php.ini and add the php_memcache extension. Code: extension=php_memcache.dll

4. Restart your service and the installation is successful. Check phpinfo and you can see the memcache extension

Related tools:

Memcached interface manager download address:

This is equivalent to phpmyadmin, logged in by default The account password is admin

The above is the detailed content of How to install Memcached server under windows and install PHP memcache extension. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn