Installation process of memCache under win7 (specific steps)_PHP tutorial

WBOY
Release: 2016-07-21 15:02:10
Original
801 people have browsed it

1. Download the Windows stable version of memcache, unzip it and put it in a disk, such as H:/wamp/www/php api/memcache;

2. In the terminal (i.e. cmd command interface), enter the installation command:
H:/wamp/www/php api/memcache/memcached.exe –d install
[Prompt error: failed to install service or service already installed]
Solution: Find the cmd.exe file in the system disk, right-click and run as administrator

3. Enter the command to start the memcache service
H:/wamp/www/php api/memcache>memcached.exe -d start

4. Test whether memcache is connected successfully
H:/wamp/www/php api/memcache>telnet 127.0.0.1 11211
[Error message: 'telnet' is not internal or external command, nor is it an operable program or batch file. ]
Note: Windows 7 comes with telnet, but it is not installed by default.
Solution:
Open "Start" → "Control Panel" → "Turn Windows features on or off" in order, and in the open window, look for And check "Telnet Client", then click "OK". After successful installation, enter this command under Run and it will be OK.
1. Start->Control Panel->Programs and Features
2. Turn on or off windows functions on the left
3. Find the Telnet client and choose to install

5. Enter: stats command to view basic information.
The memcache connection test ran successfully!

6. Enter: quit to exit
Configuration:
1. Download: php_memcache.dll component. //If you are using the wamp5 integrated development environment, it comes with it
2. Copy: php_memcache.dll to the specified component directory, the default is under php/ext/.
3. Add a sentence to php.ini: extension=php_memcache.dll.
4. Restart the WEB server and use the phpinfo() function to check the activation status.
Test:
Create mem.php, the source code is as follows:

Copy the code The code is as follows:

$mem = new memcache; 127.0.0.1 (server address) 11211 (port number)
echo $mem->getVersion();


http://www.bkjia.com/PHPjc/327937.htmlwww.bkjia.com

truehttp: //www.bkjia.com/PHPjc/327937.htmlTechArticle1. Download the Windows stable version of memcache, unzip it and put it in a certain disk, such as H:/wamp/www/php api/memcache; 2. In the terminal (i.e. cmd command interface), enter the installation command: H:/...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template