タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

nginxに関するjhoshinaのブックマーク (3)

  • Apacheからnginxへ | バレで昼寝

    ご無沙汰しています、以前Apacheで静的ファイルを配信するときのチューニング方法について書きましたが、最近ではApacheはほぼ利用せず、nginxというサーバに切り替えました。動的ファイルの配信については未検証ですが、静的ファイルの配信はnginxが圧倒的にApacheに勝っています。特にメモリ使用率などの面で大きな違いがでます(これでサーバの台数も減らせるかな?)。これからサーバをたてる方、絶対に検討してみてください。 Apacheに劣らずモジュールも最近ではたくさん出ています。 user nginx nginx; # ここらへんはまだチューニングできそう worker_processes 5; error_log /var/log/nginx/error_log error; events { # ここらへんはまだチューニングできそう worker_connections

  • Slicehost Articles: CentOS - Adding an Nginx Init Script

    If you decided to install Nginx via source (see the previous article) you would have the latest and greatest version. However, one disadvantage of installing from source is that init scripts are not created. No problem, let's go ahead and create one for easy control of Nginx and to ensure it restarts on a reboot. Assumption I am assuming you have followed the previous article and installed Nginx f

  • nginxとUnicornでRackアプリを動かす : As Sloth As Possible

    どうやらUnicornというのが良いらしいという噂を聞きつけたので、どんなもんじゃろと試してみることにした。 Route 477 - 大規模Railsサイトのための新しいHTTPサーバ、Unicorn Unicornてのは何者なのかと言うと、Rack及びRailsに対応したRubyのWebアプリ用のHTTPサーバ。詳しくは上の記事を読んで下さい。githubでも使ってるそうだ。あと、名前が格好良い(あんまり関係ない)。 まずはunicornの設定 と言っても、gem install unicornしてconfig.ruがあるディレクトリでunicornコマンドを叩けば、thinとかと同じようにサーバが起動する。rackup互換のオプションも付いてるので特に悩むこともないと思う。あとは普通にApacheとかでプロキシの設定してやるなりなんなりすればすぐ使える。 それだけだと大して面白くないの

    nginxとUnicornでRackアプリを動かす : As Sloth As Possible
  • 1