這里會顯示出您選擇的修訂版和當前版本之間的差別。
后一修訂版 | 前一修訂版 | ||
en:razor:enable-redis-in-cobub-razor [2015/03/19 15:25] cobub created |
en:razor:enable-redis-in-cobub-razor [2017/07/14 11:18] (當前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ~~Title:Cobub Razor Enable Redis in Cobub Razor - Mobile Apps Marketing Platform of Open Source - Mobile Analytics & Mobile Push Notification Solutions - Cobub Mobile Developer Center~~ | ||
+ | {{description>Cobub Razor is an Open Source Mobile Analytics. Download, extract and compile latest stable Redis with:.}} | ||
+ | {{keywords>Cobub Razor,open source mobile analytics,mobile analytics,mobile app analytics, redis}} | ||
+ | |||
====== Enable Redis in Cobub Razor ====== | ====== Enable Redis in Cobub Razor ====== | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Download, extract and compile latest stable Redis with: | ||
+ | <code>$ wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz | ||
+ | $ tar xzf redis-2.4.14.tar.gz | ||
+ | |||
+ | $ cd redis-2.4.14 | ||
+ | |||
+ | $ make</code> | ||
+ | The binaries that are now compiled are available in the src directory. Run Redis with: | ||
+ | <code>$ src/redis-server</code> | ||
+ | You can interact with Redis using the built-in client: | ||
+ | <code>$ src/redis-cli | ||
+ | |||
+ | redis> set foo bar | ||
+ | |||
+ | OK | ||
+ | |||
+ | redis> get foo | ||
+ | |||
+ | "bar"</code> | ||
+ | More Info : http://redis.io/ | ||
===== Enable Redis in Cobub Razor ===== | ===== Enable Redis in Cobub Razor ===== | ||
+ | 1. Redis server configuration | ||
- | ===== Basic Architecture ===== | + | Configure Redis server info under /application/config/redis.php? |
+ | {{:en:razor:20150319-074355.png}} | ||
+ | 2. Enable Redis in Cobub Razor | ||
+ | |||
+ | Set redis variable to 1 to enable Redis in Razor under application/config/config.php | ||
+ | {{:en:razor:20150319-074409.png}} | ||
+ | |||
+ | 3. Set Redis Que Processing Interval | ||
+ | |||
+ | Razor use Redis to queue the data posted by client. You can set process queue interval under /application/config/config.php | ||
+ | {{:en:razor:20150319-074423.png}} | ||
+ | ===== Basic Architecture ===== | ||
+ | {{:en:razor:20150319-074549.png}} |