'Cacti'에 해당되는 글 19건






STEP 1.

좌측 상단의 New Graphs를 클릭하고 우측 체크박스를 모두 체크하고 create 버튼을 클릭하여 그래프를 생성한다.


create를 누르면 아래 그림과 같이 변경 된 화면을 볼 수 있다.


아래 스샷처럼 Data Sources를 클릭하면 생성한 내용을 볼 수 있다.






STEP 2.

net-snmp와 RRDTool의 버전을 선택한다.

아래 스샷처럼 Confgiuration 에서 Settings를 클릭하면 아래와 같은 내용을 볼 수 있다.

net-snmp를 5.x 버전으로 RRDTool을 1.2.x 버전으로 체크 해 준후 화면 하단에 있는 save를 클릭하여 저장한다.





STEP 3.

contab을 이용하여 5분마다 그래프를 생성하도록 crontab에 poller.php 스크립트를 추가한다.

[root@Cacti cacti-0.8.7c]# crontab -e
*/5 * * * * /usr/local/server/php/bin/php /download/cacti-0.8.7c/poller.php > /dev/null 2>&1


상단의 graphs 버튼을 클릭하여 아래와 같은 정보를 그래프로 볼 수 있다.

블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,

Cacti 세팅

Cacti/Cacti 설치 2009. 2. 17. 10:35






위 스샷은 Cacti를 설치 한 후 웹서버에서 Cacti를 구동한 첫 페이지 이다.





STEP 1.

next를 클릭하면 RRDTool의 실행파일 과 php 실행 파일을 입력할 것이다.


New Install 상태에서 next를 클릭한다.




위와 같은 화면이 뜨면 RRDTool 경로와 PHP 경로를 올바른 경로로 바꿔준다.

필자의 경우 RRDTool Binary Path를 /usr/local/server/rrdtool/bin/rrdtool로

PHP Binary Path를 /usr/local/server/php/bin/php로 변경 하였다.





STEP 2.

user name과 password를 입력하여 cacti를 실행시켜보도록 하겠다.


위 그림과 같이 로그인 패이지에서 admin 유저와 admin 패스워드를 입력하여 로그인 한 다음에

패스워드를 변경하면 이 후 변경한 패스워드로 접속 할 수 있다.


위 스샷과 같이 패스워드를 변경 하였다.



아래 스샷과 같이 화면이 뜬다면 기본 세팅은 끝이나게 된다.




STEP 3.

Localhost를 등록 해보겠다.

좌측의 Management에 있는 Devices를 클릭 해 본다.


위와 같은 스샷 같이 모니터에 나올 것이다.

이 때 Localhost라고 되어 있는 부분을 클릭한다.





SNMP Options에서 Version 2로 세팅을 한다.

이후 아래와 같은 스샷으로 창이 변경 될 것이다. SNMP Community를 public으로 설정하고 저장한다.





Localhost의 Devices를 클릭하면 웹페이지 상단에 아래와 같은 그림이 뜨면 된다.

블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,

Cacti 설치

Cacti/Cacti 설치 2009. 2. 16. 18:00





cacti는 RRDTool의 데이터베이스를 이용하여 웹에서 시스템 상황을 데이터값으로 저장하고 시간이 흐른 뒤

저장된 데이터를 분석하여 웹상으로 보여주는 모니터링 시스템이다.

cacti는 php를 기반으로 하므로 php가 설치되어 있어야하며, CentOS 설치부터 따라하셨다면 설치가 될 것이다.



STEP 1.

Cacti 다운 받는다.

[root@Cacti download]# pwd
/download
[root@Cacti download]# lftpget http://www.cacti.net/downloads/cacti-0.8.7c.tar.gz


다운 받은 Cacti 파일을 압축을 푼다.

[root@Cacti download]# tar xvfz cacti-0.8.7c.tar.gz                                
..... 생략 ......
cacti-0.8.7c/include/jscalendar/lang/calendar-no.js
cacti-0.8.7c/include/jscalendar/lang/calendar-de.js
cacti-0.8.7c/include/jscalendar/lang/calendar-cs-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-big5-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-zh.js
cacti-0.8.7c/include/jscalendar/lang/calendar-en.js
cacti-0.8.7c/include/jscalendar/lang/calendar-hr-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-sp.js
cacti-0.8.7c/include/jscalendar/lang/calendar-ko-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-hu.js
cacti-0.8.7c/include/jscalendar/lang/calendar-hr.js
cacti-0.8.7c/include/jscalendar/lang/calendar-pl.js
cacti-0.8.7c/include/jscalendar/lang/calendar-jp.js
cacti-0.8.7c/include/jscalendar/lang/calendar-cs-win.js
cacti-0.8.7c/include/jscalendar/lang/calendar-lt-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-el.js
cacti-0.8.7c/include/jscalendar/lang/calendar-sv.js
cacti-0.8.7c/include/jscalendar/lang/calendar-ko.js
cacti-0.8.7c/include/jscalendar/lang/calendar-bg.js
cacti-0.8.7c/include/jscalendar/lang/calendar-he-utf8.js
cacti-0.8.7c/include/jscalendar/lang/calendar-sk.js
cacti-0.8.7c/include/jscalendar/lang/calendar-al.js
cacti-0.8.7c/include/jscalendar/lang/calendar-da.js
cacti-0.8.7c/include/jscalendar/lang/calendar-ro.js
cacti-0.8.7c/include/config.php
cacti-0.8.7c/include/main.css
cacti-0.8.7c/include/global_settings.php
cacti-0.8.7c/include/layout.js
cacti-0.8.7c/include/global_constants.php
cacti-0.8.7c/include/zoom.js
cacti-0.8.7c/include/global_arrays.php
cacti-0.8.7c/include/top_header.php
cacti-0.8.7c/include/bottom_footer.php
cacti-0.8.7c/include/global.php
cacti-0.8.7c/rra/
cacti-0.8.7c/rra/.placeholder
cacti-0.8.7c/graphs_new.php
cacti-0.8.7c/scripts/
cacti-0.8.7c/scripts/ss_sql.php
cacti-0.8.7c/scripts/query_host_cpu.php
cacti-0.8.7c/scripts/ping.pl
cacti-0.8.7c/scripts/loadavg.pl
cacti-0.8.7c/scripts/loadavg_multi.pl
cacti-0.8.7c/scripts/unix_users.pl
cacti-0.8.7c/scripts/unix_processes.pl
cacti-0.8.7c/scripts/weatherbug.pl
cacti-0.8.7c/scripts/query_host_partitions.php
cacti-0.8.7c/scripts/sql.php
cacti-0.8.7c/scripts/diskfree.sh
cacti-0.8.7c/scripts/diskfree.pl
cacti-0.8.7c/scripts/linux_memory.pl
cacti-0.8.7c/scripts/unix_tcp_connections.pl
cacti-0.8.7c/scripts/webhits.pl
cacti-0.8.7c/scripts/ss_host_disk.php
cacti-0.8.7c/scripts/ss_host_cpu.php
cacti-0.8.7c/scripts/query_unix_partitions.pl
cacti-0.8.7c/scripts/3com_cable_modem.pl
cacti-0.8.7c/scripts/ss_fping.php
cacti-0.8.7c/auth_login.php
cacti-0.8.7c/cdef.php
cacti-0.8.7c/poller_export.php
[root@Cacti download]#

[root@Cacti download]# cd cacti-0.8.7c
[root@Cacti cacti-0.8.7c]# ls
about.php                color.php           graph_image.php             graph_templates_items.php  include     poller_commands.php  scripts               user_admin.php
auth_changepassword.php  data_input.php      graph.php                   graph_templates.php        index.php   poller_export.php    script_server.php     utilities.php
auth_login.php           data_queries.php    graph_settings.php          graph_view.php             install     poller.php           script_server.pl
cacti.sql                data_sources.php    graphs_items.php            graph_xport.php            lib         README               settings.php
cdef.php                 data_templates.php  graphs_new.php              host.php                   LICENSE     resource             templates_export.php
cli                      docs                graphs.php                  host_templates.php         log         rra                  templates_import.php
cmd.php                  gprint_presets.php  graph_templates_inputs.php  images                     logout.php  rra.php              tree.php

[root@Cacti cacti-0.8.7c]#




STEP 2.

Cacti 데이터 파일을 저장하기 위해 mysql에 데이터베이스를 생성한다.

[root@Cacti cacti-0.8.7c]# mysqladmin create cacti -u root -p
Enter password:
[root@Cacti cacti-0.8.7c]#


Cacti 데이터베이스에 필요한 테이블과 기본 데이터 생성하기

[root@Cacti cacti-0.8.7c]# mysql cacti < cacti.sql -u root -p
Enter password:
[root@Cacti cacti-0.8.7c]#



Cacti 데이터베이스 접근권한을 설정한다.

[root@Cacti cacti-0.8.7c]# mysql mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.75-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY '여기에 패스워드를 입력';
Query OK, 0 rows affected (0.05 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql>


mysql 권한 설정 후 권한 재설정 사항을 적용하기 위해서 flush privilesges; 명령어를 수행한 것이다.

위의 기본제공되는 cacti.sql 파일을 mysql에 저장하였다. 저장된 mysql 데이터 베이스를 아래와 같이 확인 해 본다.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cacti              |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.01 sec)

mysql>

mysql> use cacti
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_cacti           |
+---------------------------+
| cdef                      |
| cdef_items                |
| colors                    |
| data_input                |
| data_input_data           |
| data_input_fields         |
| data_local                |
| data_template             |
| data_template_data        |
| data_template_data_rra    |
| data_template_rrd         |
| graph_local               |
| graph_template_input      |
| graph_template_input_defs |
| graph_templates           |
| graph_templates_gprint    |
| graph_templates_graph     |
| graph_templates_item      |
| graph_tree                |
| graph_tree_items          |
| host                      |
| host_graph                |
| host_snmp_cache           |
| host_snmp_query           |
| host_template             |
| host_template_graph       |
| host_template_snmp_query  |
| poller                    |
| poller_command            |
| poller_item               |
| poller_output             |
| poller_reindex            |
| poller_time               |
| rra                       |
| rra_cf                    |
| settings                  |
| settings_graphs           |
| settings_tree             |
| snmp_query                |
| snmp_query_graph          |
| snmp_query_graph_rrd      |
| snmp_query_graph_rrd_sv   |
| snmp_query_graph_sv       |
| user_auth                 |
| user_auth_perms           |
| user_auth_realm           |
| user_log                  |
| version                   |
+---------------------------+
48 rows in set (0.00 sec)

