20145221 High &20145326 Cai "the foundation of Information Security system Design" experiment of five simple embedded web server
Purpose and requirements of the experiment
- Master the process of implementing a simple Web server in the arm Development Board.
- Learn the socket network programming on the arm Development Board.
- Learn the call of the signal () function in a Linux environment.
Principle of experiment
On a Linux PC, the ARM-LINUX-GCC compiler is used to compile executable code for the Linux arm platform.
Learn the fundamentals of multi-threaded programming.
Learn the use of Pthread library functions.
Configuration of the experimental process development environment
Reference Experiment One
Read the experiment code and copy it to the shared folder. Modify the makefile with reference to the experimental instruction book:
Compiling the application
Enter the 07_httpd folder, run make to generate the executable file httpd, and then enter
When you view the folder again, you can see that the httpd executable has been generated.
Download Debug
Use the NFS service to download the httpd to HyperTerminal and copy the test page for debugging, and then wait for the interface to connect.
Native test
Enter http://192.168.0.121 in the desktop browser to observe the results of the connection request in the client's browser and the print information for the server on the Development Board.
Problems encountered and their solutions
Problem: error127 appears during make.
FIX: Found the reason, is the environment variable configuration has a problem, is the copy code when a Rules.mak Mak type file is not copied together, resulting in the make command can not be used, reconfigure the normal make.
Experience
After the experiment was completed and the relevant environment variables were well configured, the process was relatively smooth. There is no big problem, but if the experiment instruction book is carefully studied in advance, the experimental results should be better. This semester the basic experiment of information security design is over, in these five experiments, our team to solve problems and the ability to practice has been improved, the operating system and related ARM board development has a deeper understanding and understanding. Thanks for the teacher's guidance and help!!!
20145221 High &20145326 Cai "the foundation of Information Security system Design" experiment of five simple embedded web server