<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title># watch -d tail /var/log/ngsw.log &#187; サーバ</title>
	<atom:link href="http://ngsw.jp/category/serv/feed" rel="self" type="application/rss+xml" />
	<link>http://ngsw.jp</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 14:43:29 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>nginx -t の 実行で pid ファイルが生成される</title>
		<link>http://ngsw.jp/2012/02/01/serv/885.html</link>
		<comments>http://ngsw.jp/2012/02/01/serv/885.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 21:27:31 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=885</guid>
		<description><![CDATA[前提 Scientifc Linux 6.1 + nginx / yum 起動スクリプトを流用する » # watch -d tail /var/log/ngsw.log 検証 ソースみてみなきゃな話だなー。]]></description>
			<content:encoded><![CDATA[<div class="section">
<h3 id="hs_5957d87fdb233fc143225a5a165357fe_header_0"> 前提</h3>
<p><a href="http://ngsw.jp/2012/02/01/serv/877.html">Scientifc Linux 6.1 + nginx / yum 起動スクリプトを流用する » # watch -d tail /var/log/ngsw.log</a></p>
<h3 id="hs_5957d87fdb233fc143225a5a165357fe_header_1"> 検証</h3>
<div id="gist-1713005" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'># nginx -V 2&gt;&amp;1  |grep --color &#39;\-\-pid-path.*.pid&#39;</div><div class='line' id='LC2'>&nbsp;&nbsp;(snip)</div><div class='line' id='LC3'>&nbsp;&nbsp;--pid-path=/var/run/nginx/nginx.pid</div><div class='line' id='LC4'>&nbsp;&nbsp;(snip)</div><div class='line' id='LC5'><br/></div><div class='line' id='LC6'># ls /var/run/nginx/nginx.pid</div><div class='line' id='LC7'>&nbsp;&nbsp;ls: cannot access /var/run/nginx/nginx.pid: そのようなファイルやディレクトリはありません</div><div class='line' id='LC8'><br/></div><div class='line' id='LC9'># nginx -t</div><div class='line' id='LC10'>&nbsp;&nbsp;nginx: the configuration file /etc/nginx/nginx.conf syntax is ok</div><div class='line' id='LC11'>&nbsp;&nbsp;nginx: configuration file /etc/nginx/nginx.conf test is successful</div><div class='line' id='LC12'><br/></div><div class='line' id='LC13'># ls /var/run/nginx/nginx.pid</div><div class='line' id='LC14'>&nbsp;&nbsp;/var/run/nginx/nginx.pid</div><div class='line' id='LC15'><br/></div><div class='line' id='LC16'># ?(´・ω・`)?</div><div class='line' id='LC17'><br/></div><div class='line' id='LC18'># /etc/init.d/nginx status</div><div class='line' id='LC19'>&nbsp;&nbsp;nginx が停止していますが PID ファイルが残っています</div><div class='line' id='LC20'><br/></div><div class='line' id='LC21'># ?(´・ω・`)?</div><div class='line' id='LC22'><br/></div><div class='line' id='LC23'># /etc/init.d/nginx stop</div><div class='line' id='LC24'>&nbsp;&nbsp;nginx を停止中:                                            [失敗]</div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'># ??(´・ω・`)??</div><div class='line' id='LC27'><br/></div><div class='line' id='LC28'># ls  /var/run/nginx/nginx.pid</div><div class='line' id='LC29'>&nbsp;&nbsp;ls: cannot access /var/run/nginx/nginx.pid: そのようなファイルやディレクトリはありません</div><div class='line' id='LC30'><br/></div><div class='line' id='LC31'># こういうものですか?</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1713005/1456a93aa85eb3cb4ad8c6d8e37e76ec73ed51d5/nginx_t" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1713005#file_nginx_t" style="float:right;margin-right:10px;color:#666">nginx_t</a>
            <a href="https://gist.github.com/1713005">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>ソースみてみなきゃな話だなー。
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2012/02/01/serv/885.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scientifc Linux 6.1 + nginx  / yum 起動スクリプトを流用する</title>
		<link>http://ngsw.jp/2012/02/01/serv/877.html</link>
		<comments>http://ngsw.jp/2012/02/01/serv/877.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 20:57:58 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ScientificLinux]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=877</guid>
		<description><![CDATA[ようやくわかった passenger_ruby /home/USER/.rbnev/versions/1.9.3-p0/bin/ruby; を passenger_ruby /home/USER/.rbnev/shims <a href='http://ngsw.jp/2012/02/01/serv/877.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
<h3 id="hs_71a809b626bfd4ad197997cd077cc9de_header_0"> ようやくわかった</h3>
<p>passenger_ruby /home/USER/.rbnev/versions/1.9.3-p0/bin/ruby;<br />
を<br />
passenger_ruby /home/USER/.rbnev/shims/ruby;<br />
としていたため。とりあえずベタ書きで対応。</p>
<p>稼動しているサーバから持ってきた設定であったが、<br />
おそらく以下のようなdot-file設定等々に影響してるのだろうな、と。<br />
export PATH=&#8221;$HOME/.rbenv/bin:$PATH&#8221;<br />
eval &#8220;$(rbenv init -)&#8221;<br />
source ~/.rbenv/completions/rbenv.bash<br />
</p>
<p><del datetime="2012-02-05T18:59:01+00:00"><br />
今気がついて、まだ直せていない<br />
</del><br />
<del datetime="2012-02-05T18:59:01+00:00"><br />
/etc/init.d/nginx で起動すると<br />
/home/USER/.rbenv/shims/ruby: line 4: exec: rbenv: not found<br />
がnginxのerror_logに出続けるので修正する<br />
例えば http://exmaple.com/ にアクセスするとして<br />
Cannot spawn application &#8216;/path/to/rails_root&#8217;: Could not read from the spawn server: Connection reset by peer (104)<br />
というエラーがでる<br />
/usr/local/nginx/sbin/nginx も /etc/init.d.nginx start も<br />
期待通りの挙動を示していないため、passengerとの連携に問題があると言えそう。<br />
WEBRICK単独ではsinatraさんは期待通りに動いてくれている。<br />
</del><br />
<span id="more-877"></span></p>
<h3 id="hs_71a809b626bfd4ad197997cd077cc9de_header_1"> 最初の小細工</h3>
<div id="gist-1712873" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'># yum install nginx</div><div class='line' id='LC2'># cp -a /etc/init.d/nginx /bkup/path/to/</div><div class='line' id='LC3'># yum remove nginx</div><div class='line' id='LC4'># cp -a /bkup/path/to/nginx{,.yum-org}</div><div class='line' id='LC5'># vim /bkup/path/to/nginx </div><div class='line' id='LC6'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1712873/f646a9f4e7998bfbdb18fedb6141b6fbe8dfc971/gistfile1.txt" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1712873#file_gistfile1.txt" style="float:right;margin-right:10px;color:#666">gistfile1.txt</a>
            <a href="https://gist.github.com/1712873">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<h3 id="hs_71a809b626bfd4ad197997cd077cc9de_header_2"> config option(<a href="#hs_71a809b626bfd4ad197997cd077cc9de_footnote_1" id="hs_71a809b626bfd4ad197997cd077cc9de_footnotelink_1" title="--lock-path を以前のものから変更した">*1</a>)</h3>
<p><div id="gist-1712799" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>#https://gist.github.com/1712762</div><div class='line' id='LC2'>./configure \</div><div class='line' id='LC3'>--prefix=/usr/local/nginx \</div><div class='line' id='LC4'>--conf-path=/etc/nginx/nginx.conf \</div><div class='line' id='LC5'>--error-log-path=/var/log/nginx/error.log \</div><div class='line' id='LC6'>--pid-path=/var/run/nginx/nginx.pid \</div><div class='line' id='LC7'>&nbsp;--lock-path=/var/lock/subsys/nginx \</div><div class='line' id='LC8'>--user=nginx \</div><div class='line' id='LC9'>--group=nginx \</div><div class='line' id='LC10'>--with-http_stub_status_module \</div><div class='line' id='LC11'>--with-http_ssl_module \</div><div class='line' id='LC12'>--with-http_gzip_static_module \</div><div class='line' id='LC13'>--with-http_realip_module \</div><div class='line' id='LC14'>--http-log-path=/var/log/nginx/access.log \</div><div class='line' id='LC15'>--http-client-body-temp-path=/var/tmp/nginx/client/ \</div><div class='line' id='LC16'>--http-proxy-temp-path=/var/tmp/nginx/proxy/ \</div><div class='line' id='LC17'>--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \</div><div class='line' id='LC18'>--with-cc-opt=&#39;-Wno-error&#39; \</div><div class='line' id='LC19'>--add-module=&#39;/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/nginx&#39; \</div><div class='line' id='LC20'>&amp;&amp; make</div><div class='line' id='LC21'><br/></div><div class='line' id='LC22'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1712799/7e26f676bef317ce72a38461e2c945b4e7c164e3/gistfile1.txt" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1712799#file_gistfile1.txt" style="float:right;margin-right:10px;color:#666">gistfile1.txt</a>
            <a href="https://gist.github.com/1712799">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
<br />
</p>
<h3 id="hs_71a809b626bfd4ad197997cd077cc9de_header_3"> yum 版 nginx との差分</h3>
<p><div id="gist-1712762" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>--- nginx.yum-org	2011-12-16 00:22:28.000000000 +0900</div><div class='line' id='LC2'>+++ nginx	2012-02-01 04:10:39.447206296 +0900</div><div class='line' id='LC3'>@@ -6,7 +6,7 @@</div><div class='line' id='LC4'>&nbsp;# processname: nginx</div><div class='line' id='LC5'>&nbsp;# config: /etc/nginx/nginx.conf</div><div class='line' id='LC6'>&nbsp;# config: /etc/sysconfig/nginx</div><div class='line' id='LC7'>-# pidfile: /var/run/nginx.pid</div><div class='line' id='LC8'>+# pidfile: /var/run/nginx/nginx.pid</div><div class='line' id='LC9'>&nbsp;# description: nginx is a HTTP and reverse proxy server</div><div class='line' id='LC10'>&nbsp;#</div><div class='line' id='LC11'>&nbsp;### BEGIN INIT INFO</div><div class='line' id='LC12'>@@ -28,10 +28,10 @@</div><div class='line' id='LC13'>&nbsp;fi</div><div class='line' id='LC14'>&nbsp;</div><div class='line' id='LC15'>&nbsp;prog=nginx</div><div class='line' id='LC16'>-nginx=${NGINX-/usr/sbin/nginx}</div><div class='line' id='LC17'>+nginx=${NGINX-/usr/local/nginx/sbin/nginx}</div><div class='line' id='LC18'>&nbsp;conffile=${CONFFILE-/etc/nginx/nginx.conf}</div><div class='line' id='LC19'>&nbsp;lockfile=${LOCKFILE-/var/lock/subsys/nginx}</div><div class='line' id='LC20'>-pidfile=${PIDFILE-/var/run/nginx.pid}</div><div class='line' id='LC21'>+pidfile=${PIDFILE-/var/run/nginx/nginx.pid}</div><div class='line' id='LC22'>&nbsp;SLEEPMSEC=100000</div><div class='line' id='LC23'>&nbsp;RETVAL=0</div><div class='line' id='LC24'>&nbsp;</div><div class='line' id='LC25'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1712762/12ef9f44967b7ebf95d7d18a0b8738b3283338a1/gistfile1.txt" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1712762#file_gistfile1.txt" style="float:right;margin-right:10px;color:#666">gistfile1.txt</a>
            <a href="https://gist.github.com/1712762">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
<br />
</p>
<h3 id="hs_71a809b626bfd4ad197997cd077cc9de_header_4"> 修正後の nginx 起動スクリプト</h3>
<div id="gist-1712767" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>#!/bin/sh</div><div class='line' id='LC2'>#</div><div class='line' id='LC3'># nginx        Startup script for nginx</div><div class='line' id='LC4'>#</div><div class='line' id='LC5'># chkconfig: - 85 15</div><div class='line' id='LC6'># processname: nginx</div><div class='line' id='LC7'># config: /etc/nginx/nginx.conf</div><div class='line' id='LC8'># config: /etc/sysconfig/nginx</div><div class='line' id='LC9'># pidfile: /var/run/nginx/nginx.pid</div><div class='line' id='LC10'># description: nginx is a HTTP and reverse proxy server</div><div class='line' id='LC11'>#</div><div class='line' id='LC12'>### BEGIN INIT INFO</div><div class='line' id='LC13'># Provides: nginx</div><div class='line' id='LC14'># Required-Start: $local_fs $remote_fs $network</div><div class='line' id='LC15'># Required-Stop: $local_fs $remote_fs $network</div><div class='line' id='LC16'># Default-Start: 2 3 4 5</div><div class='line' id='LC17'># Default-Stop: 0 1 6</div><div class='line' id='LC18'># Short-Description: start and stop nginx</div><div class='line' id='LC19'>### END INIT INFO</div><div class='line' id='LC20'><br/></div><div class='line' id='LC21'># Source function library.</div><div class='line' id='LC22'>. /etc/rc.d/init.d/functions</div><div class='line' id='LC23'><br/></div><div class='line' id='LC24'>CONFFILE=&quot;/etc/nginx/nginx.conf&quot;</div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>if [ -f /etc/sysconfig/nginx ]; then</div><div class='line' id='LC27'>&nbsp;&nbsp;&nbsp;&nbsp;. /etc/sysconfig/nginx</div><div class='line' id='LC28'>fi</div><div class='line' id='LC29'><br/></div><div class='line' id='LC30'>prog=nginx</div><div class='line' id='LC31'>nginx=${NGINX-/usr/local/nginx/sbin/nginx}</div><div class='line' id='LC32'>conffile=${CONFFILE-/etc/nginx/nginx.conf}</div><div class='line' id='LC33'>lockfile=${LOCKFILE-/var/lock/subsys/nginx}</div><div class='line' id='LC34'>pidfile=${PIDFILE-/var/run/nginx/nginx.pid}</div><div class='line' id='LC35'>SLEEPMSEC=100000</div><div class='line' id='LC36'>RETVAL=0</div><div class='line' id='LC37'><br/></div><div class='line' id='LC38'>start() {</div><div class='line' id='LC39'>&nbsp;&nbsp;&nbsp;&nbsp;echo -n $&quot;Starting $prog: &quot;</div><div class='line' id='LC40'><br/></div><div class='line' id='LC41'>&nbsp;&nbsp;&nbsp;&nbsp;daemon --pidfile=${pidfile} ${nginx} -c ${conffile}</div><div class='line' id='LC42'>&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC43'>&nbsp;&nbsp;&nbsp;&nbsp;echo</div><div class='line' id='LC44'>&nbsp;&nbsp;&nbsp;&nbsp;[ $RETVAL = 0 ] &amp;&amp; touch ${lockfile}</div><div class='line' id='LC45'>&nbsp;&nbsp;&nbsp;&nbsp;return $RETVAL</div><div class='line' id='LC46'>}</div><div class='line' id='LC47'><br/></div><div class='line' id='LC48'>stop() {</div><div class='line' id='LC49'>&nbsp;&nbsp;&nbsp;&nbsp;echo -n $&quot;Stopping $prog: &quot;</div><div class='line' id='LC50'>&nbsp;&nbsp;&nbsp;&nbsp;killproc -p ${pidfile} ${prog}</div><div class='line' id='LC51'>&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC52'>&nbsp;&nbsp;&nbsp;&nbsp;echo</div><div class='line' id='LC53'>&nbsp;&nbsp;&nbsp;&nbsp;[ $RETVAL = 0 ] &amp;&amp; rm -f ${lockfile} ${pidfile}</div><div class='line' id='LC54'>}</div><div class='line' id='LC55'><br/></div><div class='line' id='LC56'>reload() {</div><div class='line' id='LC57'>&nbsp;&nbsp;&nbsp;&nbsp;echo -n $&quot;Reloading $prog: &quot;</div><div class='line' id='LC58'>&nbsp;&nbsp;&nbsp;&nbsp;killproc -p ${pidfile} ${prog} -HUP</div><div class='line' id='LC59'>&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC60'>&nbsp;&nbsp;&nbsp;&nbsp;echo</div><div class='line' id='LC61'>}</div><div class='line' id='LC62'><br/></div><div class='line' id='LC63'>upgrade() {</div><div class='line' id='LC64'>&nbsp;&nbsp;&nbsp;&nbsp;oldbinpidfile=${pidfile}.oldbin</div><div class='line' id='LC65'><br/></div><div class='line' id='LC66'>&nbsp;&nbsp;&nbsp;&nbsp;configtest -q || return 6</div><div class='line' id='LC67'>&nbsp;&nbsp;&nbsp;&nbsp;echo -n $&quot;Staring new master $prog: &quot;</div><div class='line' id='LC68'>&nbsp;&nbsp;&nbsp;&nbsp;killproc -p ${pidfile} ${prog} -USR2</div><div class='line' id='LC69'>&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC70'>&nbsp;&nbsp;&nbsp;&nbsp;echo</div><div class='line' id='LC71'>&nbsp;&nbsp;&nbsp;&nbsp;/bin/usleep $SLEEPMSEC</div><div class='line' id='LC72'>&nbsp;&nbsp;&nbsp;&nbsp;if [ -f ${oldbinpidfile} -a -f ${pidfile} ]; then</div><div class='line' id='LC73'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo -n $&quot;Graceful shutdown of old $prog: &quot;</div><div class='line' id='LC74'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;killproc -p ${oldbinpidfile} ${prog} -QUIT</div><div class='line' id='LC75'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC76'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo </div><div class='line' id='LC77'>&nbsp;&nbsp;&nbsp;&nbsp;else</div><div class='line' id='LC78'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $&quot;Upgrade failed!&quot;</div><div class='line' id='LC79'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return 1</div><div class='line' id='LC80'>&nbsp;&nbsp;&nbsp;&nbsp;fi</div><div class='line' id='LC81'>}</div><div class='line' id='LC82'><br/></div><div class='line' id='LC83'>configtest() {</div><div class='line' id='LC84'>&nbsp;&nbsp;&nbsp;&nbsp;if [ &quot;$#&quot; -ne 0 ] ; then</div><div class='line' id='LC85'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case &quot;$1&quot; in</div><div class='line' id='LC86'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-q)</div><div class='line' id='LC87'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FLAG=$1</div><div class='line' id='LC88'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC89'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*)</div><div class='line' id='LC90'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC91'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;esac</div><div class='line' id='LC92'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shift</div><div class='line' id='LC93'>&nbsp;&nbsp;&nbsp;&nbsp;fi</div><div class='line' id='LC94'>&nbsp;&nbsp;&nbsp;&nbsp;${nginx} -t -c ${conffile} $FLAG</div><div class='line' id='LC95'>&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC96'>&nbsp;&nbsp;&nbsp;&nbsp;return $RETVAL</div><div class='line' id='LC97'>}</div><div class='line' id='LC98'><br/></div><div class='line' id='LC99'>rh_status() {</div><div class='line' id='LC100'>&nbsp;&nbsp;&nbsp;&nbsp;status -p ${pidfile} ${nginx}</div><div class='line' id='LC101'>}</div><div class='line' id='LC102'><br/></div><div class='line' id='LC103'># See how we were called.</div><div class='line' id='LC104'>case &quot;$1&quot; in</div><div class='line' id='LC105'>&nbsp;&nbsp;&nbsp;&nbsp;start)</div><div class='line' id='LC106'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rh_status &gt;/dev/null 2&gt;&amp;1 &amp;&amp; exit 0</div><div class='line' id='LC107'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start</div><div class='line' id='LC108'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC109'>&nbsp;&nbsp;&nbsp;&nbsp;stop)</div><div class='line' id='LC110'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stop</div><div class='line' id='LC111'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC112'>&nbsp;&nbsp;&nbsp;&nbsp;status)</div><div class='line' id='LC113'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rh_status</div><div class='line' id='LC114'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=$?</div><div class='line' id='LC115'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC116'>&nbsp;&nbsp;&nbsp;&nbsp;restart)</div><div class='line' id='LC117'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;configtest -q || exit $RETVAL</div><div class='line' id='LC118'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stop</div><div class='line' id='LC119'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start</div><div class='line' id='LC120'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC121'>&nbsp;&nbsp;&nbsp;&nbsp;upgrade)</div><div class='line' id='LC122'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;upgrade</div><div class='line' id='LC123'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC124'>&nbsp;&nbsp;&nbsp;&nbsp;condrestart|try-restart)</div><div class='line' id='LC125'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if rh_status &gt;/dev/null 2&gt;&amp;1; then</div><div class='line' id='LC126'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stop</div><div class='line' id='LC127'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start</div><div class='line' id='LC128'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fi</div><div class='line' id='LC129'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC130'>&nbsp;&nbsp;&nbsp;&nbsp;force-reload|reload)</div><div class='line' id='LC131'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reload</div><div class='line' id='LC132'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC133'>&nbsp;&nbsp;&nbsp;&nbsp;configtest)</div><div class='line' id='LC134'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;configtest</div><div class='line' id='LC135'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;</div><div class='line' id='LC136'>&nbsp;&nbsp;&nbsp;&nbsp;*)</div><div class='line' id='LC137'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $&quot;Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|upgrade|reload|status|help|configtest}&quot;</div><div class='line' id='LC138'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RETVAL=2</div><div class='line' id='LC139'>esac</div><div class='line' id='LC140'><br/></div><div class='line' id='LC141'>exit $RETVAL</div><div class='line' id='LC142'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1712767/6b82a5cd295881508283e7503f702adb710c2a15/gistfile1.txt" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1712767#file_gistfile1.txt" style="float:right;margin-right:10px;color:#666">gistfile1.txt</a>
            <a href="https://gist.github.com/1712767">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
</div>
<div class="footnote">
<p id="hs_71a809b626bfd4ad197997cd077cc9de_footnote_1"><a href="#hs_71a809b626bfd4ad197997cd077cc9de_footnotelink_1">*1</a>: &#8211;lock-path を以前のものから変更した</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2012/02/01/serv/877.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scientifc Linux 6.1 + yum_setup &amp; rbenv &amp; passenger &amp; nginx / WordPress に Gist コードを埋め込む Embed GitHub Gist</title>
		<link>http://ngsw.jp/2012/01/31/serv/869.html</link>
		<comments>http://ngsw.jp/2012/01/31/serv/869.html#comments</comments>
		<pubDate>Mon, 30 Jan 2012 21:37:32 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rbenv]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ScientificLinux]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=869</guid>
		<description><![CDATA[WordPress に Gist コードを埋め込む Embed GitHub Gist WordPressのコード埋め込みはGistでいいんじゃないかな これいいと思った。 WordPress › Embed GitHu <a href='http://ngsw.jp/2012/01/31/serv/869.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
<h3 id="hs_f97d4fa554be2daf0d9e5181a490ae4f_header_0"> WordPress に Gist コードを埋め込む Embed GitHub Gist</h3>
<p><a href="http://fujitaiju.com/blog/wordpress/wordpress%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89%E5%9F%8B%E3%82%81%E8%BE%BC%E3%81%BF%E3%81%AFgist%E3%81%A7%E3%81%84%E3%81%84%E3%82%93%E3%81%98%E3%82%83%E3%81%AA%E3%81%84%E3%81%8B%E3%81%AA/">WordPressのコード埋め込みはGistでいいんじゃないかな</a><br />
これいいと思った。<br />
<a href="http://wordpress.org/extend/plugins/embed-github-gist/">WordPress › Embed GitHub Gist « WordPress Plugins</a></p>
<p>手順レベルのものを gist にぺたぺたしてるし、<br />
なによりシンタックスハイライト系がエンティティエンティティするからもういらついていらついて。</p>
<h3 id="hs_f97d4fa554be2daf0d9e5181a490ae4f_header_1"> こんな感じで VMware せこせこ作ってる</h3>
<p><div id="gist-1699869" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>yum install readline-devel.x86_64 libyaml.x86_64 tree nkf</div><div class='line' id='LC2'>yum install mysql mysql-server git</div><div class='line' id='LC3'>yum install readline-devel.x86_64 libyaml.x86_64 openssl-devel.x86_64 mysql-devel.x86_64</div><div class='line' id='LC4'>yum install gcc make zlib-devel gcc-c++</div><div class='line' id='LC5'><br/></div><div class='line' id='LC6'>git clone git://github.com/sstephenson/rbenv.git .rbenv</div><div class='line' id='LC7'>echo &#39;export PATH=&quot;$HOME/.rbenv/bin:$PATH&quot;&#39; &gt;&gt; $HOME/.bashrc</div><div class='line' id='LC8'>echo &#39;eval &quot;$(rbenv init -)&quot;&#39; &gt;&gt; $HOME/.bashrc</div><div class='line' id='LC9'>echo &quot;source ~/.rbenv/completions/rbenv.bash&quot; &gt;&gt; $HOME/.bashrc</div><div class='line' id='LC10'>cd $HOME</div><div class='line' id='LC11'>git clone git://github.com/sstephenson/ruby-build.git</div><div class='line' id='LC12'>cd $HOME/ruby-build</div><div class='line' id='LC13'>sudo ./install.sh</div><div class='line' id='LC14'><br/></div><div class='line' id='LC15'>rbenv-install 1.9.3-p0</div><div class='line' id='LC16'>rbenv global  1.9.3-p0</div><div class='line' id='LC17'>rbenv rehash</div><div class='line' id='LC18'>rbenv versions</div><div class='line' id='LC19'>rbenv exec gem install rails pry pry-doc</div><div class='line' id='LC20'><br/></div><div class='line' id='LC21'>cd /path/to/railsdir/</div><div class='line' id='LC22'><br/></div><div class='line' id='LC23'>cat &lt;&lt; EOS &gt; Gemfile</div><div class='line' id='LC24'>source &quot;http://rubygems.org&quot;</div><div class='line' id='LC25'>gem &quot;rails&quot;, &#39;~&gt;3.2.0.rc2&#39;</div><div class='line' id='LC26'>EOS</div><div class='line' id='LC27'><br/></div><div class='line' id='LC28'><br/></div><div class='line' id='LC29'>bundle install --path vendor/bundle</div><div class='line' id='LC30'>bundle exec rails new railsapp -d mysql</div><div class='line' id='LC31'>&nbsp;</div><div class='line' id='LC32'>rm -f Gemfile</div><div class='line' id='LC33'>rm -f Gemfile.lock</div><div class='line' id='LC34'>rm -rf .bundle</div><div class='line' id='LC35'><br/></div><div class='line' id='LC36'>cd railsapp</div><div class='line' id='LC37'>&nbsp;#Gemfile追記  gem &#39;therubyracer&#39;</div><div class='line' id='LC38'>bundle install --path vendor/bundle</div><div class='line' id='LC39'>bundle exec rails g scaffold post title:string body:text</div><div class='line' id='LC40'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1699869/d25580fef4e53fa929aa550309f538f8e49d67cd/bundle_ruby_rails" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1699869#file_bundle_ruby_rails" style="float:right;margin-right:10px;color:#666">bundle_ruby_rails</a>
            <a href="https://gist.github.com/1699869">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
<br />
<div id="gist-1730435" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'># sl は $releasever をベタ書き</div><div class='line' id='LC2'>cat &gt; /etc/yum.repos.d/nginx.repo &lt;&lt;&#39;nginxREPO&#39;</div><div class='line' id='LC3'>[nginx]</div><div class='line' id='LC4'>name=nginx repo</div><div class='line' id='LC5'>baseurl=http://nginx.org/packages/rhel/6/$basearch/</div><div class='line' id='LC6'>gpgcheck=0</div><div class='line' id='LC7'>enabled=1</div><div class='line' id='LC8'>nginxREPO</div><div class='line' id='LC9'><br/></div><div class='line' id='LC10'># ばっといれとく curl-devel は passenger あたりで言われる</div><div class='line' id='LC11'>yum install gcc pcre* zlib* openssl* gd* libpng* libjpeg* GeoIP* curl-devel</div><div class='line' id='LC12'><br/></div><div class='line' id='LC13'># /etc/init.d/nginx ファイルが欲しい</div><div class='line' id='LC14'>yum install nginx</div><div class='line' id='LC15'>cp -a /etc/init.d/nginx /root/</div><div class='line' id='LC16'>yum remove nginx</div><div class='line' id='LC17'><br/></div><div class='line' id='LC18'># rbenv 使ってるユーザで</div><div class='line' id='LC19'>$ rbenv exec gem install rake</div><div class='line' id='LC20'>$ rbenv exec gem install passenger</div><div class='line' id='LC21'><br/></div><div class='line' id='LC22'># nginx 入れる</div><div class='line' id='LC23'>export nginx_ver=&quot;1.1.14&quot;</div><div class='line' id='LC24'>export nginx_configure_script=&quot;nginx_configure_`echo ${nginx_ver}|sed -e &#39;s/\./_/g&#39;`.sh&quot;</div><div class='line' id='LC25'>mkdir /usr/local/src/NGINX/</div><div class='line' id='LC26'>cd /usr/local/src/NGINX</div><div class='line' id='LC27'>wget http://nginx.org/download/nginx-${nginx_ver}.tar.gz</div><div class='line' id='LC28'>tar zxvf nginx-${nginx_ver}.tar.gz</div><div class='line' id='LC29'><br/></div><div class='line' id='LC30'>echo &#39;#!/bin/sh</div><div class='line' id='LC31'><br/></div><div class='line' id='LC32'>NGINX=nginx-NGINX_VER</div><div class='line' id='LC33'>SOURCE_DIR=/usr/local/src/NGINX</div><div class='line' id='LC34'>id nginx || sudo useradd -s /sbin/nologin -d /usr/local/nginx -M nginx</div><div class='line' id='LC35'>&nbsp;</div><div class='line' id='LC36'>cd $SOURCE_DIR/$NGINX</div><div class='line' id='LC37'>[ -e &quot;$SOURCE_DIR/$NGINX/Makefile&quot; ] &amp;&amp; make clean</div><div class='line' id='LC38'>./configure \</div><div class='line' id='LC39'>&nbsp;&nbsp;--prefix=&quot;/usr/local/nginx&quot; \</div><div class='line' id='LC40'>&nbsp;&nbsp;--conf-path=/etc/nginx/nginx.conf \</div><div class='line' id='LC41'>&nbsp;&nbsp;--error-log-path=/var/log/nginx/error.log \</div><div class='line' id='LC42'>&nbsp;&nbsp;--pid-path=/var/run/nginx/nginx.pid \</div><div class='line' id='LC43'>&nbsp;&nbsp;--lock-path=/var/lock/nginx.lock \</div><div class='line' id='LC44'>&nbsp;&nbsp;--user=nginx \</div><div class='line' id='LC45'>&nbsp;&nbsp;--group=nginx \</div><div class='line' id='LC46'>&nbsp;&nbsp;--with-http_stub_status_module \</div><div class='line' id='LC47'>&nbsp;&nbsp;--with-http_ssl_module \</div><div class='line' id='LC48'>&nbsp;&nbsp;--with-http_gzip_static_module \</div><div class='line' id='LC49'>&nbsp;&nbsp;--with-http_realip_module \</div><div class='line' id='LC50'>&nbsp;&nbsp;--http-log-path=/var/log/nginx/access.log \</div><div class='line' id='LC51'>&nbsp;&nbsp;--http-client-body-temp-path=/var/tmp/nginx/client/ \</div><div class='line' id='LC52'>&nbsp;&nbsp;--http-proxy-temp-path=/var/tmp/nginx/proxy/ \</div><div class='line' id='LC53'>&nbsp;&nbsp;--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \</div><div class='line' id='LC54'>&nbsp;&nbsp;--with-cc-opt=&quot;-Wno-error&quot; \</div><div class='line' id='LC55'>&nbsp;&nbsp;--add-module=&quot;/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/nginx&quot; \</div><div class='line' id='LC56'>&amp;&amp; make</div><div class='line' id='LC57'>&#39; | sed -e &quot;s/NGINX_VER/${nginx_ver}/g&quot; &gt; /usr/local/src/${nginx_configure_script}</div><div class='line' id='LC58'><br/></div><div class='line' id='LC59'># でpassengerのコンパイルで使う rake を root が見つけられずで実行できないから、</div><div class='line' id='LC60'># /home/USER/.rbenv/shims を PATHに追加しちまったよ</div><div class='line' id='LC61'># このやり方賢くない……</div><div class='line' id='LC62'><br/></div><div class='line' id='LC63'>sh /usr/local/src/${nginx_configure_script}</div><div class='line' id='LC64'>cd /usr/local/src/NGINX/${nginx_ver}</div><div class='line' id='LC65'>make install</div><div class='line' id='LC66'><br/></div><div class='line' id='LC67'># とりあえずここまで</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1730435/220070c8ee3c4a6fd93aae824c59a11f98efca16/passenger%20&amp;%20nginx" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1730435#file_passenger &amp; nginx" style="float:right;margin-right:10px;color:#666">passenger &amp; nginx</a>
            <a href="https://gist.github.com/1730435">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2012/01/31/serv/869.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rbenv &#8211; rails + nginx + passenger</title>
		<link>http://ngsw.jp/2012/01/11/serv/856.html</link>
		<comments>http://ngsw.jp/2012/01/11/serv/856.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 19:16:09 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[サーバ]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rbenv]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=856</guid>
		<description><![CDATA[前提手順 rbenv – rails 環境作成 » # watch -d tail /var/log/ngsw.log 参考URL nginxとPassengerでRailsアプリを動かしたよ &#8211; Umeya <a href='http://ngsw.jp/2012/01/11/serv/856.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
<h3 id="hs_7783849567607e9382835418827e09b3_header_0"> 前提手順</h3>
<p><a href="http://ngsw.jp/2012/01/03/serv/840.html">rbenv – rails 環境作成 » # watch -d tail /var/log/ngsw.log</a></p>
<h3 id="hs_7783849567607e9382835418827e09b3_header_1"> 参考URL</h3>
<p><a href="http://d.hatena.ne.jp/Umeyashiki/20100131/1264948069">nginxとPassengerでRailsアプリを動かしたよ &#8211; Umeyashikiの日記</a></p>
<h3 id="hs_7783849567607e9382835418827e09b3_header_2"> 手順</h3>
<h4 id="hs_7783849567607e9382835418827e09b3_header_3"> nginx Configuration options</h4>
<p># nginx -V</p>
<pre class="brush: cpp; title: ; notranslate">
nginx: nginx version: nginx/1.1.7
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
nginx: TLS SNI support disabled
nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/
</pre>
<h4 id="hs_7783849567607e9382835418827e09b3_header_4"> gem install passenger (rbenv)</h4>
<p>$ gem install passenger</p>
<p>$ cd ~/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/</p>
<p>$ tree -a  ~/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/bin</p>
<pre class="brush: cpp; title: ; notranslate">
/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/bin
|-- passenger
|-- passenger-config
|-- passenger-install-apache2-module
|-- passenger-install-nginx-module
|-- passenger-make-enterprisey
|-- passenger-memory-stats
`-- passenger-status

0 directories, 7 files
</pre>
<h4 id="hs_7783849567607e9382835418827e09b3_header_5"> install nginx module</h4>
<p>$ ./passenger-install-nginx-module </p>
<h4 id="hs_7783849567607e9382835418827e09b3_header_6"> 1st</h4>
<h5 id="hs_7783849567607e9382835418827e09b3_header_7"> curl-devel が足りませんでした</h5>
<pre class="brush: cpp; title: ; notranslate">
Welcome to the Phusion Passenger Nginx module installer, v3.0.11.

This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.

Here's what you can expect from the installation process:

 1. This installer will compile and install Nginx with Passenger support.
 2. You'll learn how to configure Passenger in Nginx.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.

 --------------------------------------------

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * The 'make' tool... found at /usr/bin/make
 * A download tool like 'wget' or 'curl'... found at /usr/bin/wget
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... found at /home/USER/.rbenv/versions/1.9.3-p0/bin/rake
 * rack... found
 * Curl development headers with SSL support... not found  #curl-devel がない
 * OpenSSL development headers... found
 * Zlib development headers... found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Press Enter to continue, or Ctrl-C to abort.
&lt;br /&gt;

&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;

Installation instructions for required software

 * To install Curl development headers with SSL support:
   Please run yum install curl-devel as root.             #curl-devel をインストールしなさいね

If the aforementioned instructions didn't solve your problem, then please take
a look at the Users Guide:

  /home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/doc/Users guide Nginx.html
</pre>
<h6 id="hs_7783849567607e9382835418827e09b3_header_8"> yum install curl-devel.x86_64</h6>
<pre class="brush: cpp; title: ; notranslate">
Installed:
  curl-devel.x86_64 0:7.15.5-9.el5_7.4                                                              

Dependency Installed:
  libidn-devel.x86_64 0:0.6.5-1.1                                                                   

Complete!
</pre>
<h4 id="hs_7783849567607e9382835418827e09b3_header_9"> 2nd</h4>
<h5 id="hs_7783849567607e9382835418827e09b3_header_10"> nginx re-install</h5>
<p># diff -U0 ../nginx117/nginx_configure117.sh nginx_configure1112.sh</p>
<pre class="brush: cpp; title: ; notranslate">
  --- ../nginx117/nginx_configure117.sh   2011-11-12 11:07:47.000000000 +0900
  +++ nginx_configure1112.sh      2012-01-08 00:26:47.000000000 +0900
  @@ -3,2 +3,2 @@
  -NGINX=nginx-1.1.7
  -SOURCE_DIR=/usr/local/src/NGINX/nginx117
  +NGINX=nginx-1.1.12
  +SOURCE_DIR=/usr/local/src/NGINX/nginx1112
  @@ -9,0 +10 @@
  +  --prefix='/usr/local/nginx' \
  @@ -23,0 +25,2 @@
  +  --with-cc-opt='-Wno-error' \
  +  --add-module='/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/nginx' \
</pre>
<h5 id="hs_7783849567607e9382835418827e09b3_header_11"> /usr/local/src/NGINX/nginx1112/nginx_configure1112.sh</h5>
<ul>
<li> ./configure ごにょごにょ &#038;&#038; make</li>
</ul>
<pre class="brush: cpp; title: ; notranslate">
#!/bin/sh

NGINX=nginx-1.1.12
SOURCE_DIR=/usr/local/src/NGINX/nginx1112
id nginx || sudo useradd -s /sbin/nologin -d /usr/local/nginx -M nginx

cd $SOURCE_DIR/$NGINX
[ -e &quot;$SOURCE_DIR/$NGINX/Makefile&quot; ] &amp;amp;amp;&amp;amp;amp; make clean
./configure \
  --prefix='/usr/local/nginx' \
  --conf-path=/etc/nginx/nginx.conf \
  --error-log-path=/var/log/nginx/error.log \
  --pid-path=/var/run/nginx/nginx.pid  \
  --lock-path=/var/lock/nginx.lock \
  --user=nginx \
  --group=nginx \
  --with-http_stub_status_module \
  --with-http_ssl_module \
  --with-http_gzip_static_module \
  --with-http_realip_module \
  --http-log-path=/var/log/nginx/access.log \
  --http-client-body-temp-path=/var/tmp/nginx/client/ \
  --http-proxy-temp-path=/var/tmp/nginx/proxy/ \
  --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
  --with-cc-opt='-Wno-error' \
  --add-module='/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/nginx' \
&#038;&#038; make
</pre>
<p># /usr/local/nginx/sbin/nginx -s stop</p>
<p># cd /usr/local/src/NGINX/nginx1112/nginx-1.1.12<br />
# make install</p>
<p># /usr/local/nginx/sbin/nginx<br />
# /usr/local/nginx/sbin/nginx -V</p>
<pre class="brush: cpp; title: ; notranslate">
nginx version: nginx/1.1.12
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
TLS SNI support disabled
configure arguments: --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --with-cc-opt=-Wno-error --add-module=/home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11/ext/nginx
</pre>
<p>ここまではあんま関係ないですね。</p>
<p>さて rails が以下のように配置されていたとして</p>
<pre class="brush: cpp; title: ; notranslate">
/path/to/rails_root
|-- Gemfile
|-- Gemfile.lock
|-- README
|-- Rakefile
|-- app
|-- config
|-- config.ru
|-- db
|-- doc
|-- lib
|-- log
|-- public
|-- script
|-- test
|-- tmp
`-- vendor
</pre>
<p>nginx の設定ファイルは以下のようにした。</p>
<h4 id="hs_7783849567607e9382835418827e09b3_header_12"> /etc/nginx/conf.d/rails.conf</h4>
<pre class="brush: cpp; title: ; notranslate">
#rails.conf
    server {
        listen       80;
        server_name  aaa.to;
        access_log  /var/log/nginx/aaa.to/access.log  main;
        error_log  /var/log/nginx/aaa.to/error.log;

        location / {
          root /path/to/rails_root/public;
          passenger_enabled on;
          index index.html index.htm;
          rails_env development;
        }
    }
</pre>
<h4 id="hs_7783849567607e9382835418827e09b3_header_13"> /etc/nginx/nginx.conf</h4>
<pre class="brush: cpp; title: ; notranslate">
worker_processes  1;
events {
    worker_connections  1024;
}

http {
  include       mime.types;
  default_type  application/octet-stream;
  log_format  main  '$remote_addr - $remote_user [$time_local] &quot;$request&quot; '
                    '$status $body_bytes_sent &quot;$http_referer&quot; '
                    '&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';

   #passenger
   passenger_root /home/USER/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/passenger-3.0.11;
   passenger_ruby /home/USER/.rbenv/shims/ruby;
   #passenger

  #access_log  logs/access.log  main;

  sendfile        on;
  #tcp_nopush     on;

  #keepalive_timeout  0;
  keepalive_timeout  65;

  #gzip  on;

  server {
                listen       80;
    server_name  __default;
  }

  #include_zone
  include /etc/nginx/conf.d/rails.conf;
  #include_zone
}
</pre>
<p></p>
<p>うごいた!!
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2012/01/11/serv/856.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rbenv &#8211; rails 環境作成</title>
		<link>http://ngsw.jp/2012/01/03/serv/840.html</link>
		<comments>http://ngsw.jp/2012/01/03/serv/840.html#comments</comments>
		<pubDate>Mon, 02 Jan 2012 18:03:51 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rbenv]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=840</guid>
		<description><![CDATA[rbenvでrailsの動作環境を構築 &#8211; 吾輩のメモである 上記手順のほぼ引き写し。 rbenv以降から。 なんだけど、coffee-rails のところでエラーが出てしまったのでひとまず。 課題は Bun <a href='http://ngsw.jp/2012/01/03/serv/840.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
<a href="http://d.hatena.ne.jp/clmind/20111109/1320814435">rbenvでrailsの動作環境を構築 &#8211; 吾輩のメモである</a><br />
上記手順のほぼ引き写し。<br />
rbenv以降から。</p>
<pre class="brush: cpp; title: ; notranslate">
rbenv exec gem install bundler
cd /path/to/railsdir/

cat &lt;&lt; EOS &gt; Gemfile
source &quot;http://rubygems.org&quot;
gem &quot;rails&quot;, &quot;3.1.3&quot;
EOS

bundle install --path vendor/bundle
bundle exec rails new blog -d mysql

rm -f Gemfile
rm -f Gemfile.lock
rm -rf .bundle

cd blog
bundle install --path vendor/bundle
bundle exec rails g scaffold post title:string body:text
</pre>
<p>なんだけど、coffee-rails のところでエラーが出てしまったのでひとまず。</p>
<p>課題は Bundler と Gemfile の理解</p>
<p><span id="more-840"></span></p>
<p>続き。<br />
「coffee-railsでエラーがでるよ」っていうのと、<br />
そのあとにexecjsがおかしいよっていうのとあって。</p>
<ul>
<li> 「coffee-railsでエラーがでるよ」ってのはGemfileのバージョン指定の問題</li>
<li> execjs は以下で対応可能</li>
</ul>
<p>だった。</p>
<p><a href="http://stackoverflow.com/questions/6282307/rails-3-1-execjs-and-could-not-find-a-javascript-runtime">Rails 3.1 execjs and Could not find a JavaScript runtime &#8211; Stack Overflow</a><br />
を参考にした。</p>
<ul>
<li> $ diff -uw Gemfile{.org,}</li>
</ul>
<pre class="brush: cpp; title: ; notranslate">
  --- Gemfile.org 2012-01-03 14:24:53.000000000 +0900
  +++ Gemfile     2012-01-03 14:29:34.000000000 +0900
  @@ -6,6 +6,7 @@
   # gem 'rails',     :git =&gt; 'git://github.com/rails/rails.git'

   gem 'mysql2'
  +gem 'therubyracer'

   # Gems used only for assets and not required
</pre>
<p>と gem &#8216;therubyracer&#8217; を追記。</p>
<ul>
<li> $ bundle install &#8211;path vendor/bundle </li>
</ul>
<pre class="brush: cpp; title: ; notranslate">
  (略)
    Installing therubyracer (0.9.9) with native extensions
  (略)
</pre>
<p>となっていたのを画面で確認。</p>
<ul>
<li> $ bundle exec rails g scaffold post title:string body:text</li>
</ul>
<pre class="brush: cpp; title: ; notranslate">
      invoke  active_record
      create    db/migrate/20120103053320_create_posts.rb
      create    app/models/post.rb
      invoke    test_unit
      create      test/unit/post_test.rb
      create      test/fixtures/posts.yml
       route  resources :posts
      invoke  scaffold_controller
      create    app/controllers/posts_controller.rb
      invoke    erb
      create      app/views/posts
      create      app/views/posts/index.html.erb
      create      app/views/posts/edit.html.erb
      create      app/views/posts/show.html.erb
      create      app/views/posts/new.html.erb
      create      app/views/posts/_form.html.erb
      invoke    test_unit
      create      test/functional/posts_controller_test.rb
      invoke    helper
      create      app/helpers/posts_helper.rb
      invoke      test_unit
      create        test/unit/helpers/posts_helper_test.rb
      invoke  assets
      invoke    coffee
      create      app/assets/javascripts/posts.js.coffee
      invoke    scss
      create      app/assets/stylesheets/posts.css.scss
      invoke  scss
      create    app/assets/stylesheets/scaffolds.css.scss
</pre>
<p>やったね</p>
<p>まとめると</p>
<pre class="brush: cpp; title: ; notranslate">
rbenv exec gem install bundler
cd /path/to/railsdir/

cat &lt;&lt; EOS &gt; Gemfile
source &quot;http://rubygems.org&quot;
gem &quot;rails&quot;, &quot;3.1.3&quot;
EOS

bundle install --path vendor/bundle
bundle exec rails new blog -d mysql

rm -f Gemfile
rm -f Gemfile.lock
rm -rf .bundle

cd blog
vi Gemfile
   gem 'therubyracer' #追記
bundle install --path vendor/bundle
bundle exec rails g scaffold post title:string body:text
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2012/01/03/serv/840.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM &#8211; virt-clone する</title>
		<link>http://ngsw.jp/2011/12/31/serv/831.html</link>
		<comments>http://ngsw.jp/2011/12/31/serv/831.html#comments</comments>
		<pubDate>Sat, 31 Dec 2011 13:46:25 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[KVM]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=831</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="section">
<pre class="brush: cpp; title: ; notranslate">
virt-clone \
  --connect=qemu:///system \
  -o ${sourcehost} \
  -n ${clonehost} \
  -f /var/lib/libvirt/images/${clonehost}.img
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2011/12/31/serv/831.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>俺は、gentooに、勝てない…</title>
		<link>http://ngsw.jp/2011/12/20/serv/820.html</link>
		<comments>http://ngsw.jp/2011/12/20/serv/820.html#comments</comments>
		<pubDate>Mon, 19 Dec 2011 18:39:04 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[あとでやる]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=820</guid>
		<description><![CDATA[genkernel &#8211;menuconfig all だろうが、 genkernel all だろうが起動しない。 CDboot時には /dev/sda なのに、 カーネルコンパイル終えて起動すると /dev/ <a href='http://ngsw.jp/2011/12/20/serv/820.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
genkernel &#8211;menuconfig all だろうが、<br />
genkernel all だろうが起動しない。</p>
<p>CDboot時には /dev/sda なのに、<br />
カーネルコンパイル終えて起動すると /dev/hda としないと、<br />
grub がきょとんとして実行されない。</p>
<p>genkernel.log を涙ながらに朗読をすることで、<br />
カーネルのご機嫌を伺おうと考えたり、<br />
クラシック音楽をかけながら優しい言葉をかけてコンパイルしてみたりと、<br />
ほんとうに忙しい。</p>
<p>grubの設定は間違ってないと思うんだ<br />
/dev/sda3 として設定した real_root を読み込めてないのが問題くさい<br />
そこまではわかるんだけどね<br />
rootfstype=ext3 って grub に書きやがれってことか<br />
書いたよ書いてみたよ祈りながらexitしてumountしてrebootかますよ</p>
<p>キドウシナイ</p>
<pre class="brush: cpp; title: ; notranslate">
(略)
&lowast; Starting udevd …         [ok]
&lowast; Populating /dev with existing devices through uevents … [ok]
&lowast; Waiting for uevents to be processed …       (ここで完全に停止する)
</pre>
<p>泣ける……。</p>
<p>udev をちょっと調べてみることにする。</p>
<p>2011/12/20 03:47 追記<br />
って記事を涙ながらに書いてたら起動しそうになって嬉しい。<br />
&#8220;Waiting for uevents to be processed&#8221; は本当に文字通りなんか頑張っていたようだ。<br />
プログレスバーないんだもん。</p>
<pre class="brush: cpp; title: ; notranslate">
(略)
&lowast; Waiting for uevents to be processed …  [ok]     (ここで停止してから15分くらいか)
&lowast; Mounting /dev/shm ...                  [ok]
&lowast; Setting system clock using the hardware clock [UTC]     [ok] (あとで直さないと)
&lowast; Loading module pci_hotplug ...         [ok]
&lowast; Autoloaded 1 module(s)
&lowast; Checking local filesystems ...
/dev/hda3: clean, 254460/3523856 files, 907507/14093968 blocks
/dev/hda1 was not cleanly unmounted, check forced.
/dev/hda1: |===============================                        \ 70.0%     (また止まっとる (´・ω・`) )
</pre>
<p></p>
<p>うえええ
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2011/12/20/serv/820.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>引数展開 $@ , $&#8221;@&#8221; , $* , $&#8221;*&#8221;</title>
		<link>http://ngsw.jp/2011/12/02/serv/801.html</link>
		<comments>http://ngsw.jp/2011/12/02/serv/801.html#comments</comments>
		<pubDate>Fri, 02 Dec 2011 09:05:48 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=801</guid>
		<description><![CDATA[文字列をコマンドにそのまま渡すスクリプトを書いていて、 MrMEEE / bumblebee &#8211; GitHub の例とかもあるし、明日は我が身だしちょっくら気になったので。 $ sh test.sh atat <a href='http://ngsw.jp/2011/12/02/serv/801.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
文字列をコマンドにそのまま渡すスクリプトを書いていて、<br />
<a href="https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdbe0acce6#diff-1">MrMEEE / bumblebee &#8211; GitHub</a><br />
の例とかもあるし、明日は我が身だしちょっくら気になったので。</p>
<pre class="brush: cpp; title: ; notranslate">
#!/bin/sh
function atat()
{
  echo atat
  for i in $@
  do
    echo $i
  done
}
function dat()
{
  echo dat
  for i in &quot;$@&quot;
  do
    echo $i
  done
}
function ast()
{
  echo ast
  for i in $*
  do
    echo $i
  done
}
function dast()
{
  echo dast
  for i in &quot;$*&quot;
  do
    echo $i
  done
}

atat  1 2 3 &quot;4 5 6&quot; 7 8 9 10
echo &quot;&quot;
dat  1 2 3 &quot;4 5 6&quot; 7 8 9 10
echo &quot;&quot;
ast  1 2 3 &quot;4 5 6&quot; 7 8 9 10
echo &quot;&quot;
dast  1 2 3 &quot;4 5 6&quot; 7 8 9 10
</pre>
<p><em>$ sh test.sh</em><br />
<code><br />
atat<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10</p>
<p>dat<br />
1<br />
2<br />
3<br />
4 5 6<br />
7<br />
8<br />
9<br />
10</p>
<p>ast<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10</p>
<p>dast<br />
1 2 3 4 5 6 7 8 9 10<br />
</code><br />
個人的には $&#8221;@&#8221; が意図しているものに近いかな。
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2011/12/02/serv/801.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>実行前に確認の入力をさせる bash-function 書いた</title>
		<link>http://ngsw.jp/2011/11/30/serv/796.html</link>
		<comments>http://ngsw.jp/2011/11/30/serv/796.html#comments</comments>
		<pubDate>Tue, 29 Nov 2011 18:09:33 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=796</guid>
		<description><![CDATA[typecheck.sh githubにおいてます。 で source やらで読み込んでもらえましたら、 と言うような使い方を想定してる。 なんで作成したか 職場において 手順書の代わりになるスクリプトが必要だった しか <a href='http://ngsw.jp/2011/11/30/serv/796.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
<h4 id="hs_544165ec4ec00100a44903e3a279cbf9_header_0"> <a title="typecheck.sh" href="https://raw.github.com/ngsw/bash-function-typecheck/master/typecheck.sh" target="_blank">typecheck.sh</a></h4>
<p>githubにおいてます。</p>
<p>で source やらで読み込んでもらえましたら、</p>
<pre class="brush: cpp; title: ; notranslate">
typecheck 10
result=$?
if [ ${result} = &quot;0&quot; ];then
  echo &quot;run&quot;
else
  echo &quot;no run&quot;
fi
</pre>
<p>と言うような使い方を想定してる。</p>
<h4 id="hs_544165ec4ec00100a44903e3a279cbf9_header_1"> なんで作成したか</h4>
<p>職場において</p>
<ul>
<li> 手順書の代わりになるスクリプトが必要だった
<ul>
<li> しかし手順書だとスピード遅い</li>
<li> かと言ってスクリプトを手拍子で実行されても困る</li>
</ul>
</li>
</ul>
<p>ので</p>
<ol>
<li> 実行するコマンドと関連ファイルを出力する</li>
<li> 作業者は目視で確認する</li>
<li> もちろん確認すべき内容はスクリプト側でも確認している</li>
<li> 内容確認後 typecheck のコード入力</li>
<li> コマンドが実行される</li>
</ol>
<p>という流れ。車輪の再発明臭いですが。
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2011/11/30/serv/796.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ちょっとしたメモ / お名前.com の価格(キャンペーン含む)</title>
		<link>http://ngsw.jp/2011/10/21/serv/793.html</link>
		<comments>http://ngsw.jp/2011/10/21/serv/793.html#comments</comments>
		<pubDate>Thu, 20 Oct 2011 18:57:57 +0000</pubDate>
		<dc:creator>ngsw</dc:creator>
				<category><![CDATA[サーバ]]></category>
		<category><![CDATA[domain]]></category>

		<guid isPermaLink="false">http://ngsw.jp/?p=793</guid>
		<description><![CDATA[com 920 net 920 info 180 / 920 org 380 / 920 biz 380 / 920 me 580 / 2290 so 1950 in 660 / 1950 mobi 920 us 580 <a href='http://ngsw.jp/2011/10/21/serv/793.html'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div class="section">
com   920<br />
net   920<br />
info  180 / 920<br />
org   380 / 920<br />
biz   380 / 920<br />
me    580 / 2290</p>
<p>so    1950<br />
in    660 / 1950<br />
mobi  920<br />
us    580<br />
ws    1470<br />
be    1830</p>
<p>jp    2980<br />
bz    2880<br />
co    2880<br />
cc    2880<br />
tv    3480</p>
<p>vc    4180<br />
cx    4800</p>
<p>sc    9800<br />
ac    7920<br />
cm    11960<br />
am    9330<br />
mu    8480<br />
tw    3920<br />
hn    8480<br />
fm    9330<br />
la    4180<br />
ms    4040<br />
mx    6140<br />
cz    3480<br />
vg    4040<br />
gs    4040<br />
mn    5400</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ngsw.jp/2011/10/21/serv/793.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

