19 02 2021
Linux Centos 8 apache install
1) yum install httpd
2) 확인
[root@hae sbin]# httpd -version
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
3) 방화벽설정
[root@hae sbin]# firewall-cmd – -state
running
[root@hae conf]# firewall-cmd – -permanent – -add-service=http
success
[root@hae conf]# firewall-cmd – -permanent – -add-service=https
success
[root@hae conf]# firewall-cmd – -reload
success
[root@hae conf]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@hae conf]# systemctl start http
[root@hae sbin]# firewall-cmd – -list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: enp3s0
sources:
services: dhcpv6-client ssh
ports: 80/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
4)브라우저에서 확인
Comments are currently closed.