This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
# install git | |
# prerequisite: openssl-devel pcre-devel curl-devel expat-devel | |
curl -sL http://git-core.googlecode.com/files/git-1.7.12.3.tar.gz | tar zx | |
cd git-1.7.12.3/ | |
./configure --prefix=/usr/local/git/1.7.12.3 --with-openssl --with-libpcre --with-expat --with-curl | |
make | |
sudo make install | |
sudo alternatives --install /usr/local/bin/git git /usr/local/git/1.7.12.3/bin/git 1071203 \ | |
--slave /usr/local/bin/git-receive-pack git-receive-pack /usr/local/git/1.7.12.3/bin/git-receive-pack \ | |
--slave /usr/local/bin/git-shell git-shell /usr/local/git/1.7.12.3/bin/git-shell \ |
This file contains hidden or 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
# install vim | |
curl -L ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | tar jx | |
cd vim73 | |
./configure --prefix=/usr/local/vim/7.3 --enable-multibyte --with-features=huge | |
make | |
sudo make install | |
sudo alternatives --install /usr/local/bin/vim vim /usr/local/vim/7.3/bin/vim 070300 \ | |
--slave /usr/local/bin/view view /usr/local/vim/7.3/bin/view |
This file contains hidden or 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
# install zsh-5.0.0 | |
# prerequisite: gcc ncurses-devel readline-devel pcre-devel zlib-devel | |
curl -L http://jaist.dl.sourceforge.net/project/zsh/zsh/5.0.0/zsh-5.0.0.tar.bz2 | tar jx | |
cd zsh-5.0.0/ | |
./configure --prefix=/usr/local/zsh/5.0.0 --enable-cap --enable-pcre --enable-multibyte | |
make | |
sudo make install | |
sudo alternatives --install /usr/local/bin/zsh zsh /usr/local/zsh/5.0.0/bin/zsh 50000 |