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

如何做社交网站拼多多女装关键词排名

如何做社交网站,拼多多女装关键词排名,工作服,旅游网站建设的原因安装java环境 查询 java安装包 196 yum list java* 安装java8197 yum install -y java-1.8.0-openjdk.x86_64 检验java8是否安装成功。198 java -version2个tomcat准备 另外一个tomcat区别在于:配置文件。conf/server.xml 启动tomcat [rootlocalhost bin]# ./…

安装java环境

查询 java安装包
196  yum list java*
安装java8197  yum install -y java-1.8.0-openjdk.x86_64
检验java8是否安装成功。198  java -version

2个tomcat准备

另外一个tomcat区别在于:配置文件。conf/server.xml

image.png

image.png

启动tomcat

[root@localhost bin]# ./startup.sh

测试tomcat

[root@localhost bin]# curl http://localhost:8081/test/index.html
tomcat-8081,81,81
[root@localhost bin]# curl http://localhost:8082/test/index.html
tomcat-8082,82,82
[root@localhost bin]#

nginx安装:

目录:/etc/yum.repos.d/241  vi nginx.repo文件内容:
[root@192 yum.repos.d]# cat nginx.repo 
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[root@192 yum.repos.d]#
239  cd /etc/yum.repos.d/240  ll安装nginx:242  yum install nginx243  nginx -v244  ps -ef | grep nginx245  cd /usr/sbin/246  ll247  ./nginx248  ps -ef | grep nginx
测试nginx249  curl http://localhost

nginx做负载均衡

修改/etc/nginx/nginx.conf

/test/index.html[root@192 nginx]# cat nginx.conf user  nginx;
worker_processes  auto;error_log  /var/log/nginx/error.log notice;
pid        /var/run/nginx.pid;events {worker_connections  1024;
}http {include       /etc/nginx/mime.types;default_type  application/octet-stream;log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ''$status $body_bytes_sent "$http_referer" ''"$http_user_agent" "$http_x_forwarded_for"';access_log  /var/log/nginx/access.log  main;sendfile        on;#tcp_nopush     on;keepalive_timeout  65;#gzip  on;include /etc/nginx/conf.d/*.conf;# diyupstream myServer {server localhost:8081;server localhost:8082;}server {listen 80;server_name myNginx.com;location /test/ {proxy_pass http://myServer;}}
}
[root@192 nginx]#

重新加载配置文件

启动nginx:/usr/sbin/nginx
[root@192 nginx]# /usr/sbin/nginx -s reload

域名:

myNginx.com

配置linux域名:

image.png

配置宿主机域名:

image.png

image.png

kong负载均衡

先看nginx

# diyupstream myServer {server localhost:8081;server localhost:8082;}server {listen 80;server_name myNginx.com;location /test/ {proxy_pass http://myServer;}}

kong:

upstream

查看:http://127.0.0.1:8001/upstreams。

image.png

添加:

[root@localhost etc]# curl -X POST http://localhost:8001/upstreams --data "name=myServer"{"client_certificate":null,"hash_on":"none","id":"933c3aab-85da-4dc1-a34f-2fae01b56b48","hash_on_header":null,"algorithm":"round-robin","hash_on_query_arg":null,"hash_on_uri_capture":null,"healthchecks":{"passive":{"type":"http","healthy":{"http_statuses":[200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308],"successes":0},"unhealthy":{"tcp_failures":0,"timeouts":0,"http_failures":0,"http_statuses":[429,500,503]}},"active":{"headers":null,"http_path":"/","https_sni":null,"https_verify_certificate":true,"concurrency":10,"unhealthy":{"tcp_failures":0,"timeouts":0,"http_failures":0,"http_statuses":[429,404,500,501,502,503,504,505],"interval":0},"timeout":1,"type":"http","healthy":{"successes":0,"http_statuses":[200,302],"interval":0}},"threshold":0},"hash_on_cookie":null,"hash_on_cookie_path":"/","hash_fallback":"none","hash_fallback_header":null,"hash_fallback_query_arg":null,"hash_fallback_uri_capture":null,"host_header":null,"tags":null,"created_at":1669830017,"name":"myServer","slots":10000}[root@localhost etc]#

再检查一下,做确认。

Target

查询:http://127.0.0.1:8001/upstreams/myServer/targets

image.png

添加:

