如何用gearman配置mysql?
我已经在我的PC上安装了gearman。它也工作正常。但到目前为止它是非持久性存储,但我需要将其作为持久性存储。然后我计划将mysql配置到gearman中,但我无法可以。我不知道如何配置。 如果有人知道,请回复您的链接。如果有任何示例程序,那就更好了。
谢谢
I have installed gearman in my PC.Also its working fine.But as of now its was non persistence storage, but i need to make as a persistence storage.Then i have plan to configure mysql into gearman,but i did't able to do.I don't know how to configure.
If any one know kindly response with your link.If any example program it could be much better.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 libdrizzle (我认为默认情况下在 gearman 包中)作为客户端来访问 mysql 数据库。
使用这样的命令来启动 gearman 服务器,您应该有持久的队列。
/gearmand -q libdrizzle
--libdrizzle-主机=10.1.1.1
--libdrizzle-user=gearman
--libdrizzle-密码=秘密
--libdrizzle-db=some_db
--libdrizzle-table=gearman_queue
--libdrizzle-mysql
use libdrizzle (which I think is in the gearman packages by default) as the client to access your mysql database.
Use a command like this to start the gearman server and you should have persistent queues.
/gearmand -q libdrizzle
--libdrizzle-host=10.1.1.1
--libdrizzle-user=gearman
--libdrizzle-password=secret
--libdrizzle-db=some_db
--libdrizzle-table=gearman_queue
--libdrizzle-mysql