Contents

System/OS
2003.04.23 10:27

[linux] 아파치설치/설정

Views 15238 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
36 System/OS [linux] split 명령어 hooni 2014.03.11 5199
35 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 5075
34 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 4952
33 System/OS 네트워크 용어 정리 file hooni 2022.11.20 4596
32 System/OS [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’ file hooni 2022.06.01 4511
31 System/OS [apache2] Redirect HTTP to HTTPS file hooni 2022.02.03 4486
30 System/OS [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기 1 file hooni 2015.01.04 4412
29 System/OS 콘솔에서 패스워드 걸린 zip 압축하는 명령 hooni 2018.03.02 4256
28 System/OS SSH Passwordless Login Using SSH Keygen in 5 Easy Steps file hooni 2019.11.22 4098
27 System/OS Enable the Develop Menu in Safari file hooni 2017.02.07 4020
26 System/OS [linux] wget 명령 사용 예제 hooni 2020.05.26 3975
25 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 3886
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17