<?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>Hello World!!&#187; CentOS</title>
	<atom:link href="http://bhags.org/?cat=18&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://bhags.org</link>
	<description>Welcome to Sinyu&#039;s  site</description>
	<lastBuildDate>Mon, 06 Nov 2017 04:17:27 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.1</generator>
	<item>
		<title>SVN Could not open the requested SVN filesystem on Apache 2.4.9 , svn 1.8.8</title>
		<link>http://bhags.org/?p=425</link>
		<comments>http://bhags.org/?p=425#comments</comments>
		<pubDate>Sat, 26 Apr 2014 05:52:30 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=425</guid>
		<description><![CDATA[環境 Apache 2.4.9 svn 1.8.8 現象 Could not open the re[...]]]></description>
				<content:encoded><![CDATA[<p>環境<br />
Apache 2.4.9<br />
svn 1.8.8</p>
<p>現象<br />
Could not open the requested SVN filesystem</p>
<p>一時対策：旧バージョン対応で作る<br />
svnadmin create &#8211;compatible-version 1.7 &#8211;fs-type fsfs test_svn</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=425</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.5.9 Configure</title>
		<link>http://bhags.org/?p=411</link>
		<comments>http://bhags.org/?p=411#comments</comments>
		<pubDate>Mon, 31 Mar 2014 11:41:11 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=411</guid>
		<description><![CDATA[#/bin/sh ./configure &#8211;prefix=/usr &#8211;ena[...]]]></description>
				<content:encoded><![CDATA[<p>#/bin/sh<br />
./configure &#8211;prefix=/usr &#8211;enable-maintainer-zts &#8211;with-pear \<br />
&#8211;with-config-file-path=/etc &#8211;with-readline &#8211;with-mcrypt \<br />
&#8211;with-zlib &#8211;enable-mbstring &#8211;with-curl &#8211;with-bz2 \<br />
&#8211;enable-zip &#8211;enable-sockets &#8211;enable-sysvsem &#8211;enable-sysvshm \<br />
&#8211;with-mhash &#8211;with-pcre-regex &#8211;with-gettext &#8211;enable-bcmath \<br />
&#8211;enable-libxml &#8211;enable-json &#8211;with-openssl &#8211;enable-pcntl \<br />
&#8211;with-mysql=mysqlnd \<br />
&#8211;with-mysqli=mysqlnd \<br />
&#8211;with-pdo-mysql=mysqlnd \<br />
&#8211;with-apxs2=/usr/local/apache2/bin/apxs \<br />
&#8211;enable-pdo</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=411</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AWS S3 Bucketを instanceにマウント</title>
		<link>http://bhags.org/?p=112</link>
		<comments>http://bhags.org/?p=112#comments</comments>
		<pubDate>Tue, 18 Jun 2013 11:24:12 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=112</guid>
		<description><![CDATA[aws php library http://aws.amazon.com/jp/developer[...]]]></description>
				<content:encoded><![CDATA[<p>aws php library</p>
<p>http://aws.amazon.com/jp/developers/getting-started/php/</p>
<p>サーバで発生する大量のログをS3上で保管するための作業ログ<br />
&#8211;>> s3をCDNとして活用するためのログ</p>
<ol>
<li>S3　上で Bucket 生成
<li>S3上で生成されたBucketに下記権限を追加<br />
{<br />
  &#8220;Version&#8221;:&#8221;2012-10-17&#8243;,<br />
  &#8220;Statement&#8221;:[{<br />
	"Sid":"AddPerm",<br />
        "Effect":"Allow",<br />
	  "Principal": {<br />
            "AWS": "*"<br />
         },<br />
      "Action":["s3:GetObject"],<br />
      &#8220;Resource&#8221;:["arn:aws:s3:::{bucket name}/*"<br />
      ]<br />
    }<br />
  ]<br />
}</p>
<li>s3マウントに必要なライブラリインストール
<pre class="brush: bash; title: ; notranslate">
yum install gcc libstdc++-devel gcc-c++ fuse fuse-devel curl-devel libxml2-devel openssl-devel mailcap make
</pre>
<li>アクセスーキーの登録(AWSトップページの上部にあるメニューから［Your Account］－［Security Credentials］で「Access Credentials」のセクションにある［Access Keys］で「Access Key ID」と「Secret Access Key」の英数字列
<pre class="brush: bash; title: ; notranslate">
vim /etc/passwd-s3fs
accesskeyid:secretaccesskey
</pre>
<li>権限設定
<pre class="brush: bash; title: ; notranslate">chmod 600 /etc/passwd-s3fs </pre>
<li>s3fsのインストール
<pre class="brush: bash; title: ; notranslate">
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
tar xvzf s3fs-1.61.tar.gz
cd s3fs-1.61/
./configure --prefix=/usr
make
sudo make install
</pre>
<li>Requested &#8216;fuse >= 2.8.4&#8242; but version of fuse is 2.8.3　エラー時
<pre class="brush: bash; title: ; notranslate">
yum remove fuse fuse*
[download latest fuse from here - &gt;http://sourceforge.net/projects/fuse/postdownload?source=dlp]
tar -zxf fuse-2.8.6.tar.gz
cd fuse-2.8.6
./configure --prefix=/usr
make
make install
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
ldconfig
modprobe fuse
pkg-config --modversion fuse (should return new version)


&lt;li&gt;s3マウント
1
mkdir /mnt/s3 #マウント用のdirectory 生成
s3fs [自分のbucket名]  /mnt/s3 #マウント -o allow_other
</pre>
</ol>
<p>マウントは上記で終了<br />
以下ログバックアップのためのロジック</p>
<ol>
<li>batch時点の日付directory生成 #prev_batch_date < user_log_data_period　=<current_batch_date
<li>ユーザごとに保存されるdirectoryを検索
<pre class="brush: php; title: ; notranslate">
$userId =xxx #作業対象ユーザ
function findUserDirectory($userId,$directoryStr=&quot;&quot;){
     
     if($userId/$mod == 0){
     //現在のdirectory階層に保存
     
     }else{

     }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mongoDB 2.4.4をCentOS 6.2にインストール</title>
		<link>http://bhags.org/?p=109</link>
		<comments>http://bhags.org/?p=109#comments</comments>
		<pubDate>Tue, 18 Jun 2013 03:52:16 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[mongoDB]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=109</guid>
		<description><![CDATA[mongoDBを設置することとなったのでこれは作業メモ *最新安定板(現時点で2.4.4)がyumよ[...]]]></description>
				<content:encoded><![CDATA[<p>mongoDBを設置することとなったのでこれは作業メモ<br />
*最新安定板(現時点で2.4.4)がyumよりインストールできるようなのでyumよりインストール</p>
<pre class="brush: bash; title: ; notranslate">
#10gen repogitoryを追加
vim /etc/yum.repos.d/10gen.repo

#以下追加
[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=0
:wq #保存

yum install --enablerepo=10gen install mongo-10gen-2.4.4* #client

Installed:
  mongo-10gen.x86_64 0:2.4.4-mongodb_1                                                                                                                                                                      
Complete!

yum install --enablerepo=10gen install mongo-10gen-server #server
Installed:
  mongo-10gen-server.x86_64 0:2.4.4-mongodb_1                                                                                                                                                               

Complete!
#あっさり設置完了

#Server 起動
/etc/rc.d/init.d/mongod start 
forked process: 2282
all output going to: /var/log/mongo/mongod.log
child process started successfully, parent exiting
                                                           [  OK  ]

#Test
mongo
MongoDB shell version: 2.4.4
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type &quot;help&quot;.
For more comprehensive documentation, see

http://docs.mongodb.org/

Questions? Try the support group

http://groups.google.com/group/mongodb-user

#接続OK

</pre>
<p>インストールがとても楽でした。</p>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=109</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 6.2 (Final) MySQL 5.5  -&gt; 5.6 移転</title>
		<link>http://bhags.org/?p=78</link>
		<comments>http://bhags.org/?p=78#comments</comments>
		<pubDate>Mon, 17 Jun 2013 06:44:33 +0000</pubDate>
		<dc:creator><![CDATA[bhags]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://bhags.org/?p=78</guid>
		<description><![CDATA[*この記事はここの記事を参考に実施した私の履歴です。 RPMファイルのダウンロード (現在の最新バー[...]]]></description>
				<content:encoded><![CDATA[<p>*この記事は<a href="http://opensourcedbms.com/dbms/how-to-upgrade-mysql-5-5-to-mysql-5-6-on-centos-6-3-red-hat-fedora/" title="How to upgrade..." target="_blank">ここの記事</a>を参考に実施した私の履歴です。</p>
<ol>
<li>RPMファイルのダウンロード (現在の最新バージョンは5.6.12-1でした。)
<ul>
<li>MySQL-client-5.6.12-1.linux_glibc2.5.x86_64.rpm
<li>MySQL-server-5.6.12-1.linux_glibc2.5.x86_64.rpm
<li>MySQL-shared-5.6.12-1.linux_glibc2.5.x86_64.rpm<br />
   パッケージに関しては<a href="http://d.hatena.ne.jp/oratta/20101120/1290241226" title="MySQLのパッケージ種類" target="_blank">ここ（MySQLのパッケージ種類）</a>が参考になります。
  </ul>
<li>Stop MySQL
<pre class="brush: bash; title: ; notranslate">service mysqld stop</pre>
<li>データディレクトリの保存
<pre class="brush: bash; title: ; notranslate">
  #mv /var/lib/mysql /var/lib/mysql_55
  </pre>
<li>削除対称MySQLを以下のコマンドで確認
<pre class="brush: bash; title: ; notranslate">
  rpm -qa | grep -i mysql
  #結果リスト
　mysql-5.5.21-1.el6.remi.x86_64
　perl-DBD-MySQL-4.013-3.el6.x86_641
　mysqlclient16-5.1.61-1.ius.el6.x86_64
　mysql-libs-5.5.21-1.el6.remi.x86_64
　mysql-server-5.5.21-1.el6.remi.x86_64

#########################################################################
#client 削除
yum remove mysqlclient16-5.1.61-1.ius.el6.x86_64
#依存性のある　Package - 削除実行は自己責任で！！！
Removing:
 mysqlclient16    x86_64   5.1.61-1.ius.el6           @ius         14 M
Removing for dependencies:
 cronie           x86_64   1.4.4-7.el6                @base       166 k
 cronie-anacron   x86_64   1.4.4-7.el6                @base        43 k
 crontabs         noarch   1.10-33.el6                @base       2.4 k
 mysql-server     x86_64   5.5.21-1.el6.remi          @remi        45 M
 perl-DBD-MySQL   x86_64   4.013-3.el6                @base       338 k
 postfix          x86_64   2:2.6.6-2.2.el6_1          @base       9.7 M
 redhat-lsb       x86_64   4.0-3.el6.centos           @base        22 k
 rightscale       x86_64   5.6.34-1                   installed    40 M
 sysstat          x86_64   9.0.4-18.el6               @base       806 k
 yum-cron         noarch   3.2.29-22.el6.centos.2     @updates     26 k
　
Remove       11 Package(s)
Installed size: 109 M

Is this ok [y/N]: Y #削除 -　

#########################################################################
#mysql server 削除
yum remove mysql-5.5.21-1.el6.remi.x86_64

#依存関係 - 今回は mysql のみ
Removing:
 mysql        x86_64        5.5.21-1.el6.remi        @remi         28 M
Is this ok [y/N]: Y #削除 -　


#########################################################################
#mysql lib 削除
yum remove mysql-libs-5.5.21-1.el6.remi.x86_64

#依存関係 - 今回は php-myadminも削除されます。
Removing:
 mysql-libs  x86_64  5.5.21-1.el6.remi     @remi  4.1 M
Removing for dependencies:
 php-mysql   x86_64  5.4.15-1.el6.remi     @remi  449 k
 phpMyAdmin  noarch  4.0.1-2.el6.remi      @remi   20 M


#いよいよインストール
rpm -ivh MySQL-client-5.6.12-1.linux_glibc2.5.x86_64.rpm
rpm -ivh MySQL-server-5.6.12-1.linux_glibc2.5.x86_64.rpm
rpm -ivh MySQL-shared-5.6.12-1.linux_glibc2.5.x86_64.rpm 

#以前のデータを復元します。
#インストールされた初期データをバックアップ
mv /var/lib/mysql /var/lib/mysql_56_clean
#既存データのバックアップ 
cp -R /var/lib/mysql_55 /var/lib/mysql

#実行時ファイルの権限エラー対策
chown -R mysql:mysql /var/lib/mysql

#yum remove時生成されるmy.cnfでconfig file復元
mv /etc/my.cnf.rpmsave /etc/my.cnf

#mysql start
service mysql start

#ここまででデータの復元はできたはずだが、互換性を保つために以下のコードを実行


#php library 復元
yum install php-mysql --enablerepo=remi,epel

#エラー発生
  file /usr/share/mysql/charsets/README from install of mysql-libs-5.5.32-1.el6.remi.x86_64 conflicts with file from package MySQL-server-5.6.12-1.linux_glibc2.5.x86_64
...
...
（５０行ぐらい続く）
#最新remiレポジトリをインストール
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

#remi-testのpriorityを1に修正
vim /etc/yum.repos.d/remi.repo
[remi-test]
name=Les RPM de remi en test pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/test/mirror
enabled=0

#priorityを1に修正
priority=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


#php php-mysqlインストール
yum install --enablerepo=remi-test

#php5.5系が無事インストールされる

#削除されたパッケージ再インストール
yum install crontabs #ok
yum install sysstat #ok
yum install postfix #ok
yum install perl-DBD-MySQL #ok
#rightscaleのインストールができない。。
yum install redhat-lsb ok 
</pre>
<p>#phpMyAdminはfileをダウンロードし自力で設置
</ol>
]]></content:encoded>
			<wfw:commentRss>http://bhags.org/?feed=rss2&#038;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
