How to enable and disable memcached

Source: Internet
Author: User
The method for starting and disabling memcached is quite simple. next I will introduce the specific commands used in linux to start or stop memcached. I hope this article will be helpful to you. 1. start memcached # usrl... the method for starting and disabling memcached is quite simple. next I will introduce the specific commands used in linux to start or stop memcached. I hope this article will be helpful to you.

1. start memcached

#/Usr/local/bin/memcached-d-m 2048-u root-l 192.168.1.20-p 12111-c 1024-P/tmp/memcached. pid

Parameter description:

-D start as a daemon process

-M The amount of memory allocated to Memcached. the unit is MB. the default value is 64 MB.

-U The user who runs Memcached only when it is run as the root user.

-L The IP address of the listening server. the default value is the environment variable INDRR_ANY.

-P Set the Memcached listening port, preferably over 1024.

-C Sets the maximum number of concurrent connections. the default value is 1024.

-P Set the pid file for saving Memcached and use it with the-d option

For more information about the parameters, see:

#/Usr/local/bin/memcached-h

2. end memcached

# Kill/tmp/memcached. pid

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.