'전체보기'에 해당되는 글 162건






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
블로그 이미지

쭈꾸댕이

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

,





CentOS CD나 DVD를 삽입 하고 부팅을 하면 처음에 그래픽 모드와 텍스트 모드로 설치가 가능한데..

CD나 DVD로 부팅을 하면 첫 화면에 아래와 같은 문구가 뜰 것이다.




STEP 1.

[F1-Main] [F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]
boot:



여기에서 linux text라고 입력을 하면 텍스트 모드로 설치가 가능하며, 그냥 <Enter>를 입력하게되면

그래픽 모드로 설치가 가능하다.

요즘 나오는 컴퓨터 사양은 그래픽 모드로 설치가 가능하며 조작이 더 편리하기 때문에

그래픽 모드로 설치를 하기 위해 <Enter>를 입력 하였다.




SETP 2.

설치가 진행되며 설치 할 CD나 DVD의 물리적인 이상유무를 점검하기 위한 화면이 나오는데

이것은 개인 성향이기 때문에 확인을 하거나 그냥 Skip 하거나 개인 성향에 맡기겠다.

참고로 필자는 Skip 한다. OK 누르는 순간 서버 사양이 안 좋다면 인내심을 배우게 될 것이다. ^^



STEP 3.

anaconda가 실행 될 것인데 비디오카드, 모니터, 마우스를 검색 한 후 이상이 없으면 아래 그림과 같이

그래픽 모드로 설치가 가능하다.

배포버전을 확인 하고 싶다면 Release Notes를 읽고 그렇지 않다면 Next를 눌러준다.






STEP 4.

설치과정에서 사용할 언어를 선택하게 된다. 필자의 경우 순수하게 한글을 사랑하기 때문에 한글로 설치를 했다.





STEP 5.

시스템에서 사용할 키보드 타입을 지정한다.

처음 설치 할 때 한글 키보드를 열심히 찾아 보았지만 없다. 그래서 아래와 같이 영어 자판을 사용한다고 체크 한 후

다음으로 넘어갔다.





STEP 6.

파티션 설정 프로그램으로 Disk Druid를 이용하여 하드디스크의 파티션을 구성 할 수 있다.

파티션이 없는 하드디스크였다면 경고 문구가 뜨겠지만, 필자의 경우에는 리눅스를 깔던 PC에 다시 깔았기 때문에

경고문구는 뜨지 않았다.

아래와 같이 CentOS를 설치 할 것인지 필자의 경우 리눅스가 있던 PC 이기 때문에 기존 시스템 업그레이드라는

화면이 떳지만 그냥 설치를 체크하고 다음을 눌렀다.






STEP 7.

필자의 경우 드라이브에 있는 파티션을 삭제하고 레이아웃을 새로 만들었다.

또한 파티션 배치를 재확인하고 수정을 하도록 하겠다.





아래와 같이 파티션을 나누었다.





2개의 하드디스크가 장착 되어있었지만 1개의 하드디스크를 사용하려고 파티션을 한군데만 나눴다.

아래 그림은 파티션을 나눈 후 모습이다.





STEP 8.

부트로더를 설정해야 하는데 GRUB(GRand Unified Bootloader)를 설정 해야 하는데 리눅스와 윈도우 등의 OS를 동시에

깔아서 사용하지 않는 이상 설정을 바꿀 필요가 없어 다음를 눌러줬다.





STEP 9.

네트워크를 설치해야 하는데 DHCP가 있다면 기본 설정을 이용하면 되지만 필자의 경우 DHCP가 없기 때문에

수동으로 직접 IP와 넷마스크 게이트웨이 DNS 서버 등의 정보를 입력 하였다.




편집을 누른 후 IP와 넷마스크 게이트웨이 DNS 등 필자가 사용하는 정보를 입력 하였다.





STEP 10.

시간 설정에서는 나의 지역과 도시에 맞게 설정을 하면 되는데 기본적으로 설정 된 것에서 그냥 다음을 눌러줬다.





STEP 11.

root 패스워드를 입력하면 되는데, 여기서 root는 슈퍼유저이다.

내가 설치하는 서버의 모든 권한을 갖고 관리할 수 있는 계정이기 때문에 보안에 각별히 신경을 써야한다.





STEP 12.

시스템에 설치할 소프트웨어를 선택하고 자신에게 맞는 패키지를 조합할 수도 있다.





