<?xml version="1.0" encoding="utf-8" ?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" 
			xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" 
			xmlns:cc="http://web.resource.org/cc/" xml:lang="ja">
<channel rdf:about="http://marnica.blog66.fc2.com/?xml">
<title>マルニカ。</title>
<link>http://marnica.blog66.fc2.com/</link>
<description>Ruby周辺備忘録。たまに日記。</description>
<dc:language>ja</dc:language>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://marnica.blog66.fc2.com/blog-entry-79.html" />
<rdf:li rdf:resource="http://marnica.blog66.fc2.com/blog-entry-78.html" />
<rdf:li rdf:resource="http://marnica.blog66.fc2.com/blog-entry-77.html" />
<rdf:li rdf:resource="http://marnica.blog66.fc2.com/blog-entry-76.html" />
<rdf:li rdf:resource="http://marnica.blog66.fc2.com/blog-entry-75.html" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://marnica.blog66.fc2.com/blog-entry-79.html">
<link>http://marnica.blog66.fc2.com/blog-entry-79.html</link>
<title>rsync を使ってデータを転送する方法。</title>
<description> rsynchttp://rsync.samba.org/■インストールyum install rsync■使い方(リモートファイルからのデータ転送)hostA(ホスト名：host.a.co.jp) の /path/to/data_a ディレクトリをhostB の /path/to/data_b ディレクトリ以下にコピーする場合。１．hostBにログイン２．以下コマンドを実行$ cd /path/to/data_b$ rsync -avz -e ssh host.a.co.jp:/path/to/data_a .↓オプションについてhttp://www.infoscience.co.jp/technical/rsync/rsyn
 </description>
