Linux configuration an HTTP Web page

Source: Internet
Author: User
Use Apache to build a Web page and access it normally

Using the Yum install httpd-y command will automatically go to the Yum source to get the required RPM package

Wait for installation to successfully prompt complete

Because the firewall is turned on, you need to use the command Vi/etc/sysconfig/iptables to edit the firewall, add a rule to release HTTP 80 port

Restart Firewall service Iptables after saving restart

HTTP Web files are typically saved in the/var/www/html folder, where you create a index.htm file using the Touch index.html command

Edit the new file using VI, and write something in the file. Test

Write well save exit edit mode

Restart the HTTP service using the command service httpd restart

Restart successful you can use the browser to enter the server IP to browse the Web file you just created

Linux configuration an HTTP Web page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.