毕业论文
毕业设计论文题目 i x下H TT P服务器设计
学院 信息与自动化学院年级
学生姓名:
指导教师单位: 通信工程系
指导教师姓名:
指导教师职称:
本页装订为《任务书》 《任务书》需要由指导教师拿到学院教务处盖教学附院长的签章方生效,本页之后采用昆工教务处下发的毕业设计论文专用纸格式写作和打印
毕业设计论文题目: Linux下HT 服务器设计学院 信息与自动化学院
专业 通信工程
年级:
学生姓名
指导教师单位:
指导教师姓名:
指导教师职称
Title: Desi n of HTTP v r Ba ed o inux
F ulty: F cult of municat on E gi
Author
Direc o ’sUnit
irector
Directo ’ title:
目录
摘要. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .viii
Abstract. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .viii
前言. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .x
第一章 绪论. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
1 .1课题背景. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
1 .2 课题研究的目的和意义. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
第二章HTTP服务器的相关理论基础. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
2.1 Linu 系统简介. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
2.2 TC/IP协议分析. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
i ux下网络编程介绍. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
第六章总结与体会. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
谢辞. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
参考文献. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
附录. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
附录1 软件使用说明. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
摘要
Linux操作系统是一个开放源代码的免费操作系统。它不仅有安全、稳定、成本低的特点而且很少发现有病毒传播。 H P服务器是eb服务器的一种 它是基于超文本传输协议H P的服务器基于Lin x具有稳定、可靠、安全和强大的网络功能这些优点,使得其主要应用于服务器领域。所以本文选择在L nux环境下实现一个H T 服务器。
本文研究了Linux下HT P服务器的设计与实现。在 inux系统中采用HTP协议和浏览器完成数据的传输。 阐述了 inux套接字编程的方法、 EPO L等 /O复用编程模型。详细分析了H T 协议内容以及客户端与服务器之间的通信过程。本文实现了客户端浏览器和服务器端以H TP协议进行请求和响应的功能。同时对服务器进行了一个简单的压力测试。所有程序代码均为L nux下的C语言编程。
关键字 Linux、 TP服务器、 H TP协议、 EPLL
Abstract
he inux operate s stem a free operate s stem c ope s ur e cod 。 No onl it c a ac s icssuc as safe stabi l ity, d h w co t but al o it seldom di seminates the V ru 。 HT P erver one of he Web server it as on HTTP pro ocol st e L nu ope a ings eha th unc ion of table rel iable,safe and owe ul netw rk itmainl u ed in erv r 。 To re l izea TTP er er in th L nu envi o ment st e ho ce
his p r nt oducesdes gn and mpleme of HTTP s r e in Li ux opera i g s steIn e nu sy m a d owser used T P protocol for d ta tra smi ion。 This p perexpoun s th method f Linuxscket p o ramming and EPO L I/Omultiplexi prog am g od l Det led anal s s the ommun i n prces be ween cl ien a d se ver d H TP rtocolThis pape ea ze thef ti n tha the cl ient ros r req sts and the er r respon s by H TP a reeme Make a s mple pressurete t on t s ver。 l program c e se the n ua e pr raing in Linu opera ing ystem。
Keyword nux TTP Server, HTTP ol EPOL
百星数据(baixidc),2012年开始运作至今,主要提供境外自营云服务器和独立服务器出租业务,根据网络线路的不同划分为:美国cera 9929、美国cn2 gia、香港cn2 gia、韩国cn2 gia、日本cn2 gia等云服务器及物理服务器业务。目前,百星数据 推出的日本、韩国、香港cn2 gia云服务器,2核2G/40G/5M带宽低至60元/月,600元/年。百星数据优惠码:优惠码:30...
wordpress简洁英文主题,wordpress简洁通用大气的网站风格设计 + 更适于欧美国外用户操作体验,完善的外贸企业建站功能模块 + 更好的移动设备特色模块支持,更高效实用的后台自定义设置 + 标准高效的代码程序功能结构,更利于Goolge等国际搜索引擎的SEO搜索优化和站点收录排名。点击进入:wordpress简洁通用型高级外贸主题主题价格:¥3980 特 惠 价:¥1280安装环境:运...
月付/年付优惠码:zji 下物理服务器/VDS/虚拟主机空间订单八折终身优惠(长期有效)一、ZJI官网点击直达ZJI官方网站二、特惠香港日本服务器香港大埔:http://hkdb.speedtest.zji.net/香港葵湾:http://hkkw.speedtest.zji.net/日本大阪:http://jpsk.speedtest.zji.net/日本大阪一型 ...