gearman mysql 扩展_Mac 下安装 Gearman 以及对应的 PHP 扩展

Allowedoptions:Allowedoptions:一般选项:-b[--backlog]arg(=32)Numberof backlog connectionsforlisten.-d[--daemon]守护进程模式。立即结束命令行,在后台运行gearmand--exceptions默认启用协议层的异常Enableprotocol exceptionsbydefault.-f[--file-descriptors]arg进程最大可用的文件描述符数(总连接数会比这个数字略少)默认使用的是当前用户最大可用数。-h[--help]打印出这份帮助文档。-j[--job-retries]arg(=0)在任务服务器移除任务之前尝试执行的最大次数。设置这个值这可以确保那些糟糕的任务不会crash掉所有的工作线程。默认值是0(即不限制次数)。--job-handle-prefix arg用于生成任务处理器的字符串前缀。如果没有提供,默认值是“H:。--hashtable-buckets arg(=991)内部用于存放任务的哈希表(hash tables)的容量默认使用的是991,可以支持包含300万个任务的队列。如果预计队列中的任务数将超过300万,请按比例设置一个更大的数字。例如,为了容纳2^32个任务,本参数可设置为1733003。这会消耗大约26MB的额外内存。到目前为止,`Gearmand`暂不支持超过2^32个任务的队列。--keepalive启用链接保持--keepalive-idle arg(=-1)如果启用了链接保持(--keepalive),请在支持TCP_KEEPIDLE的系统上设置这个参数。如果设置为-1,则表示当系统不支持或者获取默认值事发生错误使用该值。Ifkeepaliveisenabled,setthe valueforTCP_KEEPIDLEforsystems that

support it.A value of-1means that

either the system doesnotsupport itoran error occurredwhentrying to

retrieve thedefaultvalue.--keepalive-interval arg(=-1)如果启用了链接保持(--keepalive),请在支持TCP_KEEPINTVL的系统上设置这个参数。如果设置为-1,则表示当系统不支持或者获取默认值事发生错误使用该值。Ifkeepaliveisenabled,setthe valueforTCP_KEEPINTVLforsystems that

support it.A value of-1means that

either the system doesnotsupport itoran error occurredwhentrying to

retrieve thedefaultvalue.--keepalive-count arg(=-1)如果启用了链接保持(--keepalive),请在支持TCP_KEEPCNT的系统上设置这个参数。如果设置为-1,则表示当系统不支持或者获取默认值事发生错误使用该值。Ifkeepaliveisenabled,setthe valueforTCP_KEEPCNTforsystems that

support it.A value of-1means that

either the system doesnotsupport itoran error occurredwhentrying to

retrieve thedefaultvalue.-l[--log-file]arg(=/usr/local/Cellar/gearman/1.1.9/var/log/gearmand.log)用于写入错误日志和提示信息的日志文件。如果使用'stderr'作为该参数的值,则会输出到stderr。如果设置为'none',则不会生成日志文件。Logfile to write errorsandinformation to.Ifthe log-file

parameterisspecifiedas'stderr',thenoutput will go to stderr.If'none',thennologfile will be

generated.-L[--listen]arg服务器监听的地址,默认是任意地址(INADDR_ANY)Addressthe server should listen on.DefaultisINADDR_ANY.-P[--pid-file]arg(=/usr/local/Cellar/gearman/1.1.9/var/gearmand.pid)用于写入进程ID的文件Fileto write process IDoutto.-r[--protocol]arg加载指定协议模块Loadprotocolmodule.-R[--round-robin]按照工作线程连接服务器的顺序来分配任务。默认值是按照函数添加到工作线程的顺序来分配任务。Assignworkinround-robin order per

worker connection.Thedefaultisto

assign workinthe order of functions

addedbythe worker.-q[--queue-type]arg(=builtin)指定持久化队列的类型。默认使用内建的队列。Persistentqueue type touse.--config-file arg(=/usr/local/Cellar/gearman/1.1.9/etc/gearmand.conf)也可以使用`@name`来指定。Canbe specifiedwith'@name',too--syslog使用系统日志(syslog)。Usesyslog.--coredump是否为未捕捉的信号创建一个核心转储。Whetherto create a coredumpforuncaught signals.-t[--threads]arg(=4)I/O线程的个数,如设置为0`gearmand`将尝试猜测它能用的最大线程数。默认是4。Numberof I/O threads touse,0means

that gearmand willtryto guess the

maximum number it canuse.Default=4.-u[--user]arg启动后切换到给定的用户Switchto given user after startup.--verbose arg(=ERROR)设置日志记录级别Setverbose level(FATAL,ALERT,CRITICAL,ERROR,WARNING,NOTICE,INFO,DEBUG).-V[--version]显示`gearmand`的版本号并退出。Displaythe version of gearmandandexit.-w[--worker-wakeup]arg(=0)当接收到任务时唤醒多少个工作线程。默认会唤醒所有可用的工作线程。Numberof workers to wakeupforeach

job received.Thedefaultisto wakeup

all available workers.HTTP:--http-port arg(=8080)监听的HTTP端口号Portto listen on.Gear:-p[--port]arg(=4730)服务将监听的端口号。(Portthe server should listen on.--ssl启用SSL连接(Enablessl connections.--ssl-ca-file arg用于SSL连接的CA文件。(CA file.--ssl-certificate arg SSL证书(SSL certificate.--ssl-key arg SSL证书的密钥。(SSL keyforcertificate.builtin:libmemcached:--libmemcached-servers arg要使用的`Memcached`服务器列表。ListofMemcachedservers touse.libsqlite3:--libsqlite3-db arg使用的数据库文件。Databasefile touse.--store-queue-on-shutdown关闭时持久化队列。Storequeue on shutdown.--libsqlite3-table arg(=gearman_queue)使用的表名,默认是`gearman_queue`。Tabletouse.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值