This article describes the description of the memcache command startup parameters in Chinese.
The code is as follows:
Usr/local/bin/memcached-d-m 128-u root-l 192.168.0.10-p 12121-c 256-P/tmp/memcached. pid
-TCP port listened by p (default: 11211)
-U udp listening port (default: 11211, disabled when 0)
-D run as a daemon
-U: the account that runs Memcached is not the root user.
-The maximum memory usage unit of m is MB. the default value is 64 MB.
-The default number of c soft connections is 1024.
-V output warning and error message
-Vv: print the client's request and return information
-H: Print Help information
-I print the copyright information of memcached and libevent.
-L binding address (default: all IP addresses are allowed, regardless of internal and external networks or the local machine IP address replacement, there is a security risk, if set to 127.0.0.1, only local access is allowed)
-P writes the PID to the file, so that the process can be terminated quickly later and must be used together with-d.