0

私は、Rails 3 アプリケーションの CentOS サーバーで、resque バックグラウンド処理を本番環境で動作させたいと考えています。

次に、redis を監視し、bluepill で resque したいと考えています。

resque の本番環境に redis をインストールする最良の方法は何ですか? また、redis と resque の .pill ファイルを取得する人はいますか?

ありがとうリック

4

2 に答える 2

0

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

  • redis user needs to own the pid directory to write the pid, otherwise it'll silently fail in daemon mode:

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

  • then direct creation of pid to the new directoy in the init.d script as well as the redis.conf file:

/var/run/redis/redis.pid as opposed to /var/run/redis.pid

于 2015-02-26T03:01:04.613 に答える
0

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 用に残しておきます:)

于 2011-07-24T02:20:11.853 に答える