2017-03-10 119 views
0

如何將reduman與redis用於持久隊列?如何使用redis與gearman進行持久性

我想爲centos7運行它。 我有Gearman工作。 在運行

gearmand -h 

我可以看到 libsqlite3, 的Postgres, libtokyocabinet和 MySQL的支持。

我已經安裝hiredis使用yum作爲各種論壇,雖然我無法弄清楚如何通過終端運行它。 我爲gearman下載了tar文件,並試圖在gearman文件夾中運行這個命令無濟於事。

./configure --enable-FEATURE sql 

回答

0

要與hiredis持久性隊列建立gearmand您必須安裝在Debian/Ubuntu的軟件包在CentOS libhiredis-devellibhiredis-dev

投保./configure --enable-hiredis輸出包含

checking hiredis/hiredis.h usability... yes 
checking hiredis/hiredis.h presence... yes 
checking for hiredis/hiredis.h... yes 
checking for main in -lhiredis... yes 

要使用Redis的查詢類型來看運行gearmand: gearmand --verbose DEBUG --queue-type redis