This page covers common configuration steps for Beanstalkd deployments.
| File | Purpose | Location |
|---|---|---|
/etc/default/beanstalkd |
Service configuration | Debian/Ubuntu |
/etc/sysconfig/beanstalkd |
Service configuration | RHEL/CentOS |
Edit /etc/default/beanstalkd:
# Start beanstalkd
START=yes
# Listen address (0.0.0.0 for all interfaces)
ADDR=0.0.0.0
# Listen port (default: 11300)
PORT=11300
# Run as user
USER=beanstalkd
# Binlog directory for persistence (optional)
BINLOG_DIR=/var/lib/beanstalkd/binlog
# Binlog size in bytes (optional)
BINLOG_MAXSIZE=10485760
| Option | Description |
|---|---|
-p PORT |
Listen port (default: 11300) |
-l ADDR |
Listen address (default: 127.0.0.1) |
-u USER |
Run as user |
-z SIZE |
Maximum job size in bytes |
-b PATH |
Binlog directory for persistence |
-f MS |
Binlog fsync interval (milliseconds) |
beanstalkd -b /var/lib/beanstalkd/binlog -f 5000
Restart Beanstalkd after configuration changes:
sudo systemctl restart beanstalkd
# Check service status
sudo systemctl status beanstalkd
# Test connection and get stats
echo "stats" | nc localhost 11300
# Check version
beanstalkd -h
# Use telnet or a client to interact
telnet localhost 11300
# List tubes
list-tubes
# Use a specific tube
use my-tube
# Put a job
put 0 0 60 5
hello