Skip to content

Instantly share code, notes, and snippets.

@hemantshekhawat
Created August 31, 2017 06:22
Show Gist options
  • Save hemantshekhawat/a015214996e6977c098250ed6d3fa938 to your computer and use it in GitHub Desktop.
Save hemantshekhawat/a015214996e6977c098250ed6d3fa938 to your computer and use it in GitHub Desktop.
Gearman Server With Linux Machine
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 gperf libevent-dev uuid-dev libmysqlclient-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
echo "Checking ... \n";
echo "\n to check if gearman is installed"
gearmand -V
echo "\n to check if gearman job server is running as service or not -- if not then run it";
ps aux | grep gearman
echo "to check if gearman extension for php is installed and loaded or not in the command line"
php -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment