poundをインストール
# apt-get install openssl $ wget http://www.apsis.ch/pound/Pound-2.1.tgz $ tar zxvf Pound-2.1.tgz $ cd Pound-2.1 $ ./configure --with-ssl=/etc/ssl/ $ make $ sudo make install [ -d /usr/local/sbin ] || mkdir /usr/local/sbin /usr/bin/install -c -o bin -g bin -m 555 -s pound /usr/local/sbin/pound [ -d /usr/local/man ] || mkdir /usr/local/man [ -d /usr/local/man/man8 ] || mkdir /usr/local/man/man8 /usr/bin/install -c -o bin -g bin -m 644 pound.8 /usr/local/man/man8/pound.8 $ sudo pound -V Password: Version 2.1 Exiting...
インストールできたらしい。
manに載っていたcfgファイルをてきとうなファイル名で作って
User "rails_user" Group "rails_user" ListenHTTP Address 192.168.23.131 Port 4000 Service BackEnd Address 127.0.0.1 Port 8000 End BackEnd Address 127.0.0.1 Port 8001 End BackEnd Address 127.0.0.1 Port 8002 End End End
poundを実行する前に念のため、mongrel_rails cluster::startでサーバ群を動かしておく。
# pound -f pound-sample.cfg
でpound実行。何にも出力されないのでpsで確認。
takeshi@debian:~$ ps ax | grep pound 2103 ? Ss 0:00 pound -f pound-sample.cfg 2104 ? S 0:00 pound -f pound-sample.cfg
ブラウザで確認・・・・動いてるっすー。わーい。
次はsslを試します。