성미급한 사람들을 위한 아파치 설치
TRANSCRIPT
![Page 1: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/1.jpg)
성미급한 사람들을 위한 아파치 설치법
원은정 진실 남경민 양은숙
![Page 2: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/2.jpg)
Httpd.apache.org에 들어갑니다.
클릭! 클릭!
![Page 3: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/3.jpg)
Httpd.apache.org 사이트에서 2.218 버전을 다운 받습니다.
![Page 4: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/4.jpg)
Unix source httpd-2.218.tar.gz 를 다운받습니다.
다운완료!.
![Page 5: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/5.jpg)
* cd 명령어 : 자신의 홈 디렉토리로 이동
ls 명령어 : 파일의 목록을 간단하게 출력
1. cd 다운로드(또는 httpd 2.2.18.tar.gz파일이 저장되어 있는 경
로)명령어를 실행하여 다운로드 디렉토리로 들어 갑니다.
2. ls명령어로 경로에 잘 들어갔는지, 찾고자 하는 파일이 있는지
확인합니다.
![Page 6: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/6.jpg)
Gzip-d 명령어를 이용하여 파일 압출을 풉니다.
* gzip-d 명령어 : 파일 압축을 해제
(gzip-d후 tap을 눌러주면 압축
해제할 파일명이 입력된다.)
![Page 7: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/7.jpg)
Ls 명령어를 이용해 압축해제된 파일 목록을 확인합니다.
![Page 8: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/8.jpg)
Tar xvf httpd-2.2.18.tar명령어를 실행하면 과정이 주르륵 나옵니다.
(*캡쳐사진 중간에 공중분해 ㅜㅜ)
![Page 9: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/9.jpg)
Cd명령어를 사용하여 httpd-2.2.18파일이 있는 폴더로 이동합니다.
![Page 10: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/10.jpg)
./configure 명령어를 입력하여 컴파일 환경을 구성합니다.
사용자가 임의로 경로를 지정하고 싶을 때에는 ./configure –prefix=~~~~~
(~~~에 사용자 임의의 경로지정)
--prefix를 입력하지 않을 경우에는 default경로인 /usr/local/apache2로 자동지정
![Page 11: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/11.jpg)
컴파일환경 구성과정...
![Page 12: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/12.jpg)
컴파일환경 구성과정...
![Page 13: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/13.jpg)
Make명령어로 컴파일한다.
컴파일 중....
![Page 14: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/14.jpg)
Sudo make install 명령어로 설치를 합니다.
(sudo명령어는 관리자권한으로 실행하는 것으로 사용시 비밀번호를 입력하여야 한다)
![Page 15: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/15.jpg)
설치하는 중...
![Page 16: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/16.jpg)
Cd /usr/local/apache2를 입력하여 파일 위치를 변경합니다.
![Page 17: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/17.jpg)
Ls명령어로 현재 경로의 폴더를 확인합니다.
![Page 18: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/18.jpg)
Cd 명령어로 conf폴더에 들어갑니다.
![Page 19: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/19.jpg)
Sudo gedit httpd.conf로 httpd.conf파일에 들어갑니다.
(폴더에서 직접 클릭하여 이 문서를 열경우 Read Only권한으로 인해서
코드를 수정할 수 없습니다.)
![Page 20: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/20.jpg)
httpd.conf 에서 Listen80 을 → Listen8080으로 바꿉니다.
![Page 21: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/21.jpg)
Cd /usr/local/apache2/bin 으로 이동합니다.
![Page 22: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/22.jpg)
Sudo ./apachectl start 명령어로 서버를 실행합니다.
![Page 23: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/23.jpg)
※ Error : Could not reliably determine the server’s fully qualified domain name. Using
127.0.1.1 for ServerName
아파치를 실행하는 도중에 ServerName과 관련한 오류가 날 경우
![Page 24: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/24.jpg)
httpd.conf 에서 Listen80 을 → Listen8080으로 바꿉니다.
※ Error : Could not reliably determine the server’s fully qualified domain name. Using
127.0.1.1 for ServerName
![Page 25: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/25.jpg)
telnet 127.0.0.1 8080 명령어로 서버 정보를 봅니다.
GET/HTTP/1.0 명령어를 입력하면 실행중인 서버 정보가 나타납니다.
![Page 26: 성미급한 사람들을 위한 아파치 설치](https://reader034.vdocuments.mx/reader034/viewer/2022052304/55958c101a28abe2798b45e7/html5/thumbnails/26.jpg)
sudo ./apachectl stop 명령어로 서버를 종료합니다.