Briefly:
memcached, open source distributed cache Data System, high-performance NoSQL.
Linux
First, environment configuration and installation
01. Compile the preparation environment
Yum install-y gcc make cmake autoconf libtool
02. Compiling memcached
#官方下载
wget http://memcached.org/latest
#安装源码编译依赖库
Yum Install-y libevent-devel
#编译安装
site:http://memcached.org/
Lastnew:memcached-1.4.31.tar.gz
TAR-ZXVF xxx.tar.gz
./configure--prefix=/memcached
Make
Make install #其实也可以不安装 for easy opening of multiple memecached,
03, Qidong memcached
Cd/memcached/bin
Memcached-h #参数意义
Memcached-m 128-p 11211-f 1.25-u nobody-c 2048-vv-d
Ss-ln | grep 11211 #查看运行
04. Test Memcached,telnet
Telnet IP Port
After connecting CTRL +], then enter to turn on Echo function
Enter Stats carriage return to view memcached running status
Windows
Memcached-win64-1.4.4-14.zip
Http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip
- Install the service using the command:
C:\memcached\memcached.exe-d Install
From the command line
- Start the server from the Microsoft Management Console or by running one of the following commands:
C:\memcached\memcached.exe-d start
Or
net start "memcached Server"
2, install to the Windows service, open the cmd command line, enter the memcached directory, execute the memcached-d install command, install the service, Cmd.exe need to run as administrator.
3, start the service, execute memcached-d start
4. Parameter Introduction
-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 running out of memory and returning an error 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
6. Stop memcached:
C:\memcached> memcached.exe-d Stop
7. Uninstall memcached:
c:\memcached> memcached.exe-d Uninstall
RELATED links:
http://memcached.org/
Http://zurmo.org/wiki/installing-memcache-on-windows
Http://pecl.php.net/package/memcache
http://blog.csdn.net/zhaotengfei36520/article/details/41315329
Http://www.cnblogs.com/jiajinyi/p/3531381.html
memcached installation Configuration