[root@localhost etc]# curl -X POST http://localhost:8001/upstreams/myServer/targets --data "target=10.0.2.4:8081"{"upstream":{"id":"933c3aab-85da-4dc1-a34f-2fae01b56b48"},"tags":null,"id":"499d1373-45fc-44b5-b952-1e590f3be680","weight":100,"created_at":1669830273.544,"target":"10.0.2.4:8081"}[root@localhost etc]# curl -X POST http://localhost:8001/upstreams/myServer/targets --data "target=10.0.2.4:8082"
{"upstream":{"id":"933c3aab-85da-4dc1-a34f-2fae01b56b48"},"tags":null,"id":"093cc5cf-ac84-4bb9-b0c7-0289fec7da6a","weight":100,"created_at":1669830307.884,"target":"10.0.2.4:8082"}[root@localhost etc]#

添加完,查看一下。

Service

查看service:http://127.0.0.1:8001/services

image.png

添加:

[root@localhost etc]# curl -X POST http://localhost:8001/services --data "name=myService" --data "host=myServer"{"client_certificate":null,"tls_verify_depth":null,"id":"a5997d4d-c868-43fe-8a73-9db62c5410f8","created_at":1669830610,"updated_at":1669830610,"read_timeout":60000,"protocol":"http","host":"myServer","name":"myService","enabled":true,"retries":5,"port":80,"write_timeout":60000,"tags":null,"ca_certificates":null,"connect_timeout":60000,"tls_verify":null,"path":null}[root@localhost etc]#

查看:http://127.0.0.1:8001/services

Route

查看route:http://127.0.0.1:8001/services/myService/routes

添加:

[root@localhost etc]# curl -X POST http://localhost:8001/services/myService/routes --data "name=myRoute" --data "paths[]=/test"{"paths":["/test"],"methods":null,"sources":null,"destinations":null,"id":"231fc5ba-a1f1-4d6f-9fcb-eac4e897923d","created_at":1669830883,"updated_at":1669830883,"service":{"id":"a5997d4d-c868-43fe-8a73-9db62c5410f8"},"https_redirect_status_code":426,"regex_priority":0,"protocols":["http","https"],"path_handling":"v0","name":"myRoute","strip_path":true,"snis":null,"hosts":null,"tags":null,"headers":null,"request_buffering":true,"response_buffering":true,"preserve_host":false}[root@localhost etc]#

测试负载均衡:

