私は、Rails 3 アプリケーションの CentOS サーバーで、resque バックグラウンド処理を本番環境で動作させたいと考えています。
次に、redis を監視し、bluepill で resque したいと考えています。
resque の本番環境に redis をインストールする最良の方法は何ですか? また、redis と resque の .pill ファイルを取得する人はいますか?
ありがとうリック
私は、Rails 3 アプリケーションの CentOS サーバーで、resque バックグラウンド処理を本番環境で動作させたいと考えています。
次に、redis を監視し、bluepill で resque したいと考えています。
resque の本番環境に redis をインストールする最良の方法は何ですか? また、redis と resque の .pill ファイルを取得する人はいますか?
ありがとうリック
A few of my notes on the linode Redis article:
https://www.linode.com/docs/databases/redis/redis-on-centos-5/
When wgetting redis:
You could link directly to the latest stable version of redis:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
mkdir /var/run/redis
chown redis:redis /var/run/redis
init.d
script as well as the redis.conf
file:/var/run/redis/redis.pid
as opposed to /var/run/redis.pid
Linode ライブラリには、CentOS 5 への Redis のインストールに関する優れた記事があり、Resque の Github ページは Resque の優れたリソースです。
Redis ブルーピル:
Bluepill.application("アプリ名") do |アプリ| app.process("redis") do |プロセス| 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 終わり
Bluepill の構文はかなり単純なので、.pill は Resque 用に残しておきます:)