2011-07-11 39 views
0

我想在我的centos服務器上爲rails 3應用程序的生產中獲得resque後臺處理。redis和resque在生產

然後我想用bluepill監視redis和resque。

什麼是最好的方式安裝Redis的生產resque,也有人得到一個.pill文件的redis和resque?

感謝 裏克

回答

0

該圖書館的Linode有一個很好的文章關於installing Redis in CentOS 5,並Resque's Github page是Resque一個很好的資源。

Redis的Bluepill:

 
Bluepill.application("app-name") do |app| 
    app.process("redis") do |process| 
    process.start_command = "redis-server /path/to/redis.conf" 
    process.daemonize = true 
    process.pid_file = "/tmp/redis.pid" 
    process.start_grace_time = 3.seconds 
    process.stop_grace_time = 5.seconds 
    process.restart_grace_time = 8.seconds 
end 

Bluepill的語法是相當直接的,我會離開.pill爲Resque爲你試試:)

0

上的Linode Redis的幾個我的筆記文章:

https://www.linode.com/docs/databases/redis/redis-on-centos-5/

當wgetting的Redis: 您可以直接鏈接到的最新穩定版Redis的: wget http://download.redis.io/redis-stable.tar.gz tar xvzf redis-stable.tar.gz cd redis-stable make

  • Redis的用戶需要擁有PID目錄寫的PID,否則它會在後臺默默模式失敗:

mkdir /var/run/redis chown redis:redis /var/run/redis

  • 然後直接創造的在init.d腳本以及redis.conf文件中對新的directoy進行pid:

/var/run/redis/redis.pid而不是/var/run/redis.pid

相關問題