mysql> quit
Bye
[root@Cacti cacti-0.8.7c]#




STEP 3.

기본 데이터 베이스를 확인한 다음 Cacti의 접속 환경설정 php 파일을 수정한다.

[root@Cacti cacti-0.8.7c]# vi include/config.php
<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2008 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDTool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 |
http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";

?>

아래와 같이 수정했다.

<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2008 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDTool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 |
http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "여기에 패스워드를 입력";
$database_port = "3306";

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";

?>




데이터파일과 로그파일이 저장될 디렉토리의 퍼미션을 변경한다.

[root@Cacti cacti-0.8.7c]# chmod 777 rra log
[root@Cacti cacti-0.8.7c]#




웹서버 디렉토리 안에 cacti 디렉토리를 심볼릭링크를 건다.

[root@Cacti cacti-0.8.7c]# ln -s /download/cacti-0.8.7c /usr/local/server/apache/htdocs/cacti
[root@Cacti cacti-0.8.7c]#




STEP 4.

RRDtool을 설치해야 한다. 필자가 써 놓은 RRDtool 설치를 보고 RRDtool을 먼저 설치한다.




STEP 5.

웹브라우저를 이용하여 cacti 링크를 걸어둔 URL로 접속 한다.




블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,

RRDtool 설치

Cacti/RRDtool 2009. 2. 16. 17:30





RRDtool은 모니터링 시스템으로 쉽게 말해 고정된 양의 테이프 같은 매체에 반복적으로 저장을 한다고 볼 수 있다.

처음 데이터가 축적 될 때는 실제 값에 가깝지만 시간이 지나면 일정한 간격으로 데이터를 평균 값을 갖기 때문에

근사치에 가까운 값으로 저장되는 것을 알 수 있다.




STEP 1.

RRDtool을 설치하기에 앞서 필요한 패키지가 있다.

libart_lgpl
libart_lgpl-devel
zlib
zlib-devel
libpng
libpng-devel
freetype
freetype-devel
net-snmp-perl
net-snmp-libs
net-snmp
net-snmp-devel
net-snmp-utils




아래 목록을 확인하면 위의 패키지는 yum을 통해서 설치를 한다.

[root@Cacti download]# yum -y install libart_lgpl libart_lgpl-devel zlib zlib-devel libpng libpng-devel freetype freetype-devel net-snmp-perl net-snmp-libs net-snmp net-snmp-devel net-snmp-utils
Setting up Install Process
Parsing package install arguments
Package libart_lgpl - 2.3.17-4.i386 is already installed.
Package zlib - 1.2.3-3.i386 is already installed.
Package zlib-devel - 1.2.3-3.i386 is already installed.
Package libpng - 2:1.2.10-7.1.el5_0.1.i386 is already installed.
Package libpng-devel - 2:1.2.10-7.1.el5_0.1.i386 is already installed.
Package freetype - 2.2.1-20.el5_2.i386 is already installed.
Package freetype-devel - 2.2.1-20.el5_2.i386 is already installed.
Package net-snmp-libs - 1:5.3.1-24.el5.i386 is already installed.
No package net-nsmp available.
Resolving Dependencies
--> Running transaction check
---> Package net-snmp-libs.i386 1:5.3.1-24.el5_2.2 set to be updated
---> Package net-snmp-devel.i386 1:5.3.1-24.el5_2.2 set to be updated
--> Processing Dependency: beecrypt-devel for package: net-snmp-devel
--> Processing Dependency: elfutils-devel for package: net-snmp-devel
--> Processing Dependency: net-snmp = 1:5.3.1 for package: net-snmp-devel
---> Package net-snmp-perl.i386 1:5.3.1-24.el5_2.2 set to be updated
--> Processing Dependency: libsensors.so.3 for package: net-snmp-perl
---> Package net-snmp-utils.i386 1:5.3.1-24.el5_2.2 set to be updated
---> Package libart_lgpl-devel.i386 0:2.3.17-4 set to be updated
--> Running transaction check
---> Package elfutils-devel.i386 0:0.125-3.el5 set to be updated
--> Processing Dependency: elfutils-devel-static = 0.125-3.el5 for package: elfutils-devel
---> Package beecrypt-devel.i386 0:4.1.2-10.1.1 set to be updated
---> Package lm_sensors.i386 0:2.10.0-3.1 set to be updated
---> Package net-snmp.i386 1:5.3.1-24.el5_2.2 set to be updated
--> Running transaction check
---> Package elfutils-devel-static.i386 0:0.125-3.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 libart_lgpl-devel       i386       2.3.17-4         base               20 k
 net-snmp-devel          i386       1:5.3.1-24.el5_2.2  updates           1.8 M
 net-snmp-perl           i386       1:5.3.1-24.el5_2.2  updates           195 k
 net-snmp-utils          i386       1:5.3.1-24.el5_2.2  updates           182 k
Updating:
 net-snmp-libs           i386       1:5.3.1-24.el5_2.2  updates           1.2 M
Installing for dependencies:
 beecrypt-devel          i386       4.1.2-10.1.1     base              160 k
 elfutils-devel          i386       0.125-3.el5      base               52 k
 elfutils-devel-static   i386       0.125-3.el5      base               78 k
 lm_sensors              i386       2.10.0-3.1       base              494 k
 net-snmp                i386       1:5.3.1-24.el5_2.2  updates           698 k

Transaction Summary
=============================================================================
Install      9 Package(s)        
Update       1 Package(s)        
Remove       0 Package(s)        

Total download size: 4.9 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : net-snmp-libs                ####################### [ 1/11]
  Installing: lm_sensors                   ####################### [ 2/11]
  Installing: net-snmp                     ####################### [ 3/11]
  Installing: beecrypt-devel               ####################### [ 4/11]
  Installing: net-snmp-perl                ####################### [ 5/11]
  Installing: net-snmp-utils               ####################### [ 6/11]
  Installing: libart_lgpl-devel            ####################### [ 7/11]
  Installing: elfutils-devel               ####################### [ 8/11]
  Installing: net-snmp-devel               ####################### [ 9/11]
  Installing: elfutils-devel-static        ####################### [10/11]
  Cleanup   : net-snmp-libs                ####################### [11/11]

Installed: libart_lgpl-devel.i386 0:2.3.17-4 net-snmp-devel.i386 1:5.3.1-24.el5_2.2 net-snmp-perl.i386 1:5.3.1-24.el5_2.2 net-snmp-utils.i386 1:5.3.1-24.el5_2.2
Dependency Installed: beecrypt-devel.i386 0:4.1.2-10.1.1 elfutils-devel.i386 0:0.125-3.el5 elfutils-devel-static.i386 0:0.125-3.el5 lm_sensors.i386 0:2.10.0-3.1 net-snmp.i386 1:5.3.1-24.el5_2.2
Updated: net-snmp-libs.i386 1:5.3.1-24.el5_2.2
Complete!

[root@Cacti download]#





STEP 2.

net-snmp 패키지가 설치 되었으니 아래와 같이 수정을 한다.

[root@Cacti download]# vi /etc/snmp/snmpd.conf
####
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec notConfigUser  default       public

아래와 같이 수정한다.

####
# First, map the community name "public" into a "security name"

#       sec.name  source          community
#com2sec notConfigUser  default       public

com2sec public  default public


####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

역시 아래와 같이 수정한다.

####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
#group   notConfigGroup v1           notConfigUser
#group   notConfigGroup v2c           notConfigUser

group   public  v1      public 
group   public  v2c     public




####
# Third, create a view for us to let the group have rights to:

# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1

아래와 같이 수정한다.

####
# Third, create a view for us to let the group have rights to:

# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
#view    systemview    included   .1.3.6.1.2.1.1
#view    systemview    included   .1.3.6.1.2.1.25.1.1

view    all     included        .1


####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none

이것 역시 아래와 같이 수정한다.

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
#access  notConfigGroup ""      any       noauth    exact  systemview none none

access  public  ""      any     noauth  exact   all     none    none


설정을 완료하였다면 vi 에디터를 빠져나와 snmpd 데몬을 다시 시작한다.

[root@Cacti download]# /etc/rc.d/init.d/snmpd start
Starting snmpd:                                            [  OK  ]
[root@Cacti download]#




STEP 3.

RRDtool을 다운 받도록 하자.

[root@Cacti download]# lftpget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.23.tar.gz
[root@Cacti download]#

상위 버전으로 설치를 했을 때 변경된 부분의 경로가 바뀌었는지 설치가 되지 않아 1.2.23 버전으로 설치를 하였다.


RRDtool을 설치 할 수 있게 압축을 푼다.