필자의 경우 세부적인 패키지를 설정하기 위해서 지금 사용자 설정을 눌러 세부 설정을 변경 하였다.





아래 그림은 패키지를 선택하는 과정이다.





STEP 13.

환경설정을 맞췄다면 이제 실제 파일들을 시스템에 설치하게 된다.





파일 시스템을 포멧하고 설치를 하게 되는데 설치 시간은 시스템에 따라 차이가 있으니 사양이 좋지 않은 컴퓨터에

설치를 한다면 인내심을 갖고 기다리자.





설치가 다 되었다면 아래 그림가 같이 설치 완료 메시지를 볼 수 있다.





STEP 14.

재부팅을 하고 부팅이 완료되면 환영메시지와 설정 에이전트가 실행된다.

방화벽 설정을 하는데 SSH를 이용하는 원격 접속을 많이 하기 때문에 SSH를 열어준다.

필자의 경우 HTTP와 기타 포트를 열어 두었다.



STEP 15.

Kdump는 시스템의 커널 내용을 dump하는 것이라는데 필자도 잘 모르기 때문에 그냥 다음으로 넘겼다.



STEP 16.

날짜와 시간을 설정 한다. NTP 서버와 동기화 시킬 수도 있으니 링크를 하는 것도 좋다.




STEP 17.

사용자 계정을 생성하는 창이 나오는데 공백으로 두고 넘어가면 설치 후에 useradd 명령어로 사용자 계정을

생성하면 되니 사용하기 편리한대로 사용한다.



STEP 18.

사운드 카드가 있따면 사운드 카드를 설정하고 그렇지 않다면 그냥 다음으로 넘어가고.. 완료를 하면 된다.

이 후 설정은 거의 만질부분이 없이 다음 → 다음 누르면 재부팅이 된다.

이로써 CentOS 설치를 완료 하게 된다.
블로그 이미지

쭈꾸댕이

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

,

SSH 한글깨짐

LINUX/Linux TIP 2009. 2. 10. 17:49





SSH 접속 시 한글이 깨지는 경우

vi /etc/sysconfig/i18n


LANG="ko_KR.UTF-8" 로 설정 된 부분을


LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en:ko_KR.UTF-8:ko_KR:ko"

SYSFONT="latarcyrheb-sun16"

위 와 같이 변경해 주면 된다.




블로그 이미지

쭈꾸댕이

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

,





[ 실행 ]

서버 : # iperf -s -u -D   -> 데몬 모드로 실행

클라이언트 : # iperf -c server_host[IP] -u -b 전송할용량(ex. 100m) -n 전송소요시간(ex.100m-100분)

 

 


[1] 서버실행

[root@test bin]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

 

 


[2] 클라이언트 측


(1) 10초간(디폴트)의 성능측정
C:\Documents and Settings\celltwo>iperf -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3495 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-10.0 sec  98.8 MBytes  82.8 Mbits/sec

C:\Documents and Settings\celltwo>

 

(2) window size 변경
C:\Documents and Settings\celltwo>iperf -w 100k -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size:  100 KByte
------------------------------------------------------------
[1912] local 192.169.10.100 port 3525 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-10.0 sec   111 MBytes  93.2 Mbits/sec

C:\Documents and Settings\celltwo>

 


(3) 시간을 100초로 지정
C:\Documents and Settings\celltwo>iperf -t 100 -c 192.169.10.100
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3552 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0-100.0 sec   928 MBytes  77.8 Mbits/sec

C:\Documents and Settings\celltwo>


(4)1초 간격으로 결과 측정
C:\Documents and Settings\celltwo>iperf -c 192.169.10.100 -i 1
------------------------------------------------------------
Client connecting to 192.169.10.100, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[1912] local 192.169.10.100 port 3643 connected with 192.169.10.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[1912]  0.0- 1.0 sec  10.1 MBytes  85.0 Mbits/sec
[1912]  1.0- 2.0 sec  10.3 MBytes  86.2 Mbits/sec
[1912]  2.0- 3.0 sec  10.3 MBytes  86.4 Mbits/sec
[1912]  3.0- 4.0 sec  10.2 MBytes  85.3 Mbits/sec
[1912]  4.0- 5.0 sec  10.1 MBytes  84.9 Mbits/sec
[1912]  5.0- 6.0 sec  10.2 MBytes  85.3 Mbits/sec
[1912]  6.0- 7.0 sec  10.2 MBytes  85.9 Mbits/sec
[1912]  7.0- 8.0 sec  10.2 MBytes  85.9 Mbits/sec
[1912]  8.0- 9.0 sec  9.55 MBytes  80.2 Mbits/sec
[1912]  9.0-10.0 sec  9.84 MBytes  82.6 Mbits/sec
[1912]  0.0-10.0 sec   101 MBytes  84.6 Mbits/sec

