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

logrotate

FreeBSDは /var/run/logrotate.status /var/lib/logrotate.status を編集[Linux]logrotateを手動で強制実行する方法 · DQNEO日記 logrotateをテスト実行する logrotateをテスト的に実行する時には -d オプションをつけます。 vオプションもつけると詳細表示…

シングルユーザモード パスワードリセット

https://www.vultr.com/docs/boot-into-single-user-mode-reset-root-password Ubuntu 12.04 rootパスワードリセット http://ajayadas.com/reset-root-password-ubuntu-boot-in-single-user-mode/

nginx tcp_nopush tcp_nodelay チューニング

tcp_nopush tcp_nopushディレクティブはsendfileが有効なときに、FreeBSDの場合はTCP_NOPUSHソケットオプション、Linuxの場合はTCP_CORKソケットオプションを使うかを設定します。このオプションを使うと、レスポンスヘッダとファイルの内容をまとめて送るよ…

swapのサイズ

(参考) swap割り当てルール、やっぱりRAMの2倍? | スラド Slashdotに聞け Red Hat (RHEL5) のインストールマニュアル [redhat.com]には ... M = RAM の GB 数 として、S = swap の GB 数とすると、 M その他 S = M + 2 FreeBSD The swap partition should …

DFP 広告

the easiest fix? take out the single request call. I brought this up in training yesterday, but since training was for DFP Premium and "nobody has a need for global headers (BS!!)" it was sort of pooh-poohed.this IS a huge problem, since i…

UNIQUE制約とUNIQUEインデックスは別物

postgres test=# CREATE TABLE test (a text, b text); CREATE TABLE test=# ALTER TABLE test ADD CONSTRAINT a_b_key UNIQUE (a, b); NOTICE: ALTER TABLE / ADD UNIQUE will create implicit index "a_b_key" for table "test" ALTER TABLE test=# Create…

Wordpress マルチサイト

http://wordpress.stackexchange.com/questions/32000/odd-script-file-trying-to-be-loadedhttp://wordpress.org/support/topic/what-does-remote-login-mean