[root@Cacti download]# tar xvfz rrdtool-1.2.23.tar.gz                                 
rrdtool-1.2.23/
rrdtool-1.2.23/doc/
rrdtool-1.2.23/doc/rrdtool-xport.dtd
rrdtool-1.2.23/doc/rrdtool-dump.dtd
rrdtool-1.2.23/doc/rrdtutorial.txt
rrdtool-1.2.23/doc/rrdresize.txt
rrdtool-1.2.23/doc/rrdgraph_data.txt
rrdtool-1.2.23/doc/rrdcreate.txt
rrdtool-1.2.23/doc/rrdlastupdate.txt
rrdtool-1.2.23/doc/rrdlast.txt
rrdtool-1.2.23/doc/rrdgraph.txt
rrdtool-1.2.23/doc/rrdcgi.txt
rrdtool-1.2.23/doc/rrdbuild.txt
rrdtool-1.2.23/doc/rrdtune.txt
rrdtool-1.2.23/doc/rrdinfo.txt
rrdtool-1.2.23/doc/rrd-beginners.txt
rrdtool-1.2.23/doc/rrdtool.txt
rrdtool-1.2.23/doc/rrdgraph_rpn.txt
rrdtool-1.2.23/doc/rrdfirst.txt
rrdtool-1.2.23/doc/rpntutorial.txt
rrdtool-1.2.23/doc/rrdxport.txt
rrdtool-1.2.23/doc/rrdthreads.txt
rrdtool-1.2.23/doc/rrdgraph_graph.txt
rrdtool-1.2.23/doc/rrdfetch.txt
rrdtool-1.2.23/doc/cdeftutorial.txt
rrdtool-1.2.23/doc/rrdupdate.txt
rrdtool-1.2.23/doc/rrdrestore.txt
rrdtool-1.2.23/doc/rrdgraph_examples.txt
rrdtool-1.2.23/doc/rrddump.txt
rrdtool-1.2.23/doc/bin_dec_hex.txt
rrdtool-1.2.23/doc/rrdtutorial.1
rrdtool-1.2.23/doc/rrdresize.1
rrdtool-1.2.23/doc/rrdgraph_data.1
rrdtool-1.2.23/doc/rrdcreate.1
rrdtool-1.2.23/doc/rrdlastupdate.1
rrdtool-1.2.23/doc/rrdlast.1
rrdtool-1.2.23/doc/rrdgraph.1
rrdtool-1.2.23/doc/rrdcgi.1
rrdtool-1.2.23/doc/rrdbuild.1
rrdtool-1.2.23/doc/rrdtune.1
rrdtool-1.2.23/doc/rrdinfo.1
rrdtool-1.2.23/doc/rrd-beginners.1
rrdtool-1.2.23/doc/rrdtool.1
rrdtool-1.2.23/doc/rrdgraph_rpn.1
rrdtool-1.2.23/doc/rrdfirst.1
rrdtool-1.2.23/doc/rpntutorial.1
rrdtool-1.2.23/doc/rrdxport.1
rrdtool-1.2.23/doc/rrdthreads.1
rrdtool-1.2.23/doc/rrdgraph_graph.1
rrdtool-1.2.23/doc/rrdfetch.1
rrdtool-1.2.23/doc/cdeftutorial.1
rrdtool-1.2.23/doc/rrdupdate.1
rrdtool-1.2.23/doc/rrdrestore.1
rrdtool-1.2.23/doc/rrdgraph_examples.1
rrdtool-1.2.23/doc/rrddump.1
rrdtool-1.2.23/doc/bin_dec_hex.1
rrdtool-1.2.23/doc/RRDp.html
rrdtool-1.2.23/doc/RRDs.html
rrdtool-1.2.23/doc/rrdtutorial.html
rrdtool-1.2.23/doc/rrdresize.html
rrdtool-1.2.23/doc/rrdgraph_data.html
rrdtool-1.2.23/doc/rrdcreate.html
rrdtool-1.2.23/doc/rrdlastupdate.html
rrdtool-1.2.23/doc/rrdlast.html
rrdtool-1.2.23/doc/rrdgraph.html
rrdtool-1.2.23/doc/rrdcgi.html
rrdtool-1.2.23/doc/rrdbuild.html
rrdtool-1.2.23/doc/rrdtune.html
rrdtool-1.2.23/doc/rrdinfo.html
rrdtool-1.2.23/doc/rrd-beginners.html
rrdtool-1.2.23/doc/rrdtool.html
rrdtool-1.2.23/doc/rrdgraph_rpn.html
rrdtool-1.2.23/doc/rrdfirst.html
rrdtool-1.2.23/doc/rpntutorial.html
rrdtool-1.2.23/doc/rrdxport.html
rrdtool-1.2.23/doc/rrdthreads.html
rrdtool-1.2.23/doc/rrdgraph_graph.html
rrdtool-1.2.23/doc/rrdfetch.html
rrdtool-1.2.23/doc/cdeftutorial.html
rrdtool-1.2.23/doc/rrdupdate.html
rrdtool-1.2.23/doc/rrdrestore.html
rrdtool-1.2.23/doc/rrdgraph_examples.html
rrdtool-1.2.23/doc/rrddump.html
rrdtool-1.2.23/doc/bin_dec_hex.html
rrdtool-1.2.23/doc/rrdtutorial.pod
rrdtool-1.2.23/doc/rrdresize.pod
rrdtool-1.2.23/doc/rrdgraph_data.pod
rrdtool-1.2.23/doc/rrdcreate.pod
rrdtool-1.2.23/doc/rrdlastupdate.pod
rrdtool-1.2.23/doc/rrdlast.pod
rrdtool-1.2.23/doc/rrdgraph.pod
rrdtool-1.2.23/doc/rrdcgi.pod
rrdtool-1.2.23/doc/rrdbuild.pod
rrdtool-1.2.23/doc/rrdtune.pod
rrdtool-1.2.23/doc/rrdinfo.pod
rrdtool-1.2.23/doc/rrd-beginners.pod
rrdtool-1.2.23/doc/rrdtool.pod
rrdtool-1.2.23/doc/rrdgraph_rpn.pod
rrdtool-1.2.23/doc/rrdfirst.pod
rrdtool-1.2.23/doc/rpntutorial.pod
rrdtool-1.2.23/doc/rrdxport.pod
rrdtool-1.2.23/doc/rrdthreads.pod
rrdtool-1.2.23/doc/rrdgraph_graph.pod
rrdtool-1.2.23/doc/rrdfetch.pod
rrdtool-1.2.23/doc/cdeftutorial.pod
rrdtool-1.2.23/doc/rrdupdate.pod
rrdtool-1.2.23/doc/rrdrestore.pod
rrdtool-1.2.23/doc/rrdgraph_examples.pod
rrdtool-1.2.23/doc/rrddump.pod
rrdtool-1.2.23/doc/bin_dec_hex.pod
rrdtool-1.2.23/doc/Makefile.in
rrdtool-1.2.23/doc/Makefile.am
rrdtool-1.2.23/src/
rrdtool-1.2.23/src/get_ver.awk
rrdtool-1.2.23/src/rrd_thread_safe_nt.c
rrdtool-1.2.23/src/win32comp.c
rrdtool-1.2.23/src/DejaVuSansMono-Roman.ttf
rrdtool-1.2.23/src/strftime.h
rrdtool-1.2.23/src/strftime.c
rrdtool-1.2.23/src/rrdupdate.c
rrdtool-1.2.23/src/rrd_cgi.c
rrdtool-1.2.23/src/rrd_not_thread_safe.c
rrdtool-1.2.23/src/rrd_thread_safe.c
rrdtool-1.2.23/src/rrd_update.c
rrdtool-1.2.23/src/rrd_rpncalc.c
rrdtool-1.2.23/src/rrd_nan_inf.c
rrdtool-1.2.23/src/rrd_open.c
rrdtool-1.2.23/src/rrd_error.c
rrdtool-1.2.23/src/rrd_info.c
rrdtool-1.2.23/src/rrd_format.c
rrdtool-1.2.23/src/rrd_diff.c
rrdtool-1.2.23/src/rrd_hw.c
rrdtool-1.2.23/src/parsetime.c
rrdtool-1.2.23/src/rrd_getopt1.c
rrdtool-1.2.23/src/rrd_getopt.c
rrdtool-1.2.23/src/rrd_tool.c
rrdtool-1.2.23/src/rrd_afm_data.c
rrdtool-1.2.23/src/rrd_afm.c
rrdtool-1.2.23/src/rrd_gfx.c
rrdtool-1.2.23/src/art_rgba_svp.c
rrdtool-1.2.23/src/rrd_xport.c
rrdtool-1.2.23/src/rrd_version.c
rrdtool-1.2.23/src/rrd_tune.c
rrdtool-1.2.23/src/rrd_restore.c
rrdtool-1.2.23/src/rrd_resize.c
rrdtool-1.2.23/src/rrd_first.c
rrdtool-1.2.23/src/rrd_lastupdate.c
rrdtool-1.2.23/src/rrd_last.c
rrdtool-1.2.23/src/rrd_graph_helper.c
rrdtool-1.2.23/src/rrd_graph.c
rrdtool-1.2.23/src/rrd_fetch.c
rrdtool-1.2.23/src/rrd_dump.c
rrdtool-1.2.23/src/rrd_create.c
rrdtool-1.2.23/src/pngsize.c
rrdtool-1.2.23/src/hash_32.c
rrdtool-1.2.23/src/Makefile.in
rrdtool-1.2.23/src/Makefile.am
rrdtool-1.2.23/src/rrd_is_thread_safe.h
rrdtool-1.2.23/src/rrd_afm_data.h
rrdtool-1.2.23/src/rrd_afm.h
rrdtool-1.2.23/src/rrd_graph.h
rrdtool-1.2.23/src/fnv.h
rrdtool-1.2.23/src/rrd_nan_inf.h
rrdtool-1.2.23/src/rrd_rpncalc.h
rrdtool-1.2.23/src/rrd_hw.h
rrdtool-1.2.23/src/rrd_xport.h
rrdtool-1.2.23/src/rrd_tool.h
rrdtool-1.2.23/src/rrd_format.h
rrdtool-1.2.23/src/parsetime.h
rrdtool-1.2.23/src/rrd_getopt.h
rrdtool-1.2.23/src/rrd_gfx.h
rrdtool-1.2.23/src/unused.h
rrdtool-1.2.23/src/art_rgba_svp.h
rrdtool-1.2.23/src/rrd.h
rrdtool-1.2.23/favicon.ico
rrdtool-1.2.23/rrdtool.spec
rrdtool-1.2.23/THREADS
rrdtool-1.2.23/CONTRIBUTORS
rrdtool-1.2.23/WIN32-BUILD-TIPS.txt
rrdtool-1.2.23/CHANGES
rrdtool-1.2.23/COPYRIGHT
rrdtool-1.2.23/missing
rrdtool-1.2.23/ltmain.sh
rrdtool-1.2.23/install-sh
rrdtool-1.2.23/depcomp
rrdtool-1.2.23/config.sub
rrdtool-1.2.23/config.guess
rrdtool-1.2.23/compile
rrdtool-1.2.23/TODO
rrdtool-1.2.23/NEWS
rrdtool-1.2.23/COPYING
rrdtool-1.2.23/configure
rrdtool-1.2.23/rrd_config.h.in
rrdtool-1.2.23/Makefile.in
rrdtool-1.2.23/Makefile.am
rrdtool-1.2.23/aclocal.m4
rrdtool-1.2.23/configure.ac
rrdtool-1.2.23/acinclude.m4
rrdtool-1.2.23/README
rrdtool-1.2.23/win32/
rrdtool-1.2.23/win32/rrd_config.h.msvc
rrdtool-1.2.23/win32/Makefile
rrdtool-1.2.23/win32/rrdtool.vcproj
rrdtool-1.2.23/win32/rrdtool.dsw
rrdtool-1.2.23/win32/rrdtool.dsp
rrdtool-1.2.23/win32/rrd.vcproj
rrdtool-1.2.23/win32/rrd.dsp
rrdtool-1.2.23/win32/config.h
rrdtool-1.2.23/netware/
rrdtool-1.2.23/netware/Makefile
rrdtool-1.2.23/examples/
rrdtool-1.2.23/examples/cgi-demo.cgi.in
rrdtool-1.2.23/examples/stripes.pl.in
rrdtool-1.2.23/examples/shared-demo.pl.in
rrdtool-1.2.23/examples/piped-demo.pl.in
rrdtool-1.2.23/examples/perftest.pl.in
rrdtool-1.2.23/examples/minmax.pl.in
rrdtool-1.2.23/examples/bigtops.pl.in
rrdtool-1.2.23/examples/Makefile.in
rrdtool-1.2.23/examples/Makefile.am
rrdtool-1.2.23/examples/4charts.pl.in
rrdtool-1.2.23/bindings/
rrdtool-1.2.23/bindings/Makefile.in
rrdtool-1.2.23/bindings/Makefile.am
rrdtool-1.2.23/bindings/ruby/
rrdtool-1.2.23/bindings/ruby/test.rb
rrdtool-1.2.23/bindings/ruby/main.c
rrdtool-1.2.23/bindings/ruby/extconf.rb
rrdtool-1.2.23/bindings/ruby/README
rrdtool-1.2.23/bindings/ruby/CHANGES
rrdtool-1.2.23/bindings/python/
rrdtool-1.2.23/bindings/python/setup.py
rrdtool-1.2.23/bindings/python/rrdtoolmodule.c
rrdtool-1.2.23/bindings/python/rrd_extra.h
rrdtool-1.2.23/bindings/python/README
rrdtool-1.2.23/bindings/python/COPYING
rrdtool-1.2.23/bindings/python/AUTHORS
rrdtool-1.2.23/bindings/python/ACKNOWLEDGEMENT
rrdtool-1.2.23/bindings/perl-shared/
rrdtool-1.2.23/bindings/perl-shared/RRDs.xs
rrdtool-1.2.23/bindings/perl-shared/RRDs.pm
rrdtool-1.2.23/bindings/perl-shared/Makefile.PL
rrdtool-1.2.23/bindings/perl-shared/README
rrdtool-1.2.23/bindings/perl-shared/MANIFEST
rrdtool-1.2.23/bindings/perl-shared/ntmake.pl
rrdtool-1.2.23/bindings/perl-shared/t/
rrdtool-1.2.23/bindings/perl-shared/t/base.t
rrdtool-1.2.23/bindings/perl-piped/
rrdtool-1.2.23/bindings/perl-piped/RRDp.pm
rrdtool-1.2.23/bindings/perl-piped/Makefile.PL
rrdtool-1.2.23/bindings/perl-piped/README
rrdtool-1.2.23/bindings/perl-piped/MANIFEST
rrdtool-1.2.23/bindings/perl-piped/t/
rrdtool-1.2.23/bindings/perl-piped/t/base.t
rrdtool-1.2.23/bindings/tcl/
rrdtool-1.2.23/bindings/tcl/tclrrd.c
rrdtool-1.2.23/bindings/tcl/ifOctets.tcl.in
rrdtool-1.2.23/bindings/tcl/Makefile.in
rrdtool-1.2.23/bindings/tcl/Makefile.am
rrdtool-1.2.23/bindings/tcl/README
[root@Cacti download]#




