Alibaba Cloud simply deploys html and access

  1. CentOS7

  2. Connect to Alibaba Cloud and install httpd

    yum -y install httpd
    

     

  3. Upload files to /var/www/html

  4. Start httpd

    systemctl start httpd

     

  5. Go to the Alibaba Cloud console to add port 80 in the default security group inbound direction

  6. Access, for example, put the index.html file under /var/www/html, you can access it through: http://cloud server IP address/index.html

  7. If you cannot access, turn off the firewall

     systemctl stop firewalld.service

     

  8. Check the running status: service firewalld status

     

Guess you like

Origin blog.csdn.net/weixin_41905320/article/details/106224273