Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save himelnagrana/9758209 to your computer and use it in GitHub Desktop.
Save himelnagrana/9758209 to your computer and use it in GitHub Desktop.
Installing Gearman Job Server and worker in Ubuntu or Mint
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc autoconf bison flex libtool make libboost-all-dev libcurl4-openssl-dev curl libevent-dev uuid-dev
cd ~
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz
tar -xvf gearmand-1.1.12.tar.gz
cd gearmand-1.1.12
./configure
sudo make
sudo make install
sudo apt-get install gearman-job-server
sudo pecl install gearman
sudo nano /etc/php5/conf.d/gearman.ini [and then write extension=gearman.so as content of the file, save it and close it]
sudo service apache2 restart
Checking :
-----------
gearmand -V [to check if gearman is installed]
ps aux | grep gearman [to check if gearman job server is running as service or not -- if not then run it]
php -m [to check if gearman extension for php is installed and loaded or not in the command line]
@gigo6000
Copy link

gigo6000 commented Feb 4, 2015

this one is also needed for compiling:

apt-get install gperf

@galdiolo
Copy link

If you want persistent queues with libmysqlclient (see http://gearman.org/manual/job_server/#libmysqlclient), something else is needed:

if using MySQL:

sudo apt-get install libmysqlclient-dev

if using MariaDB:

sudo apt-get install libmariadbclient-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment