2012-01-01から1年間の記事一覧

varnish インストール on centos 6.2

yum -y install rpm-build yum -y install ncurses-devel libxslt pcre-devel wget http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gz cp varnish-3.0.2.tar.gz /root/rpmbuild/SOURCES/ tar zxvf varnish-3.0.2.tar.gz cd varnish-3.0.2/redhat r…

varnish 設定

sub vcl_recv { # no Get or HEAD method if (req.request != "GET" && req.request != "HEAD") { return(pipe); } # no-cache if (req.http.Cache-Control ~ "no-cache") { return(pass); } return(lookup); }sub vcl_fetch { if (beresp.status == 500) { …

nginx インストール

cd /etc/yum.repos.d vi nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 priority=2yum -y install nginx

ruby+rails+unicorn インストール

sudo yum install git patch pcre pcre-devel openssl openssl-devel curl curl-devel libxslt-devel libxml2-devel sqlite-devel yum -y install libyaml-devel bash -s stable curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-ins…

epel リポジトリインストール

yum -y install yum-priorities vi CentOS-Base.repo - updates を priority=1 にしてほかを 2 にする cd /usr/local/src wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-5.noarch.rpm rpm -ivh epel-release-6…