yum proxy 설정

ITWeb/서버관리 2011. 9. 7. 13:30

yum 사용시 사내 방화벽으로 인해 proxy 설정을 해야 합니다.

(또는 시스템 network proxy 설정을 하시면 됩니다.)

방법은 아래와 같습니다.

 

# yum.conf에 proxy 정보 등록

    1. cd /etc

    2. vi yum.conf

        설정 파일 제일 하단에.. 아래 내용 추가

    3. proxy=프락시정보등록(http://......)

        저장하고 나온 후 실행 하면 정상 동작 합니다.

    4. yum list or yum -y update

:

httpd source 로 설치하기.

ITWeb/서버관리 2011. 9. 7. 13:29

# GNU SW 설치

    http://mirror.yongbok.net/gnu

 

# Apache configure 참고 문서

    http://httpd.apache.org/docs/2.0/programs/configure.html

    설치 경로에서 configure 하면 나오는 내용 참고 (본 문서 하단에 첨부함.)

 

1. tar -xvzf httpd-2.2.17.tar.gz

2. cd /home/계정/app

3. mkdir httpd-2.2.17

4. cd /home/계정/dist/httpd-2.2.17

5. ./configure --prefix=/home/계정/app/httpd-2.2.17 --enable-auth-dbm --enable-dav --enable-dav-fs --enable-deflate --enable-cache --enable-disk-cache --enable-expires --enable-ext-filter --enable-file-cache --enable-headers --enable-info --enable-logio --enable-mem-cache --enable-mime-magic --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-proxy-balancer --enable-rewrite --enable-so --enable-speling --enable-ssl --enable-unique-id --enable-usertrack --enable-vhost-alias --enable-bucketeer --with-mpm=worker --with-ssl=/usr/local/ssl --with-z=/usr/local/zlib --enable-dumpio  

5. make

6. make install

7. ln -s /home/계정/app/httpd-2.2.17 httpd


./configure --help 를 통해서 옵션을 확인 하고 설치 하시면 됩니다.
위에 옵션들은 최적화된 옵션이 아니기 때문에 똑같이 설정 하실 경우 성능에 대한 보장은 책임 지지 않습니다.. ㅋ
 

:

Server hostname 변경

ITWeb/서버관리 2011. 9. 7. 09:55

아래와 같이 하면 변경이 가능합니다.

변경 후 reboot 하셔야 합니다.

 

1. root user 로 로그인

2. cd /etc/sysconfig

3. vi network

4. shutdown -r now

 

 

usage: reboot [-n] [-w] [-d] [-f] [-h] [-i]

        -n: don't sync before halting the system

        -w: only write a wtmp reboot record and exit.

        -d: don't write a wtmp record.

        -f: force halt/reboot, don't call shutdown.

        -h: put harddisks in standby mode.

        -i: shut down all network interfaces.

 

 

 

Usage:    shutdown [-akrhHPfnc] [-t secs] time [warning message]
                  -a:      use /etc/shutdown.allow
                  -k:      don't really shutdown, only warn.
                  -r:      reboot after shutdown.
                  -h:      halt after shutdown.
                  -P:      halt action is to turn off power.
                  -H:      halt action is to just halt.
                  -f:      do a 'fast' reboot (skip fsck).
                  -F:      Force fsck on reboot.
                  -n:      do not go through "init" but go down real fast.
                  -c:      cancel a running shutdown.
                  -t secs: delay between warning and kill signal.
                  ** the "time" argument is mandatory! (try "now") **

 

:

CentOS 설치 도움 링크

ITWeb/서버관리 2011. 9. 7. 09:54

CentOS 설치 시 참고 하면 도움이 많이 됩니다.

또한 서버 관리에 대한 지식이 없는 사람도 문서를 따라 진행 하시면 쉽게 설정을 할 수 있습니다.

 

1. 기본 홈페이지 : http://www.centos.org/

2. Document 페이지 : http://www.centos.org/docs/5/

3. Deployment 페이지 : http://www.centos.org/docs/5/html/5.2/Deployment_Guide/

:

계정관리

ITWeb/서버관리 2011. 9. 7. 09:54

[참고사이트]

http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-users-tools.html

 

1. account 생성

    useradd 계정명 -m -b /home/계정명 -d /home/계정명 -s /bin/bash

    passwd 계정명 후 암호 입력

: