Installing Gearman application framework on Debian Linux

Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages.

Download Gearman from the download page or Launchpad (example below).

$ cd /tmp
$ wget

Make sure you check the md5 checksum of the downloaded file and compare it with the one mentioned on the downloads page (link can be found next to the file you downloaded on Launchpad).

$ tar xzf gearmand-0.14.tar.gz
$ cd gearmand-0.14

Here are the software I installed before installing Gearman. You can also compile and install libevent using the instructions detailed in How to install libevent on Debian/Ubuntu/Centos Linux.

# apt-get install libevent-devel
# apt-get install uuid-dev

Configure and install Gearman in /opt/gearman directory (you can change the directory if you will).

$ ./configure --prefix=/opt/gearman --enable-coverage --enable-dtrace --enable-profiling
$ make
# make install

Running Gearman in deamon mode as user username (replace it with the user you want to use):

/opt/gearmand/sbin/gearmand -u username -d

Did this tutorial help a little? How about buy me a cup of coffee?

Buy me a coffee at

Please feel free to use the comments form below if you have any questions or need more explanation on anything. I do not guarantee a response.

IMPORTANT: You must thoroughy test any instructions on a production-like test environment first before trying anything on production systems. And, make sure it is tested for security, privacy, and safety. See our terms here.