System/OS
2003.04.23 10:27

[linux] 아파치설치/설정

Views 14492 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
1. 설치
   # 먼저 시스템 시간을 정확히 맞추어 두어야 한다
   $ tar  xvzf  apache_1.3.9.tar.Z      
   $ mv  apache_1.3.9  /usr/local/apache
   $ cd  /usr/local/apache
   # 나중에 java, php등의 추가 기능이 동작 하기 위해서는 모듈 컴파일 되어야한다
   $ ./configure  --enable-rule=SHARED_CORE  --enable-module=so  --prefix=/usr/local/apache
   # 혹은 $ ./configure  --enable-rule=SHARED_CORE  --enable-module=all  --prefix=/usr/local/apache
   $ make; make install

2. 환경 설정
   $ vi  /usr/local/apache/conf/httpd.conf
   # 포트 여러개 주어도 연결되게 만든다
     Port  8080 -> 80
     listen  80
     listen  8080
   # 서버 네임을 지정한다(DNS에 등록 되어 있는 경우)
     ServerName  toconet.co.kr 
   # 디렉토리에서 기본 문서를 찾는 순서
     DirectoryIndex index.html index.htm 

3. 시작과 중지
    $ cd  /usr/local/apache/bin/
    $ apachectl  start
    $ apachectl  stop
    $ killall  httpd
    $ killall  -1  httpd

4. 부팅시에 자동 시작되게 만든다
    $ vi  /etc/rc.d/rc.local
    # end line add
    /usr/local/apache/bin/apachectl start & 

?

List of Articles
No. Category Subject Author Date Views
170 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15232
169 System/OS [linux] APM(apache, php, mysql) + gd 설치순서.. hooni 2003.04.23 18851
168 System/OS [linux] awk 명령어 hooni 2014.03.11 4955
167 System/OS [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." hooni 2014.04.05 4838
166 System/OS [linux] CentOS 6.x Cati 설치 (yum) hooni 2014.01.17 48594
165 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4478
164 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 1688
163 System/OS [linux] CentOS 터미널 언어 설정(한글/영어) hooni 2013.12.22 18513
162 System/OS [linux] DHCP(Dynamic Host Configuration Protocol) 서버 hooni 2003.04.23 13023
161 System/OS [linux] DNS(Domain Name System) 설치, 설정 hooni 2003.04.23 12438
160 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11369
159 System/OS [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기 file hooni 2014.01.09 12219
158 System/OS [linux] ipchains 사용예(패킷 필터링) hooni 2003.04.23 14171
157 System/OS [linux] ipchains 옵션 hooni 2003.04.23 13611
156 System/OS [linux] ipfwadm를 이용한 패킷필터링(구버전) hooni 2003.04.23 13015
155 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11335
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13