OS/Linux

[RHEL, CentOS] Linux Install Apache HTTP Web Server(httpd)

꿀빵it 2024. 7. 29. 15:24

설치된 Red Hat Enterprise Linux 8.8버전에 Httpd (Apache HTTP Web Server) 설치하는 과정입니다.

CentOS도 동일하게 설치 가능합니다.

 

1. dnf(yum) reposirory httpd 설치 가능 목록 조회

#yum repository httpd 목록 조회
yum list httpd

 

2. httpd 설치

#yum httpd 설치
yum install -y httpd

 

3. httpd 자동실행 설정

#자동실행 설정
systemctl enable httpd

 

4. httpd 실행 확인

#실행 확인
systemctl status httpd

 

5. 동작 확인

etc. 기타 명령어

#apache 확인
systemctl status httpd

#apache 실행
systemctl start httpd

#apache 중지
systemctl stop httpd

#apache 재시작
systemctl restart httpd

#자동시작 On
systemctl enable httpd

#자동시작 Off
systemctl disable httpd

#yum apache 삭제
yum remove -y httpd
LIST