2008-01-01から1年間の記事一覧

Apacheのログをローテションさせる

# vi /etc/logrotate.d/apache/usr/local/apache2/logs/access_log { postrotate /bin/kill -HUP `cat /usr/local/apache2/logs/httpd.pid 2> /dev/null` 2> /dev/null endscript } /usr/local/apache2/logs/error_log { postrotate /bin/kill -HUP `cat /us…

Railsで作成したものを実行形式に変換する

『RubyScript2Exe』を使用する http://www.erikveen.dds.nl/distributingrubyapplications/rails.html下記コマンドを実行 # gem install tar2rubyscript # gem install rubyscript2exe 『Exerb』というのもある http://exerb.sourceforge.jp/man/README.ja.h…