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
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.