STEP 4.

configure를 한다. tcl, python, ruby와는 연동을 하지 않도록 하고, perl만 연동 하게 설치를 한다.

[root@Cacti download]# cd rrdtool-1.2.23
[root@Cacti rrdtool-1.2.23]# ls
acinclude.m4  CHANGES       config.sub    CONTRIBUTORS  depcomp   favicon.ico  Makefile.am  netware  rrd_config.h.in  THREADS  WIN32-BUILD-TIPS.txt
aclocal.m4    compile       configure     COPYING       doc       install-sh   Makefile.in  NEWS     rrdtool.spec     TODO
bindings      config.guess  configure.ac  COPYRIGHT     examples  ltmain.sh    missing      README   src              win32

[root@Cacti rrdtool-1.2.23]#


[root@Cacti rrdtool-1.2.23]# ./configure --prefix=/usr/local/server/rrdtool --disable-tcl --disable-python --disable-ruby
........... 생략 ...................
checking for ruby... no
checking if ruby modules can be built... No .. Ruby not found or disabled
checking for gnroff... /usr/bin/gnroff
checking for groff... /usr/bin/groff

Apply Configuration Information
configure: creating ./config.status
config.status: creating examples/shared-demo.pl
config.status: creating examples/piped-demo.pl
config.status: creating examples/stripes.pl
config.status: creating examples/bigtops.pl
config.status: creating examples/minmax.pl
config.status: creating examples/4charts.pl
config.status: creating examples/perftest.pl
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/tcl/Makefile
config.status: creating bindings/tcl/ifOctets.tcl
config.status: creating Makefile
config.status: creating rrd_config.h
config.status: executing depfiles commands
config.status: executing default commands
checking in... and out again
ordering CD from
http://tobi.oetiker.ch/wish .... just kidding ;-)

----------------------------------------------------------------
Config is DONE!

          With MMAP IO: yes
          Perl Modules: perl_piped perl_shared
           Perl Binary: /usr/bin/perl
          Perl Version: 5.8.8
          Perl Options: PREFIX=/usr/local/server/rrdtool LIB=/usr/local/server/rrdtool/lib/perl/5.8.8
          Ruby Modules:
           Ruby Binary: no
          Ruby Options: sitedir=/usr/local/server/rrdtool/lib/ruby
    Build Tcl Bindings: no
 Build Python Bindings: no
          Build rrdcgi: yes
       Build librrd MT: yes


Type 'make' to compile the software and use 'make install' to
install everything to: /usr/local/server/rrdtool.

       ... that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to
http://tobi.oetiker.ch/wish and
place an order.

                               -- Tobi Oetiker <tobi@oetiker.ch>
----------------------------------------------------------------
[root@Cacti rrdtool-1.2.23]#




STEP 5.

make와 make install을 한다.