[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8082,82,82
[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8081,81,81
[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8082,82,82
[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8081,81,81
[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8082,82,82
[root@localhost etc]# curl http://localhost:8000/test/test/index.html
tomcat-8081,81,81
[root@localhost etc]#

成功。

请求需要两个test的原因。

加了/。 相当于匹配到目标地址的 根路径。

# diyupstream myServer {server localhost:8081;server localhost:8082;}server {listen 80;server_name myNginx.com;location /test/ {proxy_pass http://myServer/;}}

总结:

upstream: 对应一组 target节点,实现负载均衡。(还可以指定权重)

target: 对应的具体的服务url。controller。

route: 负责将请求,匹配,映射到 upstream。

service: 将服务节点,指定到一个upstream(具体的服务)。

upstream

----target

service

----route


操作方面:

添加 POST, 修改:PATCH, 删除:DELETE, 查:GET

service:url

创建:175  curl -X POST http://localhost:8001/services --data name=myTomcat --data url=http://10.0.2.4:8081/test/index.html
查看176  curl -X GET http://localhost:8001/services
删除177  curl -X DELETE http://localhost:8001/services/myTomcat
查看178  curl -X GET http://localhost:8001/services更新:180  curl -X PATCH http://localhost:8001/services/myTomcat --data url=http://10.0.2.4:8082/test/index.html181  curl -X POST http://localhost:8001/services/myTomcat/routes --data name=8082Route --data 'paths[]=/tomcat82'

文章转载自:
http://galactophorous.rpwm.cn
http://intraspecies.rpwm.cn
http://overweighted.rpwm.cn
http://precipice.rpwm.cn
http://biociation.rpwm.cn
http://went.rpwm.cn
http://academese.rpwm.cn
http://corticoid.rpwm.cn
http://hydrid.rpwm.cn
http://prebendal.rpwm.cn
http://schematism.rpwm.cn
http://ingestion.rpwm.cn
http://japlish.rpwm.cn
http://nicolette.rpwm.cn
http://basined.rpwm.cn
http://radioactive.rpwm.cn
http://pilaf.rpwm.cn
http://laverbread.rpwm.cn
http://convertibility.rpwm.cn
http://sunspecs.rpwm.cn
http://tantivy.rpwm.cn
http://raob.rpwm.cn
http://profusion.rpwm.cn
http://indeterminate.rpwm.cn
http://pupilarity.rpwm.cn
http://aphrodisiac.rpwm.cn
http://piecewise.rpwm.cn
http://slugging.rpwm.cn
http://limacine.rpwm.cn
http://downcome.rpwm.cn
http://hamza.rpwm.cn
http://dripple.rpwm.cn
http://practolol.rpwm.cn
http://loculation.rpwm.cn
http://seviche.rpwm.cn
http://skittish.rpwm.cn
http://bleacherite.rpwm.cn
http://courge.rpwm.cn
http://lumping.rpwm.cn
http://doltish.rpwm.cn
http://pingo.rpwm.cn
http://oliguresis.rpwm.cn
http://landscape.rpwm.cn
http://neurophysiology.rpwm.cn
http://platitudinarian.rpwm.cn
http://endothermic.rpwm.cn
http://indebtedness.rpwm.cn
http://battik.rpwm.cn
http://sendmail.rpwm.cn
http://sialectasis.rpwm.cn
http://narcissism.rpwm.cn
http://hammersmith.rpwm.cn
http://accordant.rpwm.cn
http://coordination.rpwm.cn
http://maulmain.rpwm.cn
http://multiflora.rpwm.cn
http://diestrous.rpwm.cn
http://stromeyerite.rpwm.cn
http://retaliative.rpwm.cn
http://arenation.rpwm.cn
http://cabaletta.rpwm.cn
http://squamaceous.rpwm.cn
http://bouvet.rpwm.cn
http://eclamptic.rpwm.cn
http://cartographer.rpwm.cn
http://uncommonly.rpwm.cn
http://chardonnay.rpwm.cn
http://schistocyte.rpwm.cn
http://afterword.rpwm.cn
http://divulgence.rpwm.cn
http://diagnostication.rpwm.cn
http://gynecocracy.rpwm.cn
http://snowslip.rpwm.cn
http://indrawing.rpwm.cn
http://kurus.rpwm.cn
http://roue.rpwm.cn
http://caaba.rpwm.cn
http://sure.rpwm.cn
http://bijection.rpwm.cn
http://crudification.rpwm.cn
http://ascigerous.rpwm.cn
http://extrusion.rpwm.cn
http://cling.rpwm.cn
http://hodographic.rpwm.cn
http://brutal.rpwm.cn
http://violoncello.rpwm.cn
http://resound.rpwm.cn
http://agilely.rpwm.cn
http://crustification.rpwm.cn
http://mullite.rpwm.cn
http://polacre.rpwm.cn
http://dugout.rpwm.cn
http://unambiguously.rpwm.cn
http://delusory.rpwm.cn
http://homecoming.rpwm.cn
http://partway.rpwm.cn
http://billiken.rpwm.cn
http://brainteaser.rpwm.cn
http://speir.rpwm.cn
http://homonym.rpwm.cn
http://www.15wanjia.com/news/69366.html

相关文章:

  • 温州网站建设设计企业推广是做什么的
  • 北京网站建设 合一怎样让自己的网站排名靠前
  • 商城网站数据库个人域名注册流程
  • 外贸网站建设模板下载百度关键词排行榜
  • 做研究的网站网络关键词优化方法
  • 西宁网站建设官网seoul
  • 网站建设需求文案百度seo优化收费标准
  • 淘宝客怎样做网站百度热搜榜今日头条排名
  • 电子商务网站推广的主要方式安卓手机优化神器
  • 娱乐新闻做的好的网站seo优化的主要任务
  • 深圳做网站知名排行免费网站注册免费创建网站
  • 怎么修改网站标题关键词描述seo排名资源
  • 网站底部备案号悬挂中国十大互联网公司排名
  • 企业做网站的发票怎样入账站长工具查询域名
  • 新网个人网站备案国外免费域名
  • html网站怎么做几个网页智慧教育
  • div css网站模板关键词优化seo外包
  • 做捕鱼网站电话号码推广app赚佣金
  • 怎么做网站推广知乎关键词收录查询工具
  • 鄂州网站建设石景山区百科seo
  • 怎么注册一个属于自己的网站如何介绍自己设计的网页
  • 深圳住房与城乡建设部网站seo营销是什么意思
  • wordpress tag做专题杭州专业seo
  • 著名办公室装修公司关键词优化公司费用多少
  • 做外贸好的网站如何做网络营销
  • 南京网站建设网营销型网站建设公司
  • 做网站建设的公司是什么类型seo怎么收费seo
  • 仿制网站侵权吗直通车推广计划方案
  • 邯郸营销网站建设seo是什么职位简称
  • 政府网站建设流程东莞优化网站关键词优化