C:\Documents and Settings\celltwo>


 




'Linux tools > Iperf' 카테고리의 다른 글

Iperf 설치하기  (0) 2008.12.09
블로그 이미지

쭈꾸댕이

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

,





Iperf는 http://dast.nlanr.net/projects/Iperf/ ← 사이트에서 다운 받아 설치 할 수 있다고 한다.

그런데 오늘 내가 설치를 해 보려고 하니 링크가 되지 않는다.

nlanr 측에서 변경한건지 없는 페이지라고 나오길레 구글 검색 결과..

SourceForge.net 에서 다운을 받을 수 있었다.

http://downloads.sourceforge.net/iperf/iperf-2.0.4.tar.gz?modtime=1207626803&big_mirror=0  ← SourceForge




리눅스에서 서버 모드로 구동을 시켰으며, 윈도우에서 클라이언트 모드로 설정을 하여 테스트를 하였다.

http://www.noc.ucf.edu/Tools/Iperf/iperf.exe ← 윈도우 버전은 좌측의 경로에서 받았다.



설치 과정은 단순한 것 같다.

다운 된 경로에서 ./configure 와 make 그리고 make install 만 하면 설치가 되는 것을 확인 할 수 있었다.


'Linux tools > Iperf' 카테고리의 다른 글

Iperf 실행하기  (0) 2008.12.09
블로그 이미지

쭈꾸댕이

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

,





B와 C를 Straum 3로 설정한 A로 부터 sync를 받도록 설정한다. (A도메인은 a.com 이라고 가정)
# vi /etc/ntp.conf

restrict default nomodify notrap noquery
restrict 127.0.0.1

# straum 3 server list
server a.com

driftfile /var/lib/ntp/drift
broadcastdelay 0.008

keys /etc/keys


peer 설정에서는 server를 Straum 3로 지정한 서버 A를 지정한다. 그 외에는 틀린 것이 없다.
역시 service ntpd restart 로 재시작을 한 후에 위에서 처럼 ntpq로 확인을 한다.

# ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*a.com             210.98.16.100     u     64      0      0.000   0.000   0.000


'Linux tools > NTP(Network Time Protocol)' 카테고리의 다른 글

NTP SERVER 설정  (0) 2008.12.08
NTP DOWNLOAD  (0) 2008.12.08
NTP(Network Time Protocol)  (0) 2008.12.08
블로그 이미지

쭈꾸댕이

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

,





/etc/ntp.conf를 수정한다.
# vi /etc/ntp.conf

ntp.conf
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.

restrict default nomodify notrap noquery
# restrict default kod nomodify notrap nopeer noquery
# restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface.  This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
# restrict -6 ::1

# Hosts on local network are less restricted.
restrict 150.183.0.0 mask 255.255.0.0 nomodify notrap
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (
http://www.pool.ntp.org/join.html).
server 210.98.16.100
server 210.98.16.101
# server 1.rhel.pool.ntp.org
# server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 key 42         # broadcast server
#broadcastclient                        # broadcast client
#broadcast 224.0.1.1 key 42             # multicast server
#multicastclient 224.0.1.1              # multicast client
#manycastserver 239.255.254.254         # manycast server
#manycastclient 239.255.254.254 key 42  # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10

# Drift file.  Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8


/etc/ntp.conf 와 driftfile 과 keys의 경우 배포본마다 위치가 다를 수 있으니 확인 하도록 한다. (find / -name ntp.conf)
restric 설정은 peer 들이 본 서버로 sync 하는 것에 대한 제한을 한다.

restrict default nomodify notrap noquery // 이 설정은 기본으로 모든 권한을 주지 않음을 의미한다.

restrict 127.0.0.1 // 127.0.0.1 즉, 서버 자신에서는 모든 권한을 가진다.

restrict 150.183.0.0 mask 255.255.0.0 nomodify notrap // 150.183.0.0 ~ 150.183.0.255 c class 에서는 질의를 할 수 있는 권한을 가진다.

즉, 위의 2개의 설정은 기본으로 들어가는 설정이며, peer를 거느릴 서버에서는(즉 A의 입장) 하위 peer 들의 질의를 받을 수 있도록 3번째 라인과 같이 restrict 설정을 해주어야 한다.

설정을 마쳤다면 service ntpd restart 명령으로 ntpd를 시작하고, ntpd 명령을 이용하여 sync 를 잘 하고 있는지 확인한다.


실행 예)
[root@ntp ~]# service ntpd start
Starting ntpd: [  OK  ]
[root@ntp ~]#

