systemctl start httpd 开启服务
Linux搭建的web服务器默认的网站首页所在目录 /var/www/html/ ,
vim index.html 编辑首页文件
systemctl stop firewalld,关闭防火墙程序
setenforce 0临时关闭selinux防火墙
1.添加ip地址
nmcli connection up ens160
2.关闭防火墙和selinux
3.安装对应的服务软件Apache
4.更改配置文件实现自定义设置
[root@localhost ~]# vim /etc/httpd/conf.d/dns.conf
6.重启服务测试