Centos 8.2 리눅스 Apache 설치 하기
Centos 8.2 리눅스 Apache 설치 하기
방화벽 시작
systemctl start firewalld
systemctl enable firewalld
* centos 8.2의 경우 방화벽은 설치 되어 있습니다.
기본 포트(21, 22, 80, 3306) 허용
firewall-cmd --permanent –-add-port=21/tcp
firewall-cmd --permanent –-add-port=22/tcp
firewall-cmd --permanent –-add-port=80/tcp
firewall-cmd --permanent –-add-port=3306/tcp
http 설치 및 서비스 시작
yum –y install httpd
systemctl enable httpd
systemctl start httpd
서비스 동작 상태 확인
systemctl status httpd
웹 브라우저에서 확인
http://127.0.0.1
댓글
댓글 쓰기