2010-12-12から1日間の記事一覧

さくらVPS nginxのdaemontoolsの設定

nginxのインストール方法は過去の記事を見ていただくとして、ここではソースからインストールした場合の設定とする。 /usr/local/nginx/run #!/bin/sh exec 2>&1 exec /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf -g 'daemon off;' リ…

さくらVPS にucspi-tcpをインストール

daemontoolsを入れたからには、ucspi-tcpももちろんインストール cd /package wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz tar xvzf ucspi-tcp-0.88.tar.gz wget http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch c…

さくらVPS にdaemontoolsをインストール

http://i.t7c.jpのセットアップを兼ねて、daemontoolsのインストール方法をまだブログに書いてなかったようなので書いてみました。 mkdir -p /package chmod 1755 /package cd /package wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz tar xvzf …

さくらVPS nginxのMakefileの設定

supervise配下だと、WEBサーバの起動・停止・再起動・コンフィグテストが面倒なのでdjb流に設定ファイルのディレクトリに以下のようなMakefileを作っておく /usr/local/nginx/conf/Makefile test: /usr/local/nginx/sbin/nginx -t start: test svc -u /servi…