Memcached startup parameters

Source: Internet
Author: User
Memcached startup parameter-p specifies the port number (default 11211)-U & lt; num & gt; UDP listening port (default: Disabled at)-s & lt; file & gt; the UNIX socket path used for listening (network support disabled)-a & lt; mask & gt; UNIX socket access mask, octal packets...
Memcached startup parameter-p specifies the port number (default: 11211)-U UDP listening port (default: 11211, disabled when 0)-s UNIX socket path used for listening (network support disabled)- UNIX socket access mask, octal digit (default: 0700)-m specifies the maximum memory usage (default: 64 MB)-t thread count (default: 4)-l Binding address (default: all allow, regardless of the intranet and internet or the local machine to change the IP address, there is a security risk, if set to 127.0.0.1, only local access is allowed) -d start memcached service-d restart memcached service-d stop | shutdown shut down the running memcached service-u Bind to use the specified process for running (Only root users can use this parameter)-P Write PID to file In this way, the backend process can be terminated quickly. you need to use-m with-d for maximum memory usage, in MB. By default, an error is returned when 64 MB www.2cto.com-M memory is used up, instead of the maximum number of concurrent connections in item-c. the default value is 1024-f. The default value is 1.25-n. Minimum allocation space. The key + value + flags default value is 48-K to lock all memory pages. Note the upper limit of memory that you can lock. Trying to allocate more memory will fail, so pay attention to the upper limit of memory that users can allocate when starting the daemon. (Not the previous-u In sh, run the "ulimit-S-l NUM_KB" command .) -V prompt information (print error/warning information in the event loop .) -Vv details (also print client commands/responses)-vvv extra details (also print internal status changes)-h print the help information and exit. -I print the license for memcached and libevent. -L try to use a large memory page (if available ). Increasing the memory page size can reduce the number of "page table buffer (TLB)" loss and improve operation efficiency. To obtain a large memory page from the operating system, memcached allocates all data items to a large block. -D Use The delimiter used as the prefix and ID. This is used to obtain status reports by prefix. The default value is ":" (colon ). If this parameter is specified, status collection is automatically enabled. If this parameter is not specified, you need to use the "stats detail on" command to enable it. -T Number of threads used (default: 4)-R maximum number of requests that can be processed by each connection. -C: disable CAS. -B: Set the backend log queue length (default: 1024)-B binding protocol-possible value: ascii, binary, auto (default)-I rewrite each data page size. Adjust the maximum size of a data item. Common combinations:/usr/local/memcached/bin/memcached-d-m 256-p 11211-u www-l 127.0.0.1
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.