Download address http://download.csdn.net/detail/u011986449/8110579
This is the version under windows, the installation should be installed under the command line. The decompression room C drive or other disk can be, such as my C drive memcache121 directory, and then enter the cmd command line, as follows:
Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp.
C:\\Documents andSettings\\Administrator>cd\\
C:\\>cd memcached121
C:\\memcached121>memcached.exe -dinstall (installed as a service)
C:\\memcached121>memcached.exe -dstart (startup)
C:\\memcached121> You can see the memcache.exe process in the process. This will automatically start each time you start
2. Download the php_memcache.dll corresponding to the php version (my php version is php-5.2.9-1-Win32.zip) at http://cn.php .net/get/pecl-5.2.6-Win32.zip/from/a/mirror download pecl-5.2.6-Win32.zip here and extract it, copy the php_memcache.dll inside to your php's ext directory, like me Is the d:\\php5\\ext directory, for php to load php_memcache.dll
3, configure php.ini in C:\\windows\\php.ini add a line extension=php_memcache.dll, (location is In the
extension=php_mbstring.dll extensions, you can add it.)
4. Restart IIS, then check phpinfo, if there is memcache, then the installation is successful!
The basic settings of memcached:
-p The port to listen to -l The IP address of the connection, the default is the local machine -d start Start the memcached service -d restart Restart the memcached service -d stop|
Shutdown Shut down the running memcached service -d install Install the memcached service -d uninstall Uninstall the memcached service -u Run as follows (only valid when running as root) -m Maximum memory usage, in megabytes. The default 64MB -M returns an error when the memory is exhausted, instead of deleting the item -c maximum simultaneous connection number, the default is 1024 -f block size growth factor, the default is 1.25 -n minimum allocation space, key+value+flags default is 48 - h Display help
Memcache environment test: Run the following php file, if there is output This is a test!, it means the environment is set up successfully. Start to appreciate the charm of Memcache!
< ?php$mem = new Memcache;$mem->connect(”127.0.0.1″, 11211);$mem->set(’key’, ‘This is a test!& rsquo;, 0, 60); $val = $mem->get(’key’);echo $val;?>
. First explain why this is the case. Mainly for the security of the server, even if there is a prob
Sometimes the website opening speed will be very slow, we need to use the Ping command to troublesho
Windows system, you must set up IIS support Rewrite. Then start configuring IIS Rewrite1,
Step 1: Create a virtual directory under the WSS site “IISADMPWD”point to %syste
IIS under the 301 permanent redirection settings method
Solve the problem when installing IIS: error code 0x4b8 problem
IIS pseudo-static (Rewrite) configuration graphic tutorial
View the PID value corresponding to the IIS site application pool
VPS server tips and precautions (windows version)
Web server management series: 12, turn off the Ping command
Adjusting IIS settings to simplify Windows Server client uploads
How to use IIS to establish a high-security Web server
Configuring dynamic compression in IIS 7.0
IIS installation and solutions to common problems
Win7 utility to improve work efficiency
Tips for improving Win10 boot speed
Windows Vista new file association setting method
Win8 system parental control use tutorial
Automatically execute applications after Linux system login
Windows can not install itunes how to do itunes installation does not solve the problem
How does Win8 set the input method for each application window
Win10 system driver download and installation skills
Three ways to return the Win8.1 system from any location on the computer to the desktop