[root@Cacti rrdtool-1.2.23]# make
......... 길어서 생략 ................
sed 's,@''exec_prefix@,/usr/local/server/rrdtool,' cgi-demo.cgi.in > cgi-demo.cgi
chmod a+x cgi-demo.cgi
make[2]: Leaving directory `/download/rrdtool-1.2.23/examples'
Making all in bindings
make[2]: Entering directory `/download/rrdtool-1.2.23/bindings'
make[3]: Entering directory `/download/rrdtool-1.2.23/bindings'
cd perl-piped && /usr/bin/perl Makefile.PL PREFIX=/usr/local/server/rrdtool LIB=/usr/local/server/rrdtool/lib/perl/5.8.8
Checking if your kit is complete...
Looks good
Writing Makefile for RRDp
cd perl-piped && make
make[4]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-piped'
cp RRDp.pm blib/lib/RRDp.pm
Manifying blib/man3/RRDp.3pm
make[4]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-piped'
cd perl-shared && /usr/bin/perl Makefile.PL  PREFIX=/usr/local/server/rrdtool LIB=/usr/local/server/rrdtool/lib/perl/5.8.8 RPATH=/usr/local/server/rrdtool/lib
Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
cd perl-shared && make
make[4]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-shared'
cp RRDs.pm blib/lib/RRDs.pm
cp ntmake.pl blib/lib/ntmake.pl
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap  RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c
gcc -c  -I../../src -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"1.2023\" -DXS_VERSION=\"1.2023\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DPERLPATCHLEVEL=8 RRDs.c
RRDs.c: In function ?S_RRDs_xport?
RRDs.c:428: warning: unused variable ?arg?
RRDs.c:427: warning: unused variable ?ETVAL?
RRDs.xs:332: warning: unused variable ?ow_cnt?
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib RRDs.o -L../../src/.libs/ -Wl,--rpath -Wl,/usr/local/server/rrdtool/lib -lrrd -lm -o blib/arch/auto/RRDs/RRDs.so   \
                \
         
chmod 755 blib/arch/auto/RRDs/RRDs.so
cp RRDs.bs blib/arch/auto/RRDs/RRDs.bs
chmod 644 blib/arch/auto/RRDs/RRDs.bs
Manifying blib/man3/RRDs.3pm
make[4]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-shared'
make[3]: Leaving directory `/download/rrdtool-1.2.23/bindings'
make[2]: Leaving directory `/download/rrdtool-1.2.23/bindings'
make[2]: Entering directory `/download/rrdtool-1.2.23'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/download/rrdtool-1.2.23'
make[1]: Leaving directory `/download/rrdtool-1.2.23'

[root@Cacti rrdtool-1.2.23]#


[root@Cacti rrdtool-1.2.23]# make install
........... 생략 .............
test -z "/usr/local/server/rrdtool/share/rrdtool/examples" || mkdir -p -- "/usr/local/server/rrdtool/share/rrdtool/examples"
 /usr/bin/install -c 'cgi-demo.cgi' '/usr/local/server/rrdtool/share/rrdtool/examples/cgi-demo.cgi'
 /usr/bin/install -c 'piped-demo.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/piped-demo.pl'
 /usr/bin/install -c 'shared-demo.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/shared-demo.pl'
 /usr/bin/install -c 'stripes.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/stripes.pl'
 /usr/bin/install -c 'bigtops.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/bigtops.pl'
 /usr/bin/install -c 'minmax.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/minmax.pl'
 /usr/bin/install -c '4charts.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/4charts.pl'
 /usr/bin/install -c 'perftest.pl' '/usr/local/server/rrdtool/share/rrdtool/examples/perftest.pl'
make[2]: Leaving directory `/download/rrdtool-1.2.23/examples'
make[1]: Leaving directory `/download/rrdtool-1.2.23/examples'
Making install in bindings
make[1]: Entering directory `/download/rrdtool-1.2.23/bindings'
make[2]: Entering directory `/download/rrdtool-1.2.23/bindings'
cd perl-piped && make
make[3]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-piped'
make[3]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-piped'
cd perl-shared && make
make[3]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-shared'
make[3]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-shared'
make[3]: Entering directory `/download/rrdtool-1.2.23/bindings'
make[3]: Nothing to be done for `install-exec-am'.
test -f perl-piped/Makefile && cd perl-piped && make install || true
make[4]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-piped'
Installing /usr/local/server/rrdtool/lib/perl/5.8.8/RRDp.pm
Installing /usr/local/server/rrdtool/share/man/man3/RRDp.3pm
Writing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/RRDp/.packlist
Appending installation info to /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/perllocal.pod
make[4]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-piped'
test -f perl-shared/Makefile && cd perl-shared && make install || true
make[4]: Entering directory `/download/rrdtool-1.2.23/bindings/perl-shared'
Installing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.bs
Installing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/RRDs/RRDs.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/ntmake.pl
Installing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/RRDs.pm
Installing /usr/local/server/rrdtool/share/man/man3/RRDs.3pm
Writing /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/RRDs/.packlist
Appending installation info to /usr/local/server/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/perllocal.pod
make[4]: Leaving directory `/download/rrdtool-1.2.23/bindings/perl-shared'
test -f ruby/Makefile && cd ruby && make EPREFIX=/usr/local/server/rrdtool sitedir=/usr/local/server/rrdtool/lib/ruby install || true
test -d python/build && cd python && env LIBDIR=/usr/local/server/rrdtool/lib  setup.py install --skip-build --prefix=/usr/local/server/rrdtool --exec-prefix=/usr/local/server/rrdtool || true
make[3]: Leaving directory `/download/rrdtool-1.2.23/bindings'
make[2]: Leaving directory `/download/rrdtool-1.2.23/bindings'
make[1]: Leaving directory `/download/rrdtool-1.2.23/bindings'
make[1]: Entering directory `/download/rrdtool-1.2.23'
make[2]: Entering directory `/download/rrdtool-1.2.23'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/download/rrdtool-1.2.23'
make[1]: Leaving directory `/download/rrdtool-1.2.23'
[root@Cacti rrdtool-1.2.23]#



이로써 RRDtool의 설치가 완료 되었다.

블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





STEP 1.

[root@Cacti /]# pwd
/
[root@Cacti /]# cd /download/
[root@Cacti download]# ll
total 50240
drwxr-xr-x 12 celltwo users     4096 Feb 13 16:22 httpd-2.2.11
-rw-r--r--  1 root    root   6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
drwxr-xr-x 39     503 users     4096 Feb 13 15:36 mysql-5.0.75
-rw-r--r--  1 root    root  32514150 Dec 19 03:01 mysql-5.0.75.tar.gz
-rw-r--r--  1 root    root  12046184 May  1  2008 php-5.2.6.tar.gz

[root@Cacti download]#


위와 같이 앞에서 PHP를 다운 받은 디렉토리로 이동을 한 후 압축을 해제 하자.

[root@Cacti download]# tar xvfz php-5.2.6.tar.gz
.......... 글 몇개 읽으면 알겠지만 길면 생략한다 ..............
php-5.2.6/CODING_STANDARDS
php-5.2.6/mkinstalldirs
php-5.2.6/README.TESTING2
php-5.2.6/footer
php-5.2.6/header
php-5.2.6/netware/
php-5.2.6/netware/start.c
php-5.2.6/netware/sendmail_nw.h
php-5.2.6/php5.spec.in
php-5.2.6/UPGRADING
php-5.2.6/cvsclean
php-5.2.6/README.EXTENSIONS
php-5.2.6/README.QNX
php-5.2.6/run-tests.php
php-5.2.6/acinclude.m4
php-5.2.6/README.SELF-CONTAINED-EXTENSIONS
php-5.2.6/stub.c
php-5.2.6/buildconf
php-5.2.6/stamp-h.in
php-5.2.6/README.input_filter
php-5.2.6/generated_lists
php-5.2.6/README.Zeus
php-5.2.6/INSTALL
php-5.2.6/TODO-PHP5
php-5.2.6/EXTENSIONS
php-5.2.6/server-tests-config.php
php-5.2.6/snapshot
php-5.2.6/php.gif
php-5.2.6/README.PARAMETER_PARSING_API
php-5.2.6/acconfig.h
php-5.2.6/README.PHP4-TO-PHP5-THIN-CHANGES
php-5.2.6/CREDITS
php-5.2.6/README.UPDATE_5_2
php-5.2.6/README.UNIX-BUILD-SYSTEM
php-5.2.6/buildconf.bat

[root@Cacti download]#




STEP 2.

configure를 하기 위해서 압축을 푼 php 디렉토리로 이동을 한 후 configure를 한다.

[root@Cacti download]# cd php-5.2.6
[root@Cacti php-5.2.6]# ./configure --prefix=/usr/local/server/php --with-apxs2=/usr/local/server/apache/bin/apxs --with-mysql=/usr/local/server/mysql --with-config-file-path=/usr/local/server/apache/conf --disable-debug --enable-safe-mode --enable-track-vars --enable-sockets --with-mod_charset --with-charset=utf8 --with-xml --with-language=korean --enable-mailparse --enable-calender --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-url-includes --enable-trans-id --enable-inline-optimization --enable-bcmath --with-jpeg --with-png --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --with-gd --with-ttf --with-gettext --enable-sigchild --enable-mbstring
................ 생략 ................
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool

Generating files
updating cache ./config.cache
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--enable-track-vars
--with-mod_charset
--with-charset=utf8
--with-xml
--with-language=korean
--enable-mailparse
--enable-calender
--enable-url-includes
--enable-trans-id
--with-jpeg
--with-png
--with-freetype=dir=/usr

Check './configure --help' for available options

[root@Cacti php-5.2.6]#


--prefix=/usr/local/server/php는 php가 설치될 디렉토리 경로이다.
--with-apxs2=/usr/local/server/apache/bin/apxs는 Apache의 apxs를 이용해 아파치에 모듈을 적재한다.
--with-mysql=/usr/local/server/mysql은 MySQL과 연동한다.
--with-config-file-path=/usr/local/server/apache/conf는 php의 환경설정 파일인 php.ini가 생성 될 위치이다.

그 외 각종 라이브러리를 포함하는 옵션이다.



STEP 3.

make와 make install을 실행한다.

[root@Cacti php-5.2.6]# make && make install
................ 생략 .....................
/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lcrypt -lrt -lmysqlclient -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt  -o sapi/cli/php

Build complete.
Don't forget to run 'make test'.

Installing PHP SAPI module:       apache2handler
/usr/local/server/apache/build/instdso.sh SH_LIBTOOL='/usr/local/server/apache/build/libtool' libphp5.la /usr/local/server/apache/modules
/usr/local/server/apache/build/libtool --mode=install cp libphp5.la /usr/local/server/apache/modules/
cp .libs/libphp5.so /usr/local/server/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/server/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /download/php-5.2.6/libs'
chmod 755 /usr/local/server/apache/modules/libphp5.so
[activating module `php5' in /usr/local/server/apache/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/server/php/bin/
Installing PHP CLI man page:      /usr/local/server/php/man/man1/
Installing build environment:     /usr/local/server/php/lib/php/build/
Installing header files:          /usr/local/server/php/include/php/
Installing helper programs:       /usr/local/server/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/server/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/server/php/lib/php/
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Archive_Tar    - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR           - installed: 1.7.1
Wrote PEAR system config file at: /usr/local/server/php/etc/pear.conf
You may want to add: /usr/local/server/php/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/server/php/include/php/ext/pdo/

[root@Cacti php-5.2.6]#




STEP 4.

PHP의 환경 설정을 한다. /usr/local/server/apache/conf에 php.ini라는 이름으로 복사 한다.

[root@Cacti php-5.2.6]# cp php.ini-dist /usr/local/server/apache/conf/php.ini
[root@Cacti php-5.2.6]#


Apache와 연동을 위해서 httpd.conf 파일을 수정을 해야 한다.

[root@Cacti php-5.2.6]# vi /usr/local/server/apache/conf/httpd.conf
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#  
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


위와 같은 부분에 아래와 같이 추가 시켜준다.

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#  
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>



<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
   
    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi
   
    # For type maps (negotiated resources):
    #AddHandler type-map var
   
    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

위 와 같은 문구에 아래와 같이 추가 시켜준다.

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
   
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi
   
    # For type maps (negotiated resources):
    #AddHandler type-map var
   
    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>




STEP 5.

PHP가 설치가 완료 되었으니 테스트를 해 본다.

[root@Cacti php-5.2.6]# /etc/init.d/httpd restart
httpd not running, trying to start
[root@Cacti php-5.2.6]#


테스트 페이지를 만들어서 php의 정보를 보여주는 함수를 사용해 본다.

[root@Cacti php-5.2.6]# vi /usr/local/server/apache/htdocs/phpinfo.php
<? phpinfo(); ?>


아래와 같이 웹서버에 출력이 되면, PHP 설치가 완료 된다.

블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





STEP 1.

[root@Cacti /]# cd download/
[root@Cacti download]# ll
total 50236
-rw-r--r--  1 root root   6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
drwxr-xr-x 39  503 users     4096 Feb 13 15:36 mysql-5.0.75
-rw-r--r--  1 root root  32514150 Dec 19 03:01 mysql-5.0.75.tar.gz
-rw-r--r--  1 root root  12046184 May  1  2008 php-5.2.6.tar.gz

