memcached startup and shutdown

 

The memcached startup parameters are as follows

Start method:
-d run as a daemon
-u root specifies the user, if it is currently root, you need to use this parameter to specify the user
-P /tmp/a.pid save PID to specified file
Memory settings:
-m 1024 The amount of data memory, excluding memcached itself, the unit is MB
-M Disable LRU when memory is not enough, report an error
-n 48 initial chunk=key+suffix+value+32 structure, default 48 bytes
-f 1.25 growth factor, default 1.25
-L enables large memory pages, which can reduce memory waste and improve performance
Connection settings:
-l 127.0.0.1 The listening IP address, this parameter can not be set for this machine
-p 11211 TCP port, the default is 11211, can not be set
-U 11211UDP port, the default is 11211, 0 is closed
Concurrency settings:
-c 1024 Maximum number of concurrent connections, default 1024, preferably 200
-t 4 threads, default 4. Since memcached uses NIO, more threads don't do much
-R 20 The maximum number of concurrent connections per event, the default is 20
-C disables CAS commands (version counting can be disabled, reducing overhead)

 

After the command

 is executed, run ps -ef | grep mem to see if there is a thread to start

close command

Use kill -9 process ID to close memcached

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

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