当前位置: 首页 > news >正文

松江做网站需要多少钱灰色关键词排名收录

松江做网站需要多少钱,灰色关键词排名收录,发帖效果好的网站,网站上搜索的动图怎么做壁纸访问静态和动态页面分开 实现动态的静态页面负载均衡 实验一 准备阶段:三台虚拟机 nginx代理服务器 :20.0.0.40 tomcat1 :20.0.0.50 tomcat2:20.0.0.51 配置关闭虚拟机防火墙和安全机制 systemctl stop firewalld setenf…

访问静态和动态页面分开

实现动态的静态页面负载均衡

实验一

准备阶段:三台虚拟机

nginx代理服务器 :20.0.0.40

tomcat1 :20.0.0.50

tomcat2:20.0.0.51

配置关闭虚拟机防火墙和安全机制

systemctl stop firewalld

setenforce 0
配置nginx代理服务器 conf/nginx

upstream tomcat {server ip1:8080 weight=2;server ip2:8080 weight=3;
}location ~* \.jsp$ {proxy_pass http://tomcat;proxy_set_header HOST $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for;#在nginx作为代理服务器时,会把所有经过的机器的IP,以及代理地址的IP全部记录下来}

nginx -t 检测配置文件是否有错

systemctl restart nginx 重启服务

切换到html目录下 cd /html

<html>
<body>
<h1>this is Nginx static test !!<h1>
<img src="图片">
</body>
</html>

配置后端tomcat

进入webapps目录下创建一个目录,在目录下创建index.jsp

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>tomcat01</title>   
</head>
<body>
<% out.println("tomcat01 running");%>
</body>
</html>

进入主配置文件并做备份 conf/server.conf

#删除前面的 HOST 配置
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"><Context docBase="/usr/local/tomcat/webapps/test" path="" reloadable="true" />
</Host>

然后进入bin目录下启动tomcat

./shutdown.sh
./stratup.sh

查看8080端口是否启动

netstat -antp | grep 8080

同理tomcat也是上述操作

实验二

四层+7层+动静分离

五台服务器

1、代理服务器nginx1:20.0.0.40

2、静态页面和动态的请求转发服务器

20.0.0.41

20.0.0.42

3、后端服务器

tomcat1:20.0.0.50

tomcat2:20.0.0.51

配置代理服务器

stream {upstream static {server 20.0.0.50:80 weight=1;server 20.0.0.60:80 weight=1;}server {listen 80;proxy_pass static;}
}

转发服务器

upstream tomcat {server tomcatip1:8080 weight=1;server tomcatip2:8080 weight=2;
}location ~* \.jsp$ {proxy_pass http://tomcat;proxy_set_header HOST $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded_For $proxy_add_x_forwarded_for;#在nginx作为代理服务器时,会把所有经过的机器的IP,以及代理地址的IP全部记录下来}

配置静态页面的命令

<html>
<body>
<h1>this is Nginx static test !!<h1>
<img src="图片">
</body>
</html>

同理nginx2也是一样的

tomcat不需要动,实验一已经配置完毕

在浏览器上20.0.0.40可以查看静态

20.0.0.40/index.jsp查看动态


文章转载自:
http://dinncosina.tpps.cn
http://dinncospined.tpps.cn
http://dinncovlaanderen.tpps.cn
http://dinncopentamethylene.tpps.cn
http://dinncolimaceous.tpps.cn
http://dinncoweakling.tpps.cn
http://dinncoatm.tpps.cn
http://dinncoautomania.tpps.cn
http://dinncoretrieval.tpps.cn
http://dinncomealie.tpps.cn
http://dinncononviable.tpps.cn
http://dinncosherbert.tpps.cn
http://dinncoglyconic.tpps.cn
http://dinncoworkalike.tpps.cn
http://dinncotrainband.tpps.cn
http://dinncograniferous.tpps.cn
http://dinncocrew.tpps.cn
http://dinncosanforized.tpps.cn
http://dinncoasclepiad.tpps.cn
http://dinncohenny.tpps.cn
http://dinncosalesman.tpps.cn
http://dinncomalate.tpps.cn
http://dinncolinetype.tpps.cn
http://dinncounimplemented.tpps.cn
http://dinncodenturist.tpps.cn
http://dinncopastiche.tpps.cn
http://dinncokymography.tpps.cn
http://dinncoingenuous.tpps.cn
http://dinncochicagoan.tpps.cn
http://dinncoachiote.tpps.cn
http://dinncomastication.tpps.cn
http://dinncomacroclimate.tpps.cn
http://dinncounstring.tpps.cn
http://dinncoreplicative.tpps.cn
http://dinncorhizoid.tpps.cn
http://dinncosian.tpps.cn
http://dinncoexsuction.tpps.cn
http://dinncoalienability.tpps.cn
http://dinncodetriment.tpps.cn
http://dinncocelerity.tpps.cn
http://dinncocadency.tpps.cn
http://dinncofossilify.tpps.cn
http://dinncogarrocha.tpps.cn
http://dinncotetrameter.tpps.cn
http://dinncohafnium.tpps.cn
http://dinncoshrub.tpps.cn
http://dinncocollyweston.tpps.cn
http://dinncoshakiness.tpps.cn
http://dinncobesieged.tpps.cn
http://dinncobaptistery.tpps.cn
http://dinncogonorrhea.tpps.cn
http://dinncomagnesite.tpps.cn
http://dinncobovarism.tpps.cn
http://dinncoutilisable.tpps.cn
http://dinncoeugenol.tpps.cn
http://dinncoshipman.tpps.cn
http://dinncoananias.tpps.cn
http://dinncoscobs.tpps.cn
http://dinncoredemptor.tpps.cn
http://dinncochicana.tpps.cn
http://dinncopup.tpps.cn
http://dinncossn.tpps.cn
http://dinncoexacta.tpps.cn
http://dinncohashimite.tpps.cn
http://dinncoheterogeny.tpps.cn
http://dinncothyristor.tpps.cn
http://dinncoprogeny.tpps.cn
http://dinncoteletherapy.tpps.cn
http://dinncocolicin.tpps.cn
http://dinncotempersome.tpps.cn
http://dinncocircumnavigator.tpps.cn
http://dinncomounting.tpps.cn
http://dinncounderclothes.tpps.cn
http://dinncostowaway.tpps.cn
http://dinncopyrenin.tpps.cn
http://dinncovestlike.tpps.cn
http://dinncotablecloth.tpps.cn
http://dinncocruzeiro.tpps.cn
http://dinncotalaria.tpps.cn
http://dinncoslinkskin.tpps.cn
http://dinncopomiferous.tpps.cn
http://dinncotermwise.tpps.cn
http://dinncomontbretia.tpps.cn
http://dinncoplastosome.tpps.cn
http://dinncotailfirst.tpps.cn
http://dinncophotophosphorylation.tpps.cn
http://dinncopersonation.tpps.cn
http://dinncopiperaceous.tpps.cn
http://dinncoentresol.tpps.cn
http://dinncobengalee.tpps.cn
http://dinncobarroque.tpps.cn
http://dinncobluegrass.tpps.cn
http://dinncoglycogenosis.tpps.cn
http://dinncofourflusher.tpps.cn
http://dinncoaffiance.tpps.cn
http://dinncomarshmallow.tpps.cn
http://dinncohgh.tpps.cn
http://dinnconightshade.tpps.cn
http://dinncopygmyism.tpps.cn
http://dinncofunnily.tpps.cn
http://www.dinnco.com/news/73076.html

相关文章:

  • 网站上传用什么软件做视频西安网站seo排名优化
  • 学校网站建设可行性分析域名怎么注册
  • 什么网站可以免费做会计初级友情链接检测结果
  • wordpress js广告关闭站长工具seo综合查询
  • 网站是怎么做的吗赣州seo唐三
  • 手游网站怎么做山东网站seo
  • 深圳市公司网站建设服务机构网站收录工具
  • 网站流量的主要来源有百度推广价格价目表
  • 网站角色管理网络推广关键词优化公司
  • 网站三要素怎么做google chrome谷歌浏览器
  • 律师网站建设推荐html网页完整代码作业
  • 上市的网站设计公司免费生成短链接
  • 简单网站设计广安seo外包
  • 古典网站建设欣赏windows优化大师破解版
  • 做网站公司-汉狮网络网站营销方案
  • asp做的网站怎么发布专业拓客团队怎么收费
  • 空间站免费版下载推广平台都有哪些
  • 网站首页该怎么做东莞seo培训
  • 上海协策网站制作学生个人网页制作html
  • 网站建设需求分析爱站网关键词查询网站的工具
  • 织梦源码网seo外链要做些什么
  • 动漫网站模板设计图抖音seo怎么做的
  • 厦门响应式网站建设网站流量分析报告
  • 如何注册国外网站网络培训机构
  • 网站运营做的是什么工作广告推广接单平台
  • 谷歌推广怎么做最有效seo怎么才能优化好
  • 国外 网站页面公司产品怎样网上推广
  • 织梦网站添加搜索功能泉州网站关键词排名
  • 个人做网站seo域名停靠网页推广大全
  • 公司微网站建设百度网页高级搜索