基于linux-nginx-反向代理服务器的应用研究--大学毕业论文.doc
上传人:努力****爱敏 上传时间:2024-09-11 格式:DOC 页数:42 大小:13.7MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

基于linux-nginx-反向代理服务器的应用研究--大学毕业论文.doc

基于linux-nginx-反向代理服务器的应用研究--大学毕业论文.doc

预览

免费试读已结束,剩余 32 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

基于Linux_nginx_反向代理服务器的应用研究PAGEV基于Linuxnginx反向代理服务器的应用研究摘要随着Web2.0时代的到来,Web服务器的访问者数量快速增加。服务器的CPU、I/O处理能力很快成为企业业务增长的瓶颈,此时可以通过多台服务器提供网络服务解决问题。反向代理服务器,提供一个既可以提高系统性能又可以解决后期的动态扩展的方案。反向代理服务器是相对于正向代理服务器而言的,反向代理的对象是服务器集群。通过反向代理服务器实现多台服务器协作提供不同的服务,但对于客户端表现为一台服务器。本设计采用nginx实现,主要是利用nginx的高并发连接支持的特点,在中小型企业中是一个兼顾性能和成本的不错选择。本文主要研究了在Linux平台下通过nginx的反向代理功能来实现负载均衡的方法。通过在后端搭建多台Web服务器实现负载均衡,通过搭建MySQL数据库和FTP服务器实现动、静态和静态附件的分离。关键字Nginx,反向代理,负载均衡ABSTRACTWiththearrivaloftheeraofWeb2.0,thenumberofvisitorsoftheWebserverincreasesrapidly.ServerCPUandI/Oprocessingpowersoonbecomesthebottleneckofenterprisebusinessgrowth,nowwecansolvetheproblemthroughnetworkserviceswhichofferedbymultipleservers.Reverseproxyserver,providingaplanwhichcanimprovesystemperformanceandsolvedynamicexpansionforlater.Reverseproxyserverisrelativetotheproxyserver,reverseproxyobjectisaservercluster.Throughreverseproxyserverrealizemultipleserversprovidesdifferentservices,butforclientitactsasoneserver.Thisdesignusesthenginxtorealize,mainlyusingitscharacteristicofhighconcurrentconnections,itisagoodchoiceforsmallandmedium-sizedenterprisesbetweenperformanceandcost.ThispapermainlystudiedinthemethodofusingnginxreverseproxyfunctiontoachieveloadbalancingonLinuxplatform.ThroughbuildingmultipleWebserversbackendrealizeloadbalancing,throughconstructingtheMySQLdatabaseandFTPserverrealizestaticanddynamicandstaticattachmentofseparation.KeyWords:NginxReverseproxyLoadbalancing目录TOC\o"1-3"\u1绪论PAGEREF_Toc105941944\h11.1课题研究的背景PAGEREF_Toc105941945\h11.2课题研究的意义PAGEREF_Toc105941946\h12系统实现的原理PAGEREF_Toc105941947\h22.1基于Web的分布式系统PAGEREF_Toc105941948\h22.2UbuntuServer10.04.2LTSPAGEREF_Toc105941949\h22.3nginxPAGEREF_Toc105941950\h22.4反向代理PAGEREF_Toc105941951\h32.5Discuz!XPAGEREF_Toc105941952\h32.6XAMPPPAGEREF_Toc105941953\h32.6.1ApachePAGEREF_Toc105941954\h42.6.2MySQLPAGEREF_Toc105941955\h42.6.3phpMyAdminPAGEREF_Toc105941956\h42.6.4FileZill