memcached command line parameter description

Common parameters to start Memcache
-p <num> Set the TCP port number (default: 11211)
-U <num> UDP listening port (default: 11211, closed at 0)
-l <ip_addr> Binding address (default: all All are allowed, no matter whether the IP is changed on the internal or external network or the local machine, there are security risks. If it is set to 127.0.0.1, it can only be accessed by the local machine)
-d run in daemon mode
-u <username> Binding use specified for running process <username >
-m <num> allow maximum memory usage in M ​​(default: 64 MB)
-M return an error when memory is exhausted, instead of deleting items
-P <file> write PID to file <file>, so that later For fast process termination, use with -d
-c max simultaneous connections, default is 1024
-f block size growth factor, default is 1.25
-t threads (default 4)

-vv show debug information

Example of use:

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30013 -A -c 10240

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30014 -A -c 10240

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30015 -A -c 10240

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30016 -A -c 10240

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30017 -A -c 10240

/opt/memcached-1.4.20/bin/memcached -d -u localadmin -m 100 -p 30018 -A -c 10240
 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326990014&siteId=291194637