<content:encoded>
<![CDATA[ rsync<br /><a href="http://rsync.samba.org/">http://rsync.samba.org/</a><br /><br />■インストール<br />yum install rsync<br /><br />■使い方(リモートファイルからのデータ転送)<br /><br />hostA(ホスト名：host.a.co.jp) の /path/to/data_a ディレクトリを<br />hostB の /path/to/data_b ディレクトリ以下にコピーする場合。<br /><br />１．hostBにログイン<br />２．以下コマンドを実行<br />$ cd /path/to/data_b<br />$ rsync -avz -e ssh host.a.co.jp:/path/to/data_a .<br /><br />↓オプションについて<br />http://www.infoscience.co.jp/technical/rsync/rsync.html#option<br /><br />■参考<br />http://www.infoscience.co.jp/technical/rsync/index.html<br /> ]]>
</content:encoded>
<dc:subject>マナブ</dc:subject>
<dc:date>2009-09-29T22:00:44+09:00</dc:date>
<dc:creator>mani</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
<item rdf:about="http://marnica.blog66.fc2.com/blog-entry-78.html">
<link>http://marnica.blog66.fc2.com/blog-entry-78.html</link>
<title>PostgreSQL リモートからのTCP/IP接続</title>
<description> PostgreSQLサーバーへ、他のホストからアクセスしたい場合は、以下の2点を修正する必要がある。※「/var/lib/pgsql」はPostgreSQLのインストールディレクトリ。①pg_hba.confの設定---# vi /var/lib/pgsql/data/pg_hba.conf# TYPE  DATABASE  　USER　　CIDR-ADDRESS METHODhost　　　all    　　　　　　 0.0.0.0　　　　0.0.0.0　　　　　　trust#↑これを追記。（全てのホストからアクセス可能）---※さすがに上記はセキュリティ上
 </description>
<content:encoded>
<![CDATA[ PostgreSQLサーバーへ、他のホストからアクセスしたい場合は、<br />以下の2点を修正する必要がある。<br />※「/var/lib/pgsql」はPostgreSQLのインストールディレクトリ。<br /><br />①pg_hba.confの設定<br />---<br /># vi /var/lib/pgsql/data/pg_hba.conf<br /><br /># TYPE  DATABASE  　USER　　CIDR-ADDRESS METHOD<br />host　　　all    　　　　　　 0.0.0.0　　　　0.0.0.0　　　　　　trust<br />#↑これを追記。（全てのホストからアクセス可能）<br />---<br /><br />※さすがに上記はセキュリティ上どうかと思うので、適宜値を指定する。<br />詳しくは以下を参照。<br /><a href="http://www.postgresql.jp/document/current/html/auth-pg-hba-conf.html">http://www.postgresql.jp/document/current/html/auth-pg-hba-conf.html</a><br /><br /><br />②postgresql.conf内の、listen_addressesの値を'*'にする。<br />---<br /># vi /var/lib/pgsql/data/postgresql.conf<br /><br />listen_addresses="*" #<-これを追記（全てのホストからアクセス可能）<br />#listen_addresses="localhost" #デフォルト<br />---<br /><br />※②については、postmaster(PostgreSQLDBサーバー)を起動時に「-i」オプションを付ける方法でも良いようです。 ]]>
</content:encoded>
<dc:subject>PostgreSQL</dc:subject>
<dc:date>2009-09-25T19:35:27+09:00</dc:date>
<dc:creator>mani</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
<item rdf:about="http://marnica.blog66.fc2.com/blog-entry-77.html">
<link>http://marnica.blog66.fc2.com/blog-entry-77.html</link>
<title>.svnを再帰的に削除するコマンド</title>
<description> ■Windowsfor /f &quot;tokens=*&quot; %d in ('dir /b/s/a:dh *.svn') do rmdir /q/s &quot;%d&quot;■Linux系find . -name .svn -exec rm -fr {} \;
 </description>
<content:encoded>
<![CDATA[ ■Windows<br />for /f "tokens=*" %d in ('dir /b/s/a:dh *.svn') do rmdir /q/s "%d"<br /><br />■Linux系<br />find . -name .svn -exec rm -fr {} \; ]]>
</content:encoded>
<dc:subject>マナブ</dc:subject>
<dc:date>2009-03-09T11:16:23+09:00</dc:date>
<dc:creator>mani</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
<item rdf:about="http://marnica.blog66.fc2.com/blog-entry-76.html">
<link>http://marnica.blog66.fc2.com/blog-entry-76.html</link>
<title>Lighttpd+FCGI</title>
<description> 参考http://centos.oss.sc/ruby/apache_lighttpd_rails/wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gzmake installyum install ruby-develgem install fcgiyum --enable=rpmforge install lighttpdyum --enable=rpmforge install lighttpd-fastcgichown -R lighttpd. /path/to/railschmod +x /path/to/rails/public/dispatch.*
 </description>
<content:encoded>
<![CDATA[ 参考<br />http://centos.oss.sc/ruby/apache_lighttpd_rails/<br /><br />wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz<br />make install<br /><br />yum install ruby-devel<br />gem install fcgi<br /><br />yum --enable=rpmforge install lighttpd<br />yum --enable=rpmforge install lighttpd-fastcgi<br /><br />chown -R lighttpd. /path/to/rails<br />chmod +x /path/to/rails/public/dispatch.* ]]>
</content:encoded>
<dc:subject>WindowsMobile</dc:subject>
<dc:date>2009-03-09T11:15:03+09:00</dc:date>
<dc:creator>mani</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
<item rdf:about="http://marnica.blog66.fc2.com/blog-entry-75.html">
<link>http://marnica.blog66.fc2.com/blog-entry-75.html</link>
<title>Linux パスを設定するメモ。</title>
<description> ■パスを通す$ PATH=$PATH:/usr/local/pgsql/bin$ export PATH※↑これだけだと、毎回パスを通す必要がある。■ログイン時に自動的にパスを通すホーム直下の.bash_profileを編集$ vi .bash_profile--PATH=$PATH:/usr/local/pgsql/binexport PATH--参考--http://pocketstudio.jp/linux/?%A5%D1%A5%B9(PATH)%A4%CE%B3%CE%C7%A7%A4%C8%C0%DF%C4%EA%CA%FD%CB%A1%A4%CF%A1%A9
 </description>
<content:encoded>
<![CDATA[ ■パスを通す<br />$ PATH=$PATH:/usr/local/pgsql/bin<br />$ export PATH<br /><br />※↑これだけだと、毎回パスを通す必要がある。<br /><br />■ログイン時に自動的にパスを通す<br />ホーム直下の.bash_profileを編集<br />$ vi .bash_profile<br />--<br />PATH=$PATH:/usr/local/pgsql/bin<br />export PATH<br /><br />--参考--<br />http://pocketstudio.jp/linux/?%A5%D1%A5%B9(PATH)%A4%CE%B3%CE%C7%A7%A4%C8%C0%DF%C4%EA%CA%FD%CB%A1%A4%CF%A1%A9 ]]>
</content:encoded>
<dc:subject>マナブ</dc:subject>
<dc:date>2009-03-09T11:07:34+09:00</dc:date>
<dc:creator>mani</dc:creator>
<dc:publisher>FC2-BLOG</dc:publisher>
</item>
</rdf:RDF>