Contents

System/OS
2003.04.23 10:27

[linux] 아파치설치/설정

Views 14492 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
202 System/OS [apache2] Redirect HTTP to HTTPS file hooni 2022.02.03 680
201 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 784
200 System/OS [linux] The Ultimate Wget Download Guide With 15 Awesome Examples hooni 2020.05.26 797
199 System/OS 개인적으로 쓰고 있는 zshrc 파일 hooni 2022.02.25 824
198 System/OS 개인적으로 쓰고 있는 bash_profile hooni 2015.01.16 842
197 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 876
196 System/OS [mac] How to uninstall MySQL on Mac OS. hooni 2017.11.08 882
195 System/OS 맥에서 포트 확인하고 닫기 (mac) hooni 2022.03.22 890
194 System/OS [virtualbox] VirtualBox에 Ubuntu 설치하기 file hooni 2019.11.22 906
193 System/OS 콘솔에서 패스워드 걸린 zip 압축하는 명령 hooni 2018.03.02 935
192 System/OS [펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들 file hooni 2020.10.15 941
191 System/OS [mac] VirtualBox 실행 스크립트와 bash_profile 설정 file hooni 2020.07.08 952
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17