[root@Cacti download]#



설치에 앞서 Apache가 있는 경로에서 압축을 푼다.

[root@Cacti download]# tar xvfz httpd-2.2.11.tar.gz
.... 길어서 생략 ....
httpd-2.2.11/modules/metadata/NWGNUexpires
httpd-2.2.11/modules/metadata/NWGNUusertrk
httpd-2.2.11/modules/NWGNUmakefile
httpd-2.2.11/modules/README
httpd-2.2.11/modules/debug/
httpd-2.2.11/modules/debug/NWGNUmodbucketeer
httpd-2.2.11/modules/debug/mod_bucketeer.c
httpd-2.2.11/modules/debug/config.m4
httpd-2.2.11/modules/debug/Makefile.in
httpd-2.2.11/modules/debug/mod_bucketeer.dsp
httpd-2.2.11/modules/debug/NWGNUmoddumpio
httpd-2.2.11/modules/debug/mod_dumpio.c
httpd-2.2.11/modules/debug/NWGNUmakefile
httpd-2.2.11/modules/debug/mod_dumpio.dsp
httpd-2.2.11/modules/debug/README
httpd-2.2.11/README
httpd-2.2.11/apachenw.mcp.zip
httpd-2.2.11/buildconf
httpd-2.2.11/libhttpd.dsp
httpd-2.2.11/LAYOUT
httpd-2.2.11/.deps
[root@Cacti download]# cd httpd-2.2.11
[root@Cacti httpd-2.2.11]#




STEP 2.

configure를 실행한다.

[root@Cacti httpd-2.2.11]# ./configure --prefix=/usr/local/server/apache --enable-mods-shared=all --enable-so --enable-rewrite
........... 여기도 길어서 생략 ...............
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
[root@Cacti httpd-2.2.11]#

--prefix=/usr/local/server/apache는 /usr/local/server/apache에 설치한다.

--enable-mods-shared=all은 DSO모드라고 한다는데, 모듈이 추가로 설치 되었을 때 다시 컴파일 하지 않고 추가 할 수 있어서 좋다고 한다.

--enable-so는 DSO모드를 활성화 한다고 한다.

--enable-rewrite는 URL 재작성 모듈을 활성화 한다.



STEP 3.

make와 make install을 한다.

[root@Cacti httpd-2.2.11]# make && make install
......... 생략 ...........
make[2]: Entering directory `/download/httpd-2.2.11/support'
make[2]: Leaving directory `/download/httpd-2.2.11/support'

