yum update -y
yum install -y epel-release
yum install -y epel-release
yum install -y httpd
systemctl start httpd #開啟http服務
systemctl status httpd #查看狀態
systemctl enable httpd #設定開機自動開啟
systemctl start httpd #開啟http服務
systemctl status httpd #查看狀態
systemctl enable httpd #設定開機自動開啟
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload
firewall-cmd --list-all
firewall-cmd --reload
firewall-cmd --list-all