<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>[Thin](http://code.macournoyer.com/thin/)
&#12399;&#12289;&#26368;&#36817;&#35441;&#38988;&#12398;&#36605;&#37327;&#12539;&#39640;&#36895;&#12364;&#22770;&#12426;&#12398;Web&#12469;&#12540;&#12496;&#12391;&#12377;&#12290;

&gt;Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history:
&gt; * the Mongrel parser, the root of Mongrel speed and security
&gt; * Event Machine, a network I/O library with extremely high scalability, performance and stability
&gt; * Rack, a minimal interface between webservers and Ruby frameworks

&#12392;&#12356;&#12358;&#12371;&#12392;&#12391;&#12289;
Rails&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12391;Thin&#12434;&#20351;&#12358;&#26041;&#27861;&#12434;&#12513;&#12514;&#12375;&#12390;&#12362;&#12365;&#12414;&#12377;&#12290;
&#20309;&#12399;&#12392;&#12418;&#12354;&#12428;&#12289;&#12414;&#12378;&#12399;`sudo gem install thin`&#12391;
thin&#12434;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12375;&#12414;&#12377;&#12290;
&#12354;&#12392;&#12399;&#12289;RAILS_ROOT&#12391;

shell&gt;&gt;
$ thin start
&lt;&lt;--

&#12377;&#12427;&#12384;&#12369;&#12391;OK&#12391;&#12377;&#12290;&#38750;&#24120;&#12395;&#31777;&#21336;&#12391;&#12377;&#12290;
thin&#12467;&#12510;&#12531;&#12489;&#12398;&#12458;&#12503;&#12471;&#12519;&#12531;&#12399;&#20197;&#19979;&#12398;&#36890;&#12426;&#12290;

pre&gt;&gt;
Usage: thin [options] start|stop|restart

Server options:
  -a, --address HOST     bind to HOST address
                         (default: 0.0.0.0)
  -p, --port PORT        use PORT (default: 3000)
  -e, --environment ENV  Rails environment
                         (default: development)
  -c, --chdir PATH       Change to dir before starting
  -s, --servers NUM      Number of servers to start
                         set a value &gt;1 to start a cluster
  -d, --daemonize        Run daemonized in the background
  -l, --log FILE         File to redirect output
                         (default: log/thin.log)
  -P, --pid FILE         File to store PID
                         (default: tmp/pids/thin.pid)
  -t, --timeout SEC      Request or command timeout in sec
                         (default: 60)
  -u, --user NAME        User to run daemon as (use with -g)
  -g, --group NAME       Group to run daemon as (use with -u)

Common options:
  -D, --debug                      Set debbuging on
  -h, --help                       Show this message
  -v, --version                    Show version
&lt;&lt;--

&#35211;&#12390;&#12398;&#36890;&#12426;&#12289;&#12487;&#12501;&#12457;&#12523;&#12488;&#35373;&#23450;&#12399;Rails&#12450;&#12503;&#12522;&#12465;&#12540;&#12471;&#12519;&#12531;&#12395;
&#26368;&#36969;&#21270;&#12373;&#12428;&#12390;&#12356;&#12414;&#12377;&#12290;</body>
  <cached-tag-list>thin howto memo</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-02-16T12:48:02+00:00</created-at>
  <daily-archive-id type="integer">427</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">360</id>
  <monthly-archive-id type="integer">41</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink>/articles/360</permalink>
  <published-at type="datetime">2008-02-16T12:48:15+00:00</published-at>
  <secret>b096c452-f725-478f-b4f9-463da315cd0f</secret>
  <title>&#36605;&#37327;&#12539;&#39640;&#36895;Web&#12469;&#12540;&#12496;Thin&#12434;&#20351;&#12358;&#25163;&#38918;&#12398;&#12513;&#12514;</title>
  <updated-at type="datetime">2008-02-16T12:48:15+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
