← 返回命令列表

Linux command

memcached 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start memcached

memcached

Start with specific memory

memcached -m [256]

Listen on specific port

memcached -p [11211]

Run as daemon

memcached -d -u [memcache]

Verbose output

memcached -vv

Limit connections

memcached -c [1024]

说明

memcached is a high-performance, distributed memory caching system. It stores key-value pairs in RAM to reduce database load and speed up dynamic web applications. memcached uses a simple protocol and is widely used for caching database queries, API responses, and session data.

参数

-p _port_
TCP port (default 11211).
-m _MB_
Memory limit in megabytes.
-c _connections_
Max simultaneous connections.
-d
Run as daemon.
-u _user_
Run as user.
-l _ip_
Listen address.
-v, -vv
Verbose output.
-t _threads_
Number of threads.

FAQ

What is the memcached command used for?

memcached is a high-performance, distributed memory caching system. It stores key-value pairs in RAM to reduce database load and speed up dynamic web applications. memcached uses a simple protocol and is widely used for caching database queries, API responses, and session data.

How do I run a basic memcached example?

Run `memcached` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _port_ do in memcached?

TCP port (default 11211).