9. - 8 -
dev check service
Web/Apl *8
DB Master
DB Slave *6
Work *2
Batch *2
Session *2
Web/Apl
Work/Batch
DB
Master/Slave
Session *2
Web/Apl
Work/Batch
DB
Master/Slave
11. tar xvf freetype-2.3.8.tar
cd freetype-2.3.8
make clean
./configure
make all
make install
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b/
make clean
./configure --enable-shared
make
mkdir /usr/local/man
mkdir /usr/local/man/man1
make install
bunzip2 libpng-1.2.33.tar.bz2
tar xvf libpng-1.2.33.tar
cd libpng-1.2.33
make clean
./configure
make
make install
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
make clean
./configure
make
make install
tar zxvf libiconv-1.12.tar.gz
cd libiconv-1.12
make clean
./configure
make
make install
tar zxvf libxml2-2.6.26.tar.gz
cd libxml2-2.6.26
make clean
./configure
make
make install
tar zxvf fontconfig-2.6.0.tar.gz
cd fontconfig-2.6.0
make clean
./configure --sysconfdir=/etc --
prefix=/usr --
mandir=/usr/share/man
make
make install
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
make clean
./configure
make
make install
tar zxvf httpd-2.2.22.tar.gz
cd httpd-2.2.22
make clean
- 10 -
Webサーバーの手動インストール手順
./configure ¥
--
prefix=/usr/local/apache2.2.22 ¥
--disable-autoindex ¥
--disable-imagemap ¥
--disable-userdir ¥
--enable-deflate ¥
--enable-headers ¥
--enable-proxy ¥
--enable-proxy-connect ¥
--enable-proxy-ftp ¥
--enable-proxy-http ¥
--enable-proxy-ajp ¥
--enable-proxy-balancer ¥
--enable-ssl ¥
--enable-rewrite ¥
--enable-expires ¥
--enable-so ¥
--enable-info
make
make install
vim /etc/init.d/apache
chmod 755 /etc/init.d/apache
chkconfig --add apache
chkconfig --list apache
cd /usr/local
tar zxvf /service/store/install-
src/mysql-5.1.37-linux-i686-
glibc23.tar.gz
ln -s /usr/local/mysql-5.1.37-
linux-i686-glibc23 mysql
tar zxvf php-5.2.9.tar.gz
cd php-5.2.9
make clean
'./configure' '--with-
mysql=/usr/local/mysql' '--with-
apxs2=/usr/local/apache2/bin/apxs
' '--enable-zend-multibyte' '--
enable-mbstring' '--enable-
mbregex' '--with-jpeg-
dir=/usr/local/include' '--with-
freetype-
dir=/usr/local/include/freetype2'
'--enable-gd-native-ttf' '--
enable-gd-jis-conv' '--with-gd'
'--with-zlib' '--with-zlib-
dir=/usr' '--with-xmlrpc' '--
with-curl' '--with-libxml-
dir=/usr/local/' '--enable-zip'
'--with-pdo-
mysql=/usr/local/mysql'
make
make test
make install
pear channel-update pear.php.net
wget
http://xdebug.org/files/xdebug-
2.2.1.tgz
tar zxf xdebug-2.2.1.tgz
cd xdebug-2.2.1
phpize
./configure && make
cp modules/xdebug.so
/usr/local/lib/php/extensions/no-
debug-non-zts-20060613
vim /usr/local/lib/php.ini
…
22. リポジトリ内の
cookbook を Chef
Server にアップロード
する。
@chef server
$ cd /chef-repo
$ svn update
$ knife cookbooks upload –a –o
site-cookbooks/
- 21 -
4. Chef Server にアップロードする
33. サーバーの役割毎に、導入するアプリを指
定する機能。
Roles
- 32 -
Role Recipes
web Apache / PHP / MySQL Client
db MySQL Server / MySQL Client
session Redis / Monit / Keepalived
build Java / Jenkins / Selenium Server
37. - 36 -
最終的な構成 (予定)
dev check service
Web/Apl
DB Master
DB Slave
Work
Batch
Session
Web/Apl
Work/Batch
DB
Master/Slave
Session
Web/Apl
Work/Batch
DB
Master/Slave
web
db
work
Sessionsession