Install memcached and memcache for PHP on windows

1. Download the memcached for windows in URL: http://jehiah.cz/projects/memcached-win32/

2. Unzip the binaries in your desired directory (eg. c:/memcached)

3. Install the service using the command: 'c:/memcached/memcached.exe -d install' from either the command line

4. Start the server from the Microsoft Management Console or by running the following command: 'c:/memcached/memcached.exe -d start'

5. Use the server, by default listening to port 11211

6. Download the PHP memcache extension for windows in URL: http://downloads.php.net/pierre/

7. Copy it to PHP extensions directory (eg. c:/PHP/ext)

8. Open php.ini and add 'extension=php_memcache.dll'

9. Restart your web server and check the phpinfo

 

 

PS:

Other settings for memcached:

 

-p       TCP port number to listen on (default: 11211)
-U       UDP port number to listen on (default: 0, off)
-s      unix socket path to listen on (disables network support)
-l   interface to listen on, default is INDRR_ANY
-d start          tell memcached to start
-d restart        tell running memcached to do a graceful restart
-d stop|shutdown  tell running memcached to shutdown
-d install        install memcached service
-d uninstall      uninstall memcached service
-r            maximize core file limit
-u assume identity of (only when run as root)
-m       max memory to use for items in megabytes, default is 64
-M            return error on memory exhausted (rather than removing i
-c       max simultaneous connections, default is 1024
-k            lock down all paged memory
-v            verbose (print errors/warnings while in event loop)
-vv           very verbose (also print client commands/reponses)
-h            print this help and exit
-i            print memcached and libevent license
-b            run a managed instanced (mnemonic: buckets)
-P      save PID in , only used with -d option
-f    chunk size growth factor, default 1.25
-n     minimum space allocated for key+value+flags, default 48

 

 

 

你可能感兴趣的:(其他,memcached,php,extension,command,download,microsoft)