首先打开网络
控制面板——网络和Internet——网络连接
安装appach
1.yum -y install httpd
启动
2.systemctl start httpd
关闭防火墙
3.systemctl stop firewalld
查看ip
4.ip add
在谷歌浏览器中使用ip访问
5.在网址栏中输入ip
进入页面
6.cd /var/www/html/.
编辑页面
7.vi index.html
在页面中输入内容
8.进入页面按i进行添加,输入hello,ess退出,:wq退出编辑页面,重新刷新谷歌浏览器,页面出现输入内容hello