This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "supervisord" | |
start on started sshd | |
stop on runlevel [!2345] | |
respawn | |
exec /usr/bin/supervisord -n -c /etc/supervisord.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
version="3.4.4" | |
priority="30404" | |
sudo mkdir -p /var/log/zookeeper /usr/local/zookeeper /var/zookeeper | |
curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz | tar zx | |
sudo cp -r zookeeper-${version} /usr/local/zookeeper/${version} | |
sudo cp ./zookeeper.sh /usr/local/zookeeper/ | |
sudo cp ./zoo.cfg /etc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version="2.6.3" | |
priority="20603" | |
sudo mkdir -p /var/redis /var/log/redis | |
curl -sL http://redis.googlecode.com/files/redis-${version}.tar.gz | tar zx | |
cd redis-${version}/ | |
make | |
sudo make PREFIX=/usr/local/redis/${version} install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo groupadd mysql | |
sudo mkdir -p /var/mysqld | |
sudo useradd -r -g mysql -M -d /var/mysqld mysql | |
sudo chown mysql:mysql /var/mysqld | |
sudo yum -y install cmake bison gcc-c++ | |
curl -sL http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.28.tar.gz | tar zx | |
cd mysql-5.5.28/ | |
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql/5.5.28 -DDEFAULT_CHARSET=utf8mb4 -DDEFAULT_COLLATION=utf8mb4_bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configurations for haproxy | |
global | |
maxconn 4096 | |
chroot /var/haproxy | |
user haproxy | |
group haproxy | |
log 127.0.0.1 local0 alert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
LIBEVENT_PREFIX=/usr/local/libevent/2.0.20-stable | |
# install prerequisite | |
sudo yum install libxml2-devel libjpeg-devel libpng-devel openssl-devel libcurl-devel | |
# install epel | |
curl -sLO http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm | |
sudo rpm -ivh epel-release-6-7.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp ./nginx.repo /etc/yum.repod.d/ | |
sudo yum install nginx | |
sudo chkconfig nginx off | |
# add 'daemon off' to /etc/nginx/nginx.conf | |
sudo cp ./nginx.ini /etc/supervisord.d/ | |
sudo supervisorctl add nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
# epel | |
curl -sLO http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm | |
sudo rpm -ivh epel-release-6-7.noarch.rpm | |
rm epel-release-6-7.noarch.rpm | |
# edit /etc/yum.repod.d/epel.repo to set enable=0 | |
# install GeoIP-devel | |
sudo yum --enablerepo=epel -y install GeoIP-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version="1.4.15" | |
priority="10415" | |
libevent="/usr/local/libevent/2.0.20-stable/" | |
supervisordir="/etc/supervisord.d" | |
# create user | |
sudo groupadd memcached | |
sudo useradd -r -g memcached -s /sbin/nologin -M -d /var/run/memcached memcached |