2014-09-01から1ヶ月間の記事一覧

linux上の大量のファイルを削除

ディレクトリ内に大量のファイルがあり、bashではどうにもならない時 emove_file.php

order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'

Order deny, allowスペースがあったらダメ正しくは Order deny,allowと書く

さくらvpsでs3のストレージをマウント

s3fsというソフトウェアを使用する 前準備 libxml2をインストール # yum -y install libxml2 libxml2-devel 前準備 fuseをインストール # wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz # tar xvfz fuse-2.9.3.tar.gz …

さくらvpsでfluentd + mongodbを試す

apacheのアクセスログをfluentdを経由してmongodbへ よくあるパターンを1台のサーバで試してみた mongodbのインストール $ vi /etc/yum.repos.d/mongodb.repo [mongodb] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/o…

ファイルディスクリプタの変更

[root@vps1 ~]# diff /etc/security/limits.conf /etc/security/limits.conf.org 51,54d50 < root soft nofile 65536 < root hard nofile 65536 < * soft nofile 65536 < * hard nofile 65536