Installing configuration files
mkdir /usr/local/server/apache/conf
mkdir /usr/local/server/apache/conf/extra
mkdir /usr/local/server/apache/conf/original
mkdir /usr/local/server/apache/conf/original/extra
Installing HTML documents
mkdir /usr/local/server/apache/htdocs
Installing error documents
mkdir /usr/local/server/apache/error
Installing icons
mkdir /usr/local/server/apache/icons
mkdir /usr/local/server/apache/logs
Installing CGIs
mkdir /usr/local/server/apache/cgi-bin
Installing header files
Installing build system files
Installing man pages and online manual
mkdir /usr/local/server/apache/man
mkdir /usr/local/server/apache/man/man1
mkdir /usr/local/server/apache/man/man8
mkdir /usr/local/server/apache/manual
make[1]: Leaving directory `/download/httpd-2.2.11'
[root@Cacti httpd-2.2.11]#





STEP 4.

Apache를 자동 실행하기 위해 설정하고, chkconfig를 할 수 있게 하기 위해서 실행스크립트 파일에 순서대로 추가한다.

[root@Cacti httpd-2.2.11]# cp /usr/local/server/apache/bin/apachectl /etc/init.d/httpd
[root@Cacti httpd-2.2.11]# vi /etc/init.d/httpd

#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    
http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache.  Written by Marc Slemko, 1997/08/23

위 내용에 아래와 같이 추가한다.

#!/bin/sh
#
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/server/apache/bin/apachectl
# config: /usr/local/server/apache/conf/httpd.conf
# pidfile: /usr/local/server/apache/logs/httpd.pid

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#    
http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache.  Written by Marc Slemko, 1997/08/23


[root@Cacti httpd-2.2.11]# chkconfig --add httpd
[root@Cacti httpd-2.2.11]# chkconfig --list | grep httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@Cacti httpd-2.2.11]#




STEP 5.

Apache의 환경을 설정한다.

[root@Cacti httpd-2.2.11]# vi /usr/local/server/apache/conf/httpd.conf
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon

</IfModule>
</IfModule>

위 부분을 아래(참고로 위 부분을 찾아서 변경하세요 ^^)와 같이 변경 한다.

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User nobody
Group nobody

</IfModule>
</IfModule>


# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName
www.example.com:80

위 부분을 아래와 같이 주석을 제거해 준다. 그리고 IP에 맞게 웹서버를 등록 해 준다.

필자의 경우에는 DNS 서버를 올리지 않았기 때문에 IP를 입력 하였다.

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#

ServerName 192.168.100.2:80



이제 Apache 설치는 완료 되었으며 Apache를 실행하면 된다.

[root@Cacti httpd-2.2.11]# /etc/init.d/httpd start
[root@Cacti httpd-2.2.11]#


웹서버가 뜨는 것을 확인 할 수 있다.

위 스샷과 같이 안 나온다면, 리눅스 설치 시 방화벽에 http 포트를 열어주었는지 확인을 해 보기 바란다.
블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





STEP 1.

[root@Cacti download]# pwd
/download
[root@Cacti download]# ll
total 50232
-rw-r--r-- 1 root root  6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
-rw-r--r-- 1 root root 32514150 Dec 19 03:01 mysql-5.0.75.tar.gz
-rw-r--r-- 1 root root 12046184 May  1  2008 php-5.2.6.tar.gz

[root@Cacti download]#

위 경로에서 다운 받은 mysql 파일의 압축을 푼다.

[root@Cacti download]# tar xvfz mysql-5.0.75.tar.gz
..... 너무 길어서 생략..........
mysql-5.0.75/win/data/mysql/help_relation.MYI
mysql-5.0.75/win/data/mysql/help_relation.MYD
mysql-5.0.75/win/data/mysql/help_keyword.frm
mysql-5.0.75/win/data/mysql/help_keyword.MYI
mysql-5.0.75/win/data/mysql/help_keyword.MYD
mysql-5.0.75/win/data/mysql/time_zone_name.frm
mysql-5.0.75/win/data/mysql/time_zone_name.MYI
mysql-5.0.75/win/data/mysql/time_zone_name.MYD
mysql-5.0.75/win/data/mysql/time_zone.frm
mysql-5.0.75/win/data/mysql/time_zone.MYI
mysql-5.0.75/win/data/mysql/time_zone.MYD
mysql-5.0.75/win/data/mysql/time_zone_transition.frm
mysql-5.0.75/win/data/mysql/time_zone_transition.MYI
mysql-5.0.75/win/data/mysql/time_zone_transition.MYD
mysql-5.0.75/win/data/mysql/time_zone_transition_type.frm
mysql-5.0.75/win/data/mysql/time_zone_transition_type.MYI
mysql-5.0.75/win/data/mysql/time_zone_transition_type.MYD
mysql-5.0.75/win/data/mysql/time_zone_leap_second.frm
mysql-5.0.75/win/data/mysql/time_zone_leap_second.MYI
mysql-5.0.75/win/data/mysql/time_zone_leap_second.MYD
mysql-5.0.75/win/data/mysql/proc.frm
mysql-5.0.75/win/data/mysql/proc.MYI
mysql-5.0.75/win/data/mysql/proc.MYD
mysql-5.0.75/win/data/mysql/procs_priv.frm
mysql-5.0.75/win/data/mysql/procs_priv.MYI
mysql-5.0.75/win/data/mysql/procs_priv.MYD
mysql-5.0.75/win/data/test/

[root@Cacti download]#




MySQL을 실행 할 계정을 만든다.

[root@Cacti download]# useradd -M -s /bin/false mysql
[root@Cacti download]#




STEP 2.

configure를 해 준다.

[root@Cacti download]# cd mysql-5.0.75
[root@Cacti mysql-5.0.75]# ./configure --prefix=/usr/local/server/mysql --with-extra-charsets=all
........ 길어서 생략 ........
config.status: creating read/Makefile
config.status: creating rem/Makefile
config.status: creating row/Makefile
config.status: creating srv/Makefile
config.status: creating sync/Makefile
config.status: creating thr/Makefile
config.status: creating trx/Makefile
config.status: creating usr/Makefile
config.status: creating ib_config.h
config.status: ib_config.h is unchanged
config.status: executing depfiles commands

MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.

Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.

Thank you for choosing MySQL!

[root@Cacti mysql-5.0.75]#


--prefix=/usr/local/server/mysql 은 /usr/local/server/mysql에 바이너리를 설치하는 옵션이다.

--with-charset=utf8은 기본 문자셋을 utf8로 지정한다.

--with-extra-charsets=all은 모든 캐릭터셋을 설치한다.




STEP 3.

configure 한 것을 make 와 make install을 한다.

[root@Cacti mysql-5.0.75]# make && make install
...... 이것 역시 길어서 생략 .......
test -z "/usr/local/server/mysql/share/mysql" || mkdir -p -- "/usr/local/server/mysql/share/mysql"
 /usr/bin/install -c 'mysql.server' '/usr/local/server/mysql/share/mysql/mysql.server'
 /usr/bin/install -c 'mysqld_multi.server' '/usr/local/server/mysql/share/mysql/mysqld_multi.server'
make[4]: Leaving directory `/download/mysql-5.0.75/support-files'
make[3]: Leaving directory `/download/mysql-5.0.75/support-files'
make[2]: Leaving directory `/download/mysql-5.0.75/support-files'
Making install in server-tools
make[2]: Entering directory `/download/mysql-5.0.75/server-tools'
Making install in instance-manager
make[3]: Entering directory `/download/mysql-5.0.75/server-tools/instance-manager'
make[4]: Entering directory `/download/mysql-5.0.75/server-tools/instance-manager'
test -z "/usr/local/server/mysql/libexec" || mkdir -p -- "/usr/local/server/mysql/libexec"
  /bin/sh ../../libtool --preserve-dup-deps --mode=install /usr/bin/install -c 'mysqlmanager' '/usr/local/server/mysql/libexec/mysqlmanager'
/usr/bin/install -c mysqlmanager /usr/local/server/mysql/libexec/mysqlmanager
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/download/mysql-5.0.75/server-tools/instance-manager'
make[3]: Leaving directory `/download/mysql-5.0.75/server-tools/instance-manager'
make[3]: Entering directory `/download/mysql-5.0.75/server-tools'
make[4]: Entering directory `/download/mysql-5.0.75/server-tools'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/download/mysql-5.0.75/server-tools'
make[3]: Leaving directory `/download/mysql-5.0.75/server-tools'
make[2]: Leaving directory `/download/mysql-5.0.75/server-tools'
make[1]: Leaving directory `/download/mysql-5.0.75'

[root@Cacti mysql-5.0.75]#




STEP 4.

MySQL에서 사용할 환경 설정 파일을 /etc에 복사를 한다.
my-huge.cnf : 메모리가 1G-2G 사이 일 때
my-large.cnf : 메모리가 512M 일 때
my-medium.cnf : 64~256M 사이 일 때
my-small.cnf : 메모리가 64보다 작을 때 사용한다.

[root@Cacti mysql-5.0.75]# cp support-files/my-huge.cnf /etc/my.cnf
[root@Cacti mysql-5.0.75]#




STEP 5.

MySQL을 관리 할 데이터베이스를 생성한다.

[root@Cacti mysql-5.0.75]# cd /usr/local/server/mysql/
[root@Cacti mysql]# ls
bin  include  info  lib  libexec  man  mysql-test  share  sql-bench
[root@Cacti mysql]# bin/mysql_install_db --user=mysql
Installing MySQL system tables...
090213 15:51:06 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090213 15:51:06 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
090213 15:51:06 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090213 15:51:06 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/server/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/server/mysql/bin/mysqladmin -u root -h Cacti password 'new-password'

Alternatively you can run:
/usr/local/server/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local/server/mysql ; /usr/local/server/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/local/server/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[root@Cacti mysql]#




STEP 6.

MySQL이 설치 된 디렉토리 권한을 다시 설정한다.

[root@Cacti mysql]# chown -R root .
[root@Cacti mysql]# chown -R mysql var
[root@Cacti mysql]# chgrp -R mysql .
[root@Cacti mysql]#



STEP 7.

MySQL 명령어를 편하게 사용 할 수 있게 환경변수에 등록한다.

[root@Cacti mysql]# vi ~/.bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/local/server/mysql/bin

export PATH
unset USERNAME




다음 번에 다시 로그인 할 때 환경변수는 적용 된다.

즉시 적용하고 싶다면 아래와 같은 명령어를 써 준다.

[root@Cacti mysql]# source ~/.bash_profile
[root@Cacti mysql]#




STEP 8.

chkconfig를 이용하여 재부팅이 되어도 MySQL이 자동으로 실행 될 수 있게 설정한다.

[root@Cacti mysql]# cp share/mysql/mysql.server /etc/init.d/mysqld
[root@Cacti mysql]# chkconfig --add mysqld
[root@Cacti mysql]#


등록 된 것을 확인 해 본다.

[root@Cacti mysql]# chkconfig --list | grep mysqld
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@Cacti mysql]#




STEP 9.

처음으로 MySQL을 실행하면 root의 암호를 설정해야 한다.

암호 설정 후 MySQL을 실행시키면 된다.

[root@Cacti mysql]# /etc/init.d/mysqld start
Starting MySQL.                                            [  OK  ]
[root@Cacti mysql]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.75-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> exit
Bye
[root@Cacti mysql]#

MySQL을 실행하고 exit로 빠져 나오는 과정을 보았다.


이제 MySQL의 root 암호를 설정해 보자.

[root@Cacti mysql]# mysqladmin -u root password 루트패스워드입력
[root@Cacti mysql]#


MySQL을 실행하면 암호가 설정되어서 MySQL을 사용 할 수 없다.

[root@Cacti mysql]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[root@Cacti mysql]#


[root@Cacti mysql]# mysql -u root -p
Enter password: 루트패스워드입력
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.0.75-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>



MySQL이 설치가 되었다.

블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





STEP 1.

APM을 설치하기에 앞서 라이브러리나 컴파일러가 있어야 한다.

우선 컴파일러를 설치하기에 앞서 컴파일러가 설치 되어있는지를 확인 한다.

[root@Cacti download]# rpm -qa gcc* cpp* compat-gcc* flex*
compat-gcc-34-g77-3.4.6-4
gcc-objc-4.1.2-42.el5
compat-gcc-34-3.4.6-4
gcc-gfortran-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
cpp-4.1.2-42.el5
compat-gcc-34-c++-3.4.6-4
flex-2.5.4a-41.fc6
gcc-gnat-4.1.2-42.el5
[root@Cacti download]#




만약에 설치가 되어있지 않다면 yum을 이용하여 아래와 같이 설치를 해 준다.

[root@Cacti download]# yum -y install gcc cpp gcc-c++ compat-gcc-32-g77 flex
Setting up Install Process
Parsing package install arguments
Package gcc - 4.1.2-42.el5.i386 is already installed.
Package cpp - 4.1.2-42.el5.i386 is already installed.
Package gcc-c++ - 4.1.2-42.el5.i386 is already installed.
No package compat-gcc-32-g77 available.
Package flex - 2.5.4a-41.fc6.i386 is already installed.
Nothing to do
[root@Cacti download]#

필자의 경우 이미 설치가 되어 있다고 나오고 있다.



STEP 2.

이제 라이브러리를 설치를 하기에 앞서 라이브러리가 설치 되어있는지 확인을 한다.

[root@Cacti download]# rpm -qa libpeg* libpng* freetype* gd-*
libpng-1.2.10-7.1.el5_0.1
freetype-2.2.1-19.el5
[root@Cacti download]#

필자의 경우 libpng 와 freetype만 설치 된 것을 확인 할 수 있다.

devel 패키지가 설치되어 있지 않기 때문에 yum을 이용하여 설치를 할 것이다.



[root@Cacti download]# yum install libjpeg* libpng* freetype* gd-*
Setting up Install Process
Parsing package install arguments
Package libjpeg - 6b-37.i386 is already installed.
Package libpng - 2:1.2.10-7.1.el5_0.1.i386 is already installed.
Package freetype - 2.2.1-19.el5.i386 is already installed.
Package gd - 2.0.33-9.4.el5_1.1.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package libjpeg-devel.i386 0:6b-37 set to be updated
---> Package libpng-devel.i386 2:1.2.10-7.1.el5_0.1 set to be updated
---> Package gd-progs.i386 0:2.0.33-9.4.el5_1.1 set to be updated
---> Package freetype.i386 0:2.2.1-20.el5_2 set to be updated
---> Package freetype-demos.i386 0:2.2.1-20.el5_2 set to be updated
---> Package freetype-devel.i386 0:2.2.1-20.el5_2 set to be updated
---> Package gd-devel.i386 0:2.0.33-9.4.el5_1.1 set to be updated
--> Processing Dependency: libX11-devel for package: gd-devel
--> Processing Dependency: fontconfig-devel for package: gd-devel
--> Processing Dependency: libXpm-devel for package: gd-devel
--> Running transaction check
---> Package libX11-devel.i386 0:1.0.3-9.el5 set to be updated
--> Processing Dependency: xorg-x11-proto-devel >= 7.1-2 for package: libX11-devel
--> Processing Dependency: libXau-devel for package: libX11-devel
--> Processing Dependency: libXdmcp-devel for package: libX11-devel
---> Package libXpm-devel.i386 0:3.5.5-3 set to be updated
---> Package fontconfig-devel.i386 0:2.4.1-7.el5 set to be updated
--> Running transaction check
---> Package xorg-x11-proto-devel.i386 0:7.1-9.el5.centos set to be updated
--> Processing Dependency: mesa-libGL-devel for package: xorg-x11-proto-devel
---> Package libXdmcp-devel.i386 0:1.0.1-2.1 set to be updated
---> Package libXau-devel.i386 0:1.0.1-3.1 set to be updated
--> Running transaction check
---> Package mesa-libGL-devel.i386 0:6.5.1-7.5.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 freetype-demos          i386       2.2.1-20.el5_2   updates           154 k
 gd-devel                i386       2.0.33-9.4.el5_1.1  base               97 k
 gd-progs                i386       2.0.33-9.4.el5_1.1  base               24 k
Updating:
 freetype                i386       2.2.1-20.el5_2   updates           313 k
Installing for dependencies:
 fontconfig-devel        i386       2.4.1-7.el5      base              168 k
 freetype-devel          i386       2.2.1-20.el5_2   updates           151 k
 libX11-devel            i386       1.0.3-9.el5      base              666 k
 libXau-devel            i386       1.0.1-3.1        base               11 k
 libXdmcp-devel          i386       1.0.1-2.1        base              7.5 k
 libXpm-devel            i386       3.5.5-3          base               31 k
 libjpeg-devel           i386       6b-37            base              105 k
 libpng-devel            i386       2:1.2.10-7.1.el5_0.1  base              182 k
 mesa-libGL-devel        i386       6.5.1-7.5.el5    base              465 k
 xorg-x11-proto-devel    i386       7.1-9.el5.centos  base              253 k

Transaction Summary
=============================================================================
Install     13 Package(s)        
Update       1 Package(s)        
Remove       0 Package(s)        

Total download size: 2.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/14): gd-devel-2.0.33-9 100% |=========================|  97 kB    00:00    
(2/14): freetype-devel-2. 100% |=========================| 151 kB    00:00    
(3/14): freetype-demos-2. 100% |=========================| 154 kB    00:00    
(4/14): libXau-devel-1.0. 100% |=========================|  11 kB    00:00    
(5/14): freetype-2.2.1-20 100% |=========================| 313 kB    00:00    
(6/14): gd-progs-2.0.33-9 100% |=========================|  24 kB    00:00    
(7/14): libpng-devel-1.2. 100% |=========================| 182 kB    00:00    
(8/14): fontconfig-devel- 100% |=========================| 168 kB    00:00    
(9/14): libXpm-devel-3.5. 100% |=========================|  31 kB    00:00    
(10/14): libX11-devel-1.0 100% |=========================| 666 kB    00:00    
(11/14): libXdmcp-devel-1 100% |=========================| 7.5 kB    00:00    
(12/14): mesa-libGL-devel 100% |=========================| 465 kB    00:00    
(13/14): xorg-x11-proto-d 100% |=========================| 253 kB    00:00    
(14/14): libjpeg-devel-6b 100% |=========================| 105 kB    00:00    
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <
centos-5-key@centos.org>" from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : freetype                     ####################### [ 1/15]
  Installing: freetype-devel               ####################### [ 2/15]
  Installing: fontconfig-devel             ####################### [ 3/15]
  Installing: libXau-devel                 ####################### [ 4/15]
  Installing: libpng-devel                 ####################### [ 5/15]
  Installing: libjpeg-devel                ####################### [ 6/15]
  Installing: gd-progs                     ####################### [ 7/15]
  Installing: freetype-demos               ####################### [ 8/15]
  Installing: xorg-x11-proto-devel         ####################### [ 9/15]
  Installing: libXdmcp-devel               ####################### [10/15]
  Installing: libX11-devel                 ####################### [11/15]
  Installing: libXpm-devel                 ####################### [12/15]
  Installing: mesa-libGL-devel             ####################### [13/15]
  Installing: gd-devel                     ####################### [14/15]
  Cleanup   : freetype                     ####################### [15/15]

Installed: freetype-demos.i386 0:2.2.1-20.el5_2 gd-devel.i386 0:2.0.33-9.4.el5_1.1 gd-progs.i386 0:2.0.33-9.4.el5_1.1
Dependency Installed: fontconfig-devel.i386 0:2.4.1-7.el5 freetype-devel.i386 0:2.2.1-20.el5_2 libX11-devel.i386 0:1.0.3-9.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXpm-devel.i386 0:3.5.5-3 libjpeg-devel.i386 0:6b-37 libpng-devel.i386 2:1.2.10-7.1.el5_0.1 mesa-libGL-devel.i386 0:6.5.1-7.5.el5 xorg-x11-proto-devel.i386 0:7.1-9.el5.centos
Updated: freetype.i386 0:2.2.1-20.el5_2
Complete!
[root@Cacti download]#

의존성과 관련된 여러 패키지가 자동으로 설치되었으니 신경쓰지 말도록 하자.

솔직히 필자도 폭 넓은 지식을 바탕으로 쓴 것이 아니므로 모른다. ^^



'Cacti > APM(Apache+PHP+MySQL)' 카테고리의 다른 글

MySQL 설치 시 에러 메시지를 띄우며 설치가 안 될 경우.  (0) 2009.06.04
PHP 설치  (0) 2009.02.13
Apache 설치  (0) 2009.02.13
MySQL 설치  (0) 2009.02.13
APM(Apache+PHP+MySQL) 설치 전에...  (0) 2009.02.13
블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





STEP 1.

APM이란 웹서버를 구성할 때 가장 많이 쓰이는 Apache, PHP, MySQL의 첫 글자를 인용해 만든 명칭이다.

APM을 설치하기에 앞서 rpm으로 설치 되어있는 APM을 삭제한다.


아래와 같은 명령어를 사용하여 APM이 설치 되었는지 확인 한다.

rpm으로 Apache가 설치 되어 있다면 삭제하고 웹상에서 다운 받아서 설치를 할 예정이다.

[root@Cacti /]# rpm -qa httpd php mysql
httpd-2.2.3-11.el5_1.centos.3
[root@Cacti /]#



STEP 2.

APM을 제거 하기 전에 내가 설치 한 서버에 APM 중 무엇이 설치 되었는지를 위의 과정에서 확인 하였다.

현재 필자가 설치 한 서버에는 Apache만 설치 되어있기 때문에 Apache만 삭제할 것이다.

[root@Cacti /]# yum remove -y httpd
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-11.el5_1.centos.3 set to be erased
--> Processing Dependency: httpd for package: system-config-httpd
--> Processing Dependency: httpd >= 2.2.0 for package: gnome-user-share
--> Running transaction check
---> Package gnome-user-share.i386 0:0.10-6.el5 set to be erased
---> Package system-config-httpd.noarch 5:1.3.3.3-1.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 httpd                   i386       2.2.3-11.el5_1.centos.3  installed         2.8 M
Removing for dependencies:
 gnome-user-share        i386       0.10-6.el5       installed          89 k
 system-config-httpd     noarch     5:1.3.3.3-1.el5  installed         2.1 M

Transaction Summary
=============================================================================
Install      0 Package(s)        
Update       0 Package(s)        
Remove       3 Package(s)        

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing   : httpd                        ######################### [1/3]
  Erasing   : gnome-user-share             ######################### [2/3]
  Erasing   : system-config-httpd          ######################### [3/3]

Removed: httpd.i386 0:2.2.3-11.el5_1.centos.3
Dependency Removed: gnome-user-share.i386 0:0.10-6.el5 system-config-httpd.noarch 5:1.3.3.3-1.el5
Complete!
[root@Cacti /]#




STEP 3.

Apache를 다운 받기 위해 download를 받을 디렉토리를 생성하겠다.

[root@Cacti /]# mkdir /download
[root@Cacti /]# cd download/
[root@Cacti download]#




STEP 4.

Apache를 다운 받는다.

아래는 사이트에서 사라질 수 있으므로, 개인적으로 백업 해 둔 파일 입니다.



[root@Cacti download]# wget http://mirror.apache.or.kr/httpd/httpd-2.2.11.tar.gz
--14:06:29--  http://mirror.apache.or.kr/httpd/httpd-2.2.11.tar.gz
Resolving mirror.apache.or.kr... 222.239.120.166
Connecting to mirror.apache.or.kr|222.239.120.166|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6806786 (6.5M) [application/x-gzip]
Saving to: `httpd-2.2.11.tar.gz'

