C language basics Lesson 1 Linux environment configuration practices: httpserver and linuxhttpserver

Source: Internet
Author: User

C language basics Lesson 1 Linux environment configuration practices: httpserver and linuxhttpserver

C language basics Lesson 1 Linux environment configuration small practice httpserver

 

 

The first environment requires the redhat virtual machine operating system

  1. Enable redhat Firewall


2. Check WWW (HTTP)

3. Click apply. Click Yes.

4. Switch to the root user

Enter the correct root Password

5. Start the http service

6. Enter ifconfig to view the current ip Address

Pain points

7. Through analysis, we know that windows is a LAN ip address and can communicate with Linux in net or host mode.

If you do not want to change the local IP address, you need to change the Virtual Machine IP address and network connection mode.

Select the copy Nic status

8. Right-click the network connection icon to edit the network connection

 

Select and edit a wired network connection

 

9. Set the IP address to a CIDR block with the local IP address. I need to change it to the following in the CIDR Block 21 locally.

10. Restart the network service and view the ip address

11. Open the windows browser and Several Linux IP addresses. The REDHAT welcome page appears.

11. Enter the Directory

12. Compile a simple html Script

 

13. Open it again from the windows browser

13. Open the html file again and modify it as follows:

14. Open again

The font size has increased.

15. Now let's change the font color.

16. Check the effect after changing the font color.

The font turns red.

Well, the first lesson is over. Through this course, we learned how to make redhat a small httpserver.


C language programming in linux

If you don't need to worry about it, you can get it at night. Now there's no linux in the class.

C Programming books in the linux environment, from beginner to advanced

In fact, APUE is a very good book. I don't know what it means? This is what the old man LS said about unix Advanced Programming. The English name is Advanced Programming In Unix Environment. I suggest you read the English version. There are very few new words In computer books, so you can read the dictionary, the translation of the Chinese version is not powerful, and it is not difficult to think of this book. It can only be quickly improved at the starting point. If you do not understand it, you can read it repeatedly.

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.