Install the net-tools package

一、检查网络

ping www.baidu.com

[Upload failed]

二、安装net-tools工具集合包——前提条 件

dnf install -y vim wget net-tool s

[Upload failed]

三、 安装服务

dnf install -y h t tpd

四、验 证安装是否成功

h t tpd - v

五、启动服务

systemctl start httpd #当前启动

systemctl enable httpd # 开机启动

六、查看服务状态

systemctl status httpd #确保httpd服务状态是ac ti ve ( r unning)

七、关闭防火墙

systemc tl stop firewalld

systemctl disable firewall d

setenforce 0

sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ / etc/ s elinux/c onfig

[Upload failed]

八、验证安装

curl http://lo calhost

****一、检查网 络

p ing www.baidu.com

二 、安装net-tools工具集合包——前提条 件

dnf in stal l -y vim w get net-tool s

三、 安装服务

dnf instal l -y h ttpd

四、验 证安装是否 成功

h ttpd - v

五、启动服务

systemctl start httpd #当前启动

syste mctl enable httpd # 开机启动

六、查看服务状态

systemctl status httpd #确 保httpd 服务状态是ac tive ( running)

七、关闭防火墙

systemc tl stop firewalld

systemctl disable firewall d

setenforce 0

sed -i ‘s/SELINUX= enforc ing/SELIN UX=disabled/’ /etc/ selinu x/c onfig

八、验证安装

curl http://localhost