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