题:搭建一个Web Server站点、安装web服务,并在本地建立index.html测试html
一、安装http服务web
yum -y install httpd
二、进入网站目录测试
cd /var/www/html/
三、建立索引文件网站
echo "test" > index.html
四、启动服务,设置开机自启动spa
systemctl start httpd.service
systemctl enable httpd.service
检查:firefox
firefox http://127.0.0.1code