1、安装httpd服务:
#yum install -y httpd
2、启动httpd服务:
#systemctl start httpd.service
#systemctl status httpd.service
开机自启:
#systemctl enable httpd.service //开机启动
#systemctl disable httpd.service //开机不启动
3、访问:
同一局域网下访问http://<IP>(:80,可有可无,默认80).可以看见一下页面表示部署ok。
4、自定义页面:
#cd /var/www/html 下,
#touch index.html,
#vim index.html,
再次根据【3】中访问,
End