Форумы

Модераторы: tastelinux, Frizze, andrey, Bender
Автор Добавил
tastelinux
Птн Май 04 2012, 05:35
andreika

ID пользователя #1
Зарегистрирован: Птн Апр 30 2010, 12:25

Сообщений: 337
Подготовка системы

aptitude install dpkg-dev libjudy-dev libevent-dev libncurses5 libncurses5-dev ncurses-term libmysqld-dev php5-dev php-config libedit-dev libreadline6-dev
mkdir -p /opt/pinba/arc
mkdir -p /opt/pinba/src


Mysql sources

aptitude install mysql-server mysql-client
cd /opt/pinba/arc
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.41.tar.gz
tar xvzf mysql-5.1.41-linux-x86_64-glibc23.tar.gz -C /opt/pinba/src
apt-get source mysql-server
mv mysql-dfsg-5.1-5.1.41 /opt/pinba/src/
cp -r /opt/pinba/src/mysql-5.1.41/Docs /opt/pinba/src/mysql-dfsg-5.1-5.1.41/
cd /opt/pinba/src/mysql-dfsg-5.1-5.1.41/ # опции компиляции должны совпадать с опциями бинарного пакета (берутся из /opt/pinba/src/mysql-dfsg-5.1-5.1.41/ debian/rules)
./configure --prefix=/usr --exec-prefix=/usr --libexecdir=/usr/sbin --datadir=/usr/share --localstatedir=/var/lib/mysql \
 --includedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --with-system-type=" debian-linux-gnu" --enable-shared \
 --enable-static --enable-thread-safe-client --enable-assembler --enable-local-infile --with-pic --with-lib-ccflags="-fPIC" \
 --with-pstack --with-fast-mutexes --with-big-tables --with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-mysqld-user=mysql \
 --with-libwrap --without-readline --with-ssl --without-docs --with-extra-charsets=all --with-plugins=max --without-ndbcluster \
 --with-embedded-server --with-embedded-privilege-control --sysconfdir=/etc/mysql
cd include/
make


Google Protocol Buffers

url: http://code.google.com/p/protobuf
url: http://code.google.com/p/protobuf/downloads/list
cd /opt/pinba/arc
wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
tar xvzf protobuf-2.4.1.tar.gz -C /opt/pinba/src
cd /opt/pinba/src/protobuf-2.4.1
./configure --prefix=/usr
make
make check
make install


Hoard memory allocator

url: http://www.hoard.org
url: http://plasma.cs.umass.edu/emery/download-hoard
cd /opt/pinba/arc
wget http://www.cs.umass.edu/%7Eemery/hoard/hoard-3.8/source/hoard-38.tar.gz
tar xvzf hoard-38.tar.gz -C /opt/pinba/src
cd /opt/pinba/src/hoard-38/src
ln -s . include
make linux-gcc-x86-64
cp libhoard.so /usr/lib/


Mysql engine

 aptitude install mysql-server mysql-client
cd /opt/pinba/arc
wget http://pinba.org/files/snapshots/pinba_engine-latest.tar.gz
tar xvzf pinba_engine-latest.tar.gz -C /opt/pinba/
cd /opt/pinba/pinba_engine-*/
./configure --prefix=/usr --libdir=/usr/lib/mysql/plugin --with-mysql=/opt/pinba/src/mysql-dfsg-5.1-5.1.41 --with-hoard=/opt/pinba/src/hoard-38/src --with-protobuf --with-judy --with-event
make
make install
mysql -u tastelinux -p
INSTALL PLUGIN pinba SONAME 'libpinba_engine.so';
CREATE DATABASE pinba;
mysql -u tastelinux -p -D pinba < default_tables.sql


PHP extension

aptitude install dpkg-dev php5-dev php-config
cd /opt/pinba/arc
wget http://pinba.org/files/snapshots/pinba_extension-latest.tar.gz
tar xvzf pinba_extension-latest.tar.gz -C /opt/pinba/
cd /opt/pinba/pinba_extension-*
phpize
./configure --prefix=/usr --with-pinba=/usr
make
make install
 nano /etc/php5/conf.d/pinba.ini
#################################
extension=pinba.so
pinba.enabled=1
pinba.server=192.168.1.118
#################################
php -m | grep pinba
Наверх
pinba ubuntu   pinba   

 

Перейти:     Наверх

Транслировать сообщения этой темы: rss 0.92 Транслировать сообщения этой темы: rss 2.0 Транслировать сообщения этой темы: RDF
Powered by e107 Forum System