specified during installation./configure--prefix=/usr/local/memcached-1.4--with-libevent=/usr/local/libevent-1.4.2/
When you start memcached
#cd/usr/local/bin//Enter into the directory
#./memcached-d-M 900-u root-l 192.168.100.186-p 11211-c 256-p/tmp/memcached.pid//start memcached start parameter description:
Start parameter Description:
The-D option is to start a daemon,
-M is the amount of memory allocated to Memcache, in megabytes, default 64MB
-M return error on memory exhausted (rather than removing items)
-U is the user running memcache, and if it is currently root, you need to specify the user with this parameter.
-L is the server IP address of the listener, which defaults to all network cards.
-P is the port that sets the TCP listener for memcache, preferably a port above 1024
The-c option is the maximum number of concurrent connections that are running, by default 1024
-P is a PID file that is set to save Memcache
-F <factor> Chunk size growth factor (default:1.25)
-I Override the size of each slab page. Adjusts max item size (new 1.4.2 version)
You can also start multiple daemons, but the ports cannot be duplicated
To stop the memcache process:
Kill ' Cat/tmp/memcached.pid '
Start and Stop memcached (RPM) under Linux