🔻Extracurricular Activity/UMC

[UMC 3기] server 1주차-2

_니지 2022. 9. 24. 01:36

❗가상머신(리눅스)에 Apache 설치

✏️가상머신(우분투) 설치
기존에 깔아놨던 가상머신을 그대로 이용
우분투만 새로 만듦
https://radiant515.tistory.com/131

[Linux] 가상머신(VirtualBox) 깔기

https://webnautes.tistory.com/448 Windows에 설치된 VirtualBox를 사용하여 Ubuntu 설치하기 Windows 10이 설치된 PC에 VirtualBox를 설치하여 가상머신을 생성하고 가상 머신에 Ubuntu를 설치하는 방법을 다룹..

radiant515.tistory.com

https://radiant515.tistory.com/132

[Linux] 가상머신에  ubuntu(우분투) 22.04 설치

https://www.youtube.com/watch?v=kreJ5nZC32g https://ubuntu.com/download/desktop Download Ubuntu Desktop | Download | Ubuntu Ubuntu is an open source software operating system that runs from the desk..

radiant515.tistory.com




✏️Apache 설치
소스 설치, 수동 설치, 컴파일 설치 -> 리눅스에서 소스를 직접 다운 받아 컴파일하여 설치는 것(반대가 패키지 설치)

-아파치 설치할 디렉토리 생성

sudo su
cd /usr/local
mkdir apache


-의존성 패키지 설치

sudo apt-get update #업데이트 먼저 실행
# apt-get install make
# apt-get install build-essential
# apt-get install gcc
# apt-get install --reinstall make
# apt-get install libexpat1-dev
# apt-get install g++ 
# apt-get install net-tools
# apt-get install curl
apt-get install make
apt-get install build-essential
apt-get install gcc
apt-get install --reinstall make
apt-get install libexpat1-dev
apt-get install g++
apt-get install net-tools
apt-get install curl


-설치 파일 다운 및 압축 해제

# cd /usr/local
# wget https://mirror.navercorp.com/apache//apr/apr-1.7.0.tar.gz
# wget https://mirror.navercorp.com/apache//apr/apr-util-1.6.1.tar.gz
# wget https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz
# wget https://archive.apache.org/dist/httpd/httpd-2.4.53.tar.gz

# tar xvfz apr-1.7.0.tar.gz
# tar xvfz apr-util-1.6.1.tar.gz
# tar xvfz pcre-8.45.tar.gz
# tar xvfz httpd-2.4.53.tar.gz


-설정 변경

# cd /usr/local
# cd apr-1.7.0
# ./configure --prefix=/usr/local/apr
# make
# make install
# cd /usr/local
# cd apr-util-1.6.1
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
# make
# make install
# cd /usr/local
# cd pcre-8.45
# ./configure --prefix=/usr/local/pcre
# make
# make install
# cd /usr/local
# cd httpsd-2.4.53
#./configure --prefix=/usr/local/apache2.4 \--enable-module=so --enable-rewrite --enable-so \--with-apr=/usr/local/apr \
 --with-apr-util=/usr/local/apr-util \--with-pcre=/usr/local/pcre/bin/pcre-config \--enable-mods-shared=all
# make
# make install

 


-아파치 버전 확인

apt install apcahe2-bin
apache2.4 폴더 생성됨


-서버 실행 확인

브라우저로 확인하기
터미널 코드로 확인하기



참고: https://soobarkbar.tistory.com/216

우분투 (Ubuntu) 18.04 - Apache 2.4.46 수동 설치

Apache 설치하기 1. 준비 # sudo su 2. apr & apr-util 다운로드 명령어 설명 wget : web get의 줄임말로, 웹상의 파일을 다운로드 tar xvfz : tar.gz 형식으로 압축되어있는 파일을 압축해제 # cd /usr/local # w..

soobarkbar.tistory.com

 

728x90
반응형