-
CentOS7
-
连接阿里云,安装httpd
yum -y install httpd
-
上传文件到/var/www/html 下
-
启动httpd
systemctl start httpd
-
到阿里云控制台添加默认安全组入方向80端口
-
访问,例如index.html文件放入/var/www/html下,即可通过:http://云服务器IP地址/index.html 访问
-
访问不了的话,关闭防火墙
systemctl stop firewalld.service
-
查看运行状态: service firewalld status
阿里云简单的部署html,并访问
猜你喜欢
转载自blog.csdn.net/weixin_41905320/article/details/106224273
今日推荐
周排行