2015-12-01から1ヶ月間の記事一覧

データベスとテーブルサイズの確認

全てのデータベースのサイズを確認する # MB単位 select table_schema, sum(data_length+index_length) /1024 /1024 as MB from information_schema.tables group by table_schema order by sum(data_length+index_length) desc; +-------------------------…

Nginx 413 Request Entity Too Large erro 対応

2MB画像をアップロードしようとした時、「413 Request Entity Too Large erro」Nginxエラーが出ました。 原因;Nginxディフォルトアップロード許可サイズ1Mのため、サイズオーバーだぜと怒られる。 対応:client_max_body_size をnginx.conf に追加 nginx.…

git merge mergeしたくないファイルを除外する

Gitの設定 リポジトリの.git/config設定ファイルに [merge "ours"] name = "Keep ours merge" driver = true .gitattributesファイルの設定 リポジトリのルートディレクトリに.gitattributesファイル作成し、以下の内容を書く hoge.txt merge=ours (merge=ou…

gulpって

www.webcreatorbox.com

abコマンドで負荷テスト

「ab」はApache Bench(アパッチ ベンチ)の略で、Apacheで標準に付いているWEBサーバの性能を計測するためのコマンドです。Apacheをインストールすると、<Apache Install Directory>\bin\に格納されていて、名前はwindowsだとab.exeになります。 使い方 基本的には-nと-cオプションを使</apache>…