본문 바로가기

리눅스

[Cacti] cacti 설치1

반응형

APM 설치

 

1. apache 설치

# yum -y install httpd

 

2. mysqㅣ 설치

# yum -y install mysql mysql-server mysql-devel

 

3. 필요 라이브러리 설치

# yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel fontconfig  fontconfig-devel libxml2 libxml2-devel openssl openssl-devel gmp gmp-devel mhash mhash-devel libmcrypt libmcrypt-devel

 

4. php php-mysql 연동 설치

# yum -y install php php-mysql php-devel php-gd php-mbstring php-mhash

 

CACTI 설치

1. 필요한 라이브러리 설치

# yum install freetype-devel libpng-devel libart-lgpl

 

2. RRDTool 설치

#wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.23.tar.gz

#tar zxvf rrdtool-1.2.23.tar.gz

#cd rrdtool-1.2.23

#./configure --disable-tcl

#make

#make install

#ln -s /usr/local/rrdtool-1.2.23/bin/rrdtool /usr/local/bin/rrdtool

 

3. Cacti 설치

#wget http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz

#wget http://cactiusers.org/downloads/cacti-plugin-arch.tar.gz

#useradd cacti

#tar zxvf cacti-0.8.7b.tar.gz

#mv cacti-0.8.7b /home/cacti/public_html

#tar zxvf cacti-plugin-arch.tar.gz

#cd cacti-plugin-arch

#cp cacti-plugin-0.8.7b-PA-v2.1.diff /home/cacti/public_html/

#patch -p1 -N --dry-run < cacti-plugin-0.8.7b-PA-v2.1.diff (에러가 있나테스트)

#patch -p1 -N < cacti-plugin-0.8.7b-PA-v2.1.diff

#chgrp [apache실행권한] log/cacti.log

#chmod 664 log/cacti.log

#mysql -h [DB서버] -u cacti -p cacti < /home/cacti/public_html/cacti.sql

#vi /home/cacti/public_html/include/global.php -> DB세팅

 

4.기타

crontab 등록

*/5 * * * * /usr/local/php/bin/php /home/cacti/public_html/poller.php >/dev/null 2>&1

apache 세팅

Virtualhost -> URL <=> /home/cacti/public_html

 

5. 접속

http://주소

ID : admin / PASS : admin  (접속후 초기비번 변경)

 

Mysql(mysql-5.0.77)

./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --with-extra-charsets=all --libexecdir=/usr/sbin --sysconfdir=/etc --enable-thread-safe-client --with-mysql-user=mysql

 

Http(httpd-2.2.11)

./configure --prefix=/usr/local/ --bindir=/usr/bin/ --sbindir=/usr/sbin/ --mandir=/usr/share/man/ --sysconfdir=/etc/httpd --includedir=/usr/include/apache --libexecdir=/usr/lib/apache --datadir=/home/www --localstatedir=/var --enable-so --enable-mods-shared=all --enable-modules=so --enable-rewrite --enable-ssl --enable-authn-dbd --enable-dbd --with-charset=euc-kr

 

PHP(php-5.2.8)

./configure  --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/local/mysql --disable-debug --enable-safe-mode --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-freetype-dir=/usr --with-iconv --enable-exif --with-ttf --with-gettext --enable-sigchild --with-openssl --with-gd --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --enable-mbstring --with-mysql-sock=/tmp

 

rrdtool 설치

./configure --prefix=/usr/local/rrdtool --bindir=/usr/local/bin --sbindir=/usr/local/sbin --includedir=/usr/local/include --libdir=/usr/local/lib --libexecdir=/usr/local/libexec --sysconfdir=/usr/local/rrdtool --disable-tcl

 

 

 

 

728x90
반응형

'리눅스' 카테고리의 다른 글

CentOS Net Install을 통한 설치  (1) 2013.07.02
[Cacti] cacti 설치 2  (1) 2013.07.02
CentOS Net Install을 통한 설치  (0) 2013.07.02
[리눅스] sysstat (sar)  (0) 2013.07.02
[리눅스] localtime 한국(서울)로 변경하기  (1) 2013.07.02