阿里云简单的部署html,并访问

  1. CentOS7

  2. 连接阿里云,安装httpd

    yum -y install httpd
    
  3. 上传文件到/var/www/html 下

  4. 启动httpd

    systemctl start httpd
  5. 到阿里云控制台添加默认安全组入方向80端口

  6. 访问,例如index.html文件放入/var/www/html下,即可通过:http://云服务器IP地址/index.html 访问

  7. 访问不了的话,关闭防火墙

     systemctl stop firewalld.service
  8. 查看运行状态: service firewalld status

猜你喜欢

转载自blog.csdn.net/weixin_41905320/article/details/106224273