100%[=========================================================================================================================================>] 6,806,786   8.58M/s   in 0.8s  

14:06:30 (8.58 MB/s) - `httpd-2.2.11.tar.gz' saved [6806786/6806786]

[root@Cacti download]# ll
total 6660
-rw-r--r-- 1 root root 6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
[root@Cacti download]#



STEP 5.

PHP를 다운 받는다.

아래는 사이트에서 사라질 수 있으므로, 개인적으로 백업 해 둔 파일 입니다.



[root@Cacti download]# wget http://kr2.php.net/get/php-5.2.6.tar.gz/from/this/mirror
--14:16:28--  http://kr2.php.net/get/php-5.2.6.tar.gz/from/this/mirror
Resolving kr2.php.net... 211.43.210.124
Connecting to kr2.php.net|211.43.210.124|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://kr2.php.net/distributions/php-5.2.6.tar.gz [following]
--14:16:28-- 
http://kr2.php.net/distributions/php-5.2.6.tar.gz
Connecting to kr2.php.net|211.43.210.124|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12046184 (11M) [application/x-tar]
Saving to: `php-5.2.6.tar.gz'

100%[=========================================================================================================================================>] 12,046,184  10.8M/s   in 1.1s  

14:16:29 (10.8 MB/s) - `php-5.2.6.tar.gz' saved [12046184/12046184]

[root@Cacti download]# ll
total 18440
-rw-r--r-- 1 root root  6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
-rw-r--r-- 1 root root 12046184 May  1  2008 php-5.2.6.tar.gz
[root@Cacti download]#



STEP 6.

MySQL을 다운 받는다.

[root@Cacti download]# wget http://www.mysql.org/get/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz/from/http://mysql.byungsoo.net/
--14:18:30--  http://www.mysql.org/get/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz/from/http://mysql.byungsoo.net/
Resolving www.mysql.org... 213.136.52.82, 213.115.162.82
Connecting to
www.mysql.org|213.136.52.82|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location:
http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz/from/http://mysql.byungsoo.net/ [following]
--14:18:31-- 
http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz/from/http://mysql.byungsoo.net/
Resolving dev.mysql.com... 213.136.52.29
Connecting to dev.mysql.com|213.136.52.29|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
http://mysql.byungsoo.net/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz [following]
--14:18:34-- 
http://mysql.byungsoo.net/Downloads/MySQL-5.0/mysql-5.0.75.tar.gz
Resolving mysql.byungsoo.net... 218.234.17.87
Connecting to mysql.byungsoo.net|218.234.17.87|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32514150 (31M) [application/x-tar]
Saving to: `mysql-5.0.75.tar.gz'

100%[=========================================================================================================================================>] 32,514,150   199K/s   in 3m 33s

14:22:10 (149 KB/s) - `mysql-5.0.75.tar.gz' saved [32514150/32514150]

[root@Cacti download]# ll
total 50232
-rw-r--r-- 1 root root  6806786 Dec 13 23:35 httpd-2.2.11.tar.gz
-rw-r--r-- 1 root root 32514150 Dec 19 03:01 mysql-5.0.75.tar.gz
-rw-r--r-- 1 root root 12046184 May  1  2008 php-5.2.6.tar.gz
[root@Cacti download]#

위 과정을 끝으로 APM에 필요한 파일을 모두 다운 받았으며, 이제 한가지씩 설치를 해보도록 하자.


'Cacti > APM(Apache+PHP+MySQL)' 카테고리의 다른 글

MySQL 설치 시 에러 메시지를 띄우며 설치가 안 될 경우.  (0) 2009.06.04
PHP 설치  (0) 2009.02.13
Apache 설치  (0) 2009.02.13
MySQL 설치  (0) 2009.02.13
APM(Apache+PHP+MySQL) 설치 전에... 2번째...  (0) 2009.02.13
블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,