Spec-Zone .ru
спецификации, руководства, описания, API

15.6.2. Using memcached

15.6.2.1. memcached Deployment
15.6.2.2. Using Namespaces
15.6.2.3. Data Expiry
15.6.2.4. memcached Hashing/Distribution Types
15.6.2.5. Using memcached and DTrace
15.6.2.6. Memory Allocation within memcached
15.6.2.7. memcached Thread Support
15.6.2.8. memcached Logs

To start using memcached, start the memcached service on one or more servers. Running memcached sets up the server, allocates the memory and starts listening for connections from clients.

Note

You do not need to be a privileged user (root) to run memcached except to listen on one of the privileged TCP/IP ports (below 1024). You must, however, use a user that has not had their memory limits restricted using setrlimit or similar.

To start the server, run memcached as a nonprivileged (that is, non-root) user:

shell> memcached

By default, memcached uses the following settings:

Typically, you would specify the full combination of options that you want when starting memcached, and normally provide a startup script to handle the initialization of memcached. For example, the following line starts memcached with a maximum of 1024MB RAM for the cache, listening on port 11211 on the IP address 192.168.0.110, running as a background daemon:

shell> memcached -d -m 1024 -p 11211 -l 192.168.0.110

To ensure that memcached is started up on boot, check the init script and configuration parameters.

memcached supports the following options: