Created
March 25, 2014 09:41
-
-
Save himelnagrana/9758209 to your computer and use it in GitHub Desktop.
Installing Gearman Job Server and worker in Ubuntu or Mint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
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
this one is also needed for compiling: