← 返回命令列表

Linux command

beanstalkd 命令

文本

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

常用示例

Start beanstalkd

beanstalkd

Start on a specific address

beanstalkd -l [127.0.0.1] -p [11300]

Run with persistent storage

beanstalkd -b [/var/lib/beanstalkd]

Run as a specific user

beanstalkd -u [beanstalkd]

Set maximum job size

beanstalkd -z [65535]

Start in verbose mode

beanstalkd -V

Print version

beanstalkd -v

说明

beanstalkd is a simple, fast work queue server. It provides a generic interface for managing job queues, originally designed for reducing latency in high-volume web applications by running time-consuming tasks asynchronously. Jobs are pushed to the queue by producers and reserved by workers (consumers) for processing. The protocol supports job priorities, delays, time-to-run limits, and multiple named tubes (queues).

参数

-l _addr_
Listen on address (IP or 0.0.0.0 for all interfaces). Default: 0.0.0.0
-p _port_
Listen on TCP port. Default: 11300
-u _user_
Drop privileges and run as specified user after binding to port
-z _bytes_
Maximum job size in bytes. Default: 65535 (64KB)
-b _path_
Enable binlog for job persistence in the specified directory
-f _ms_
Sync binlog to disk every ms milliseconds (default 50ms, 0 for every write)
-s _bytes_
Maximum binlog file size in bytes. Default: 10485760 (10MB)
-v
Print version and exit
-V
Increase verbosity. Use once for basic, twice (-VV) for detailed logging
-h
Print help message with available options

FAQ

What is the beanstalkd command used for?

beanstalkd is a simple, fast work queue server. It provides a generic interface for managing job queues, originally designed for reducing latency in high-volume web applications by running time-consuming tasks asynchronously. Jobs are pushed to the queue by producers and reserved by workers (consumers) for processing. The protocol supports job priorities, delays, time-to-run limits, and multiple named tubes (queues).

How do I run a basic beanstalkd example?

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

What does -l _addr_ do in beanstalkd?

Listen on address (IP or 0.0.0.0 for all interfaces). Default: 0.0.0.0