【转】Gearman php extension on ubuntu

http://con.cept.me/blog/post/7/install-gearman-php-extension-on-ubuntu

 

Gearman is a really cool job queue to deal with processes that are too heavy to be done on only one server. By default the php extension for Gearman will not compile on Ubuntu 10.10 here is how to get it working.

Let's get pecl


1
sudo apt-get install php-pear

We need the php dev package to compile extensions


1
sudo apt-get install php5-dev

Now we need to open the backports to get the latest version


1
sudo nano /etc/apt/sources .list

Uncomment the following 2 lines


1
2
deb http://nl.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

Install gearman


1
sudo apt-get install gearman libgearman-dev gearman-tools uuid-dev

Install the php extension


1
sudo pecl install channel: //pecl .php.net /gearman-0 .7.0

Create the ini file for php extension

1
sudo nano /etc/php5/conf .d /gearman .ini

Add the extension file in it.

1
2
;Gearman extension
extension=gearman.so

Now check to see if it's installed

1
php -m | grep gearman
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值