[root@ntp ~]# service ntpd restart
Shutting down ntpd: [  OK  ]
Starting ntpd: [  OK  ]
[root@ntp ~]#

[root@ntp ~]# chkconfig --list ntpd
ntpd            0:해제  1:해제  2:해제  3:해제  4:해제  5:해제  6:해제
[root@ntp ~]#
[root@ntp ~]# chkconfig ntpd on
[root@ntp ~]# chkconfig --list ntpd
ntpd            0:해제  1:해제  2:활성  3:활성  4:활성  5:활성  6:해제
[root@ntp ~]#

[root@ntp ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 210.98.16.100   .INIT.          16 u    -   64    0    0.000    0.000   0.000
 210.98.16.101   .INIT.          16 u    -   64    0    0.000    0.000   0.000
 LOCAL(0)        .LOCL.          10 l    -   64    1    0.000    0.000   0.001
[root@ntp ~]#


ntpd를 막 재시작하고 ntpq를 실행한 경우 5분 정도를 기다려야 sync가 진행이 된다는 것을 명심한다. (그러나 필자의 경우 1분도 안 걸림 ^^ )

server 127.127.1.0 // 현재 서버가 타임서버 루트가 되도록 할 시 이와같이 설정한다.


remote는 sync를 하는 Straum 2 서버 주소이다.
refid는 각 Straum 2 서버가 현재 sync를 하고 있는 Straum 1 서버를 보여준다.
st는 각 라인의 remote들의 Straum을 나타낸다.

그 외의 항목들은 ntp가 알아서 하는 것들이니 신경쓰지 말고, 가장 중요한 것은 remote 필드의 주소 앞에 붙어 있는 기호이다.
각 기호의 의미는 아래와 같다.
* 는 현재 sync를 받고 있음을 의미한다.
+ ntp 알고리즘에 의해 접속은 가능하지만 sync를 하고 있지는 않는 것을 의미한다.
- ntp 알고르짐에 의해 접속은 가능하지만 sync 가능 리스트에서 제외
blank는 접속이 불가능함을 의미한다.
마지막으로 st가 16이 나올 경우는 해당 서버에 접속을 할 수 없는 것을 의미한다.




'Linux tools > NTP(Network Time Protocol)' 카테고리의 다른 글

NTP PEER 설정  (0) 2008.12.08
NTP DOWNLOAD  (0) 2008.12.08
NTP(Network Time Protocol)  (0) 2008.12.08
블로그 이미지

쭈꾸댕이

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

,





우선 설치에 앞서서 CentOS 5.1을 운영체제로 사용하였음을 밝힌다.
레드햇 계열은 rpm 명령어가 있어서 rpm 으로 설치를 하게 되면 편하고, 나 역시 rpm을 이용하여 설치를 하였다.

# rpm -qa | grep ntp 명령으로 "ntp-버전" 이 출력되지 않으면 http://rpmfind.net 에서 "ntp" 로 검색을 하여 배포판에 해당하는 패키지를 설치한다.

나의 경우에는 이미 설치를 하였기 때문에 아래와 같이 출력 되었다.
[root@ntp ~]# rpm -qa | grep ntp
ntp-4.2.2p1-7.el5
[root@ntp ~]#


설치의 예
# rpm -Uvh ntp-4.2.2.a.20060617-4.i386.rpm

동기화
# ntpdate -b -s time.kriss.re.kr



'Linux tools > NTP(Network Time Protocol)' 카테고리의 다른 글

NTP PEER 설정  (0) 2008.12.08
NTP SERVER 설정  (0) 2008.12.08
NTP(Network Time Protocol)  (0) 2008.12.08
블로그 이미지

쭈꾸댕이

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

,