Install PHP Tutorial Extensions: memcache steps under Windows
1. Download the PHP extension dll:http://downloads.php.net/pierre/
2. Put the. dll into the PHP extension directory, usually in the Ext folder in the PHP directory.
3. Modify the php.ini in the Bin folder of the Apache directory, plus Extension=php_memcache.dll.
4. Restart the Apache server, using Phpinfo () to view, the Memcache instructions appear correctly configured.
It is worth noting that:
It is important to note that the compiled version of PHP, when downloading memcache to use the same version of the compilation, such as PHP is compiled with VC6, then memcache should also use VC6 compiled version
Let's take a look at the Windows download install memcache PHP Tutorial
Memcache installation under Windows:
1. Download Memcache's Windows stable version and unzip it under a disk, for example, in c:memcached
2. Enter the ' c:memcachedmemcached.exe-d install ' installation in the terminal (also known as the cmd Command interface)
3. Re-enter: ' c:memcachedmemcached.exe-d start ' starts. Note: memcached will start automatically every time a service is turned on for Windows. This way the server side is already installed.
4. Download Php_memcache.dll, please find the corresponding PHP version of the file yourself
5. Add a line of ' Extension=php_memcache.dll ' to C:winntphp.ini
6. Restart Apache, then check the phpinfo, if there is memcache, then the installation is successful!
Basic Settings for memcached:
-P Listening Port
-L connected IP address, default is native
-D Start memcached service
-D Restart Restart memcached service
-D Stop|shutdown Close the running memcached service
-D Install memcached service
-d Uninstall Uninstall memcached service
-U Run as (only valid when running as root)
-m maximum memory usage, in megabytes. Default 64MB
-M memory is exhausted when an error is returned instead of deleting an item
-c Maximum number of simultaneous connections, default is 1024
-F Block size growth factor, default is 1.25
-N Minimum allocated space, key+value+flags default is 48
-H Display Help
Memcache Environmental Testing:
Run the following PHP file, if there is output this is a test!, it indicates that the environment was built successfully. Begin to appreciate the charm of memcache!
< PHP
$mem = new Memcache;
$mem->connect ("127.0.0.1′, 11211);
$mem->set (' key ', ' This is a test! ', 0, 60);
$val = $mem->get (' key ');
Echo $val;
?>
http://www.bkjia.com/PHPjc/632305.html www.bkjia.com true http://www.bkjia.com/PHPjc/632305.html techarticle Install PHP Tutorial extension: memcache under Windows step 1. Download the PHP extension DLL:HTTP://DOWNLOADS.PHP.NET/PIERRE/2. Put the. dll into the PHP extension directory, generally in the PHP directory of the ext text ...