如何配置uClinux实现简易HTTP应用(显示web网页)

来源:互联网 发布:windows ftp put命令 编辑:程序博客网 时间:2024/06/10 06:14
导读:
  1用户选项配置
  在用户选项的network application中,选中“Boa”和“httpd”两项服务。
  2建立home/httpd目录
  修改44b0/makefile文件,加入/home/httpd目录;
  将测试网页index.html拷贝到该目录下,下面是一个最为简单的HTML语言写成的测试网页:
  
  
  A test web page
  
  
  

Test Page


  


  If you are seeing this page, then your web server is working, and now
  you need to create some nice pages to replace this one :-).
  


  
  
  3启动httpd服务器
  uClinux在目标系统上正确启动后,首先采用ping工具测试网络是否畅通,然后执行:httpd &
  开启httpd服务器在后台运行。然后在主机上启动客户浏览器,在地址栏中键入:
  http://192.168.253.2/
  如果一切顺利,将看到网页的显示。

本文转自
http://www.wsnforum.org/bbs/simple/index.php?t487.html