Adding Gearman to a machine requires two steps: building and starting the daemon and building the PHP extension to match your version of PHP.
向一个机器添加Gearman需要两步:第一步构建并启动这个守护程序,第二步构建与PHP版本相匹配的PHP扩展。
Assuming that you host your PHP applications on a typical LAMP configuration, Gearman requires an additional daemon and a PHP extension.
假设您将PHP应用程序托管在一个典型的LAMP配置上,那么Gearman将需要一个额外的守护程序以及一个PHP扩展。
Using Gearman from PHP is similar to the previous example, except that you create the producer and consumer actors in PHP.
从PHP使用Gearman类似于之前的示例,惟一的区别在于这里是在php内创建producer和consumer。
As of November 2009, the latest version of the Gearman daemon is 0.10, and two PHP extensions are available - one that wraps the Gearman C library with PHP and one that's written in pure PHP.
截止到2009年11月,Gearman守护程序的最新版本是0.10,并且有两个PHP扩展可以用—一个用php包裹了Gearmanc库,另一个用纯PHP编写。
The Gearman library for PHP distributes work among a collection of machines.
PHP的Gearman库能把工作分发给一组机器。
Listing 1 shows a Gearman worker written in PHP.
清单1给出了用PHP编写的一个Gearmanworker。
Listing 1 shows a Gearman worker written in PHP.
清单1给出了用PHP编写的一个Gearmanworker。
应用推荐