One, Check Network
ping www.baidu.com
[Upload failed]
Two, Install net-tools package — Prerequisites
dnf install -y vim wget net-tools
[Upload failed]
Three, Install Service
dnf install -y httpd
Four, Verify Installation Success
httpd -v
Five, Start Service
systemctl start httpd * # Currently started *
systemctl enable httpd * # Enable on boot *
Six, Check Service Status
systemctl status httpd * # Ensure httpd service status is active (running) *
Seven, Disable Firewall
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
[Upload failed]
Eight, Verify Installation
curl http://localhost
One, Check Network
ping www.baidu.com
Two, Install net-tools package — Prerequisites
dnf install -y vim wget net-tools
Three, Install Service
dnf install -y httpd
Four, Verify Installation Success
httpd -v
Five, Start Service
systemctl start httpd * # Currently started *
systemctl enable httpd * # Enable on boot *
Six, Check Service Status
systemctl status httpd * # Ensure httpd service status is active (running) *
Seven, Disable Firewall
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
Eight, Verify Installation
curl http://localhost