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

怎么做网站电话客服十大免费b2b网站

怎么做网站电话客服,十大免费b2b网站,做网站详细步骤,wordpress 热搜词使用场景 1.ths代理tongweb多套后端,假如有其中一套tongweb因为服务器重启或者宕机后没有及时启动,导致ths一直轮询在这个出故障的节点上。 2.即使在tongweb重启了,有的应用启动也需要一定的时间,这个时候只是启动了应用端口&…

使用场景

1.ths代理tongweb多套后端,假如有其中一套tongweb因为服务器重启或者宕机后没有及时启动,导致ths一直轮询在这个出故障的节点上。
2.即使在tongweb重启了,有的应用启动也需要一定的时间,这个时候只是启动了应用端口,ths仍有可能轮询在对应的tongweb上。

说明:
本文仅供参考,里面的参数配置,最终请根据自身业务场景进行调整。

服务器配置

本次示范使用两台服务器(113和114),分别搭建两套ths和两套tongweb做负载均衡和反向代理,浮动ip使用151,tongweb部分配置了测试用的ssl证书(如何配置ssl的可自行百度)。

在这里插入图片描述

在这里插入图片描述

httpserver.conf配置

#user  nobody;
worker_processes auto;
worker_cpu_affinity auto;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
error_log logs/error.log info;
pid logs/httpserver.pid;events {worker_connections 1024;use epoll;
}http {include 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  logs/access.log  main;access_log off;sendfile on;#tcp_nopush     on;#keepalive_timeout  0;keepalive_timeout 60;# 设置5秒的超时时间#proxy_connect_timeout 5s;# 连接超时#proxy_read_timeout 5s;# 读取超时#proxy_send_timeout 5s;# 发送超时# 配置切换到其他后端的条件,包括超时和错误状态码proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504 http_403;#gzip  on;upstream tongweb {#ip_hash;#server后填写对应所有前端机器的ipserver 192.168.10.113:8088 max_fails=3 fail_timeout=2s;server 192.168.10.114:8088 max_fails=3 fail_timeout=2s;#keepalive 200;health_check interval=30000 rise=1 fall=3 type=ssl_hello;#keepalive_requests 10000;}server {server_name localhost_ths_monitor;listen 49151;access_log off;allow 127.0.0.1;deny all;location /thsapi/ {api /status;}}server {listen 8080;server_name localhost;#charset koi8-r;#access_log  logs/host.access.log  main;access_log off;#proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504 http_403;location / {root html;index index.html index.htm;}#error_page  404              /404.html;# redirect server error pages to the static page /50x.htmlerror_page 500 502 503 504 /50x.html;location = /50x.html {root html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {#    proxy_pass   http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {#    root           html;#    fastcgi_pass   127.0.0.1:9000;#    fastcgi_index  index.php;#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;#    include        fastcgi_params;#}# deny access to .htaccess files, if Apache's document root# concurs with httpserver's one##location ~ /\.ht {#    deny  all;#}}server {listen 443 ssl;server_name localhost;# 配置 SSL 证书和密钥ssl_certificate tools/crt_demo/server.crt;ssl_certificate_key tools/crt_demo/server.key;proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504 http_403;location / {proxy_pass https://tongweb;}}# HTTPS server#server {#listen       443 ssl;#server_name  localhost;#ssl_protocols TLSv1.2 TLSv1.3;#GMTLS key#ssl_gmtls on;#ssl_certificate      crts/SS.pem crts/SE.pem;#ssl_certificate_key  crts/SS.key.pem crts/SE.key.pem;#https key#ssl_certificate      crts/common_cert/server.crt;#ssl_certificate_key  crts/common_cert/server.key;#ssl_session_cache    shared:SSL:1m;#ssl_session_timeout  5m;#ssl_ciphers  HIGH:!aNULL:!MD5;#ssl_prefer_server_ciphers  on;#location / {#root   html;#index  index.html index.htm;#}#}
}

其中核心配置部分主要是这两个地方:
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述
在这里插入图片描述

备注:
1.proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504 http_403;作用在http,server和location块,请不要配置在其他地方,一般情况下建议可以配在http块里。

测试

先測試113和114部署的應用是否能正常訪問
在这里插入图片描述

在这里插入图片描述

然後測試用ths的端口訪問是否能正常訪問(包括浮動ip):
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
然後可以自己在命令行頁面kill掉其中一台服务器上的tongweb进程,或者在其中一台tongweb控制台上停止该应用(生产环境不推荐,本文只是做测试才用)。
在这里插入图片描述
再去访问停掉的应用,发现是访问不了的:
在这里插入图片描述
去访问ths和浮动ip,仍然是正常的:
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

http://www.hkea.cn/news/108023/

相关文章:

  • 网站怎么设置支付功能企业网站的主要类型有
  • 成都圣都装饰装修公司北京搜索优化排名公司
  • 境外建设网站贴吧互联网域名注册查询
  • 广州建站工作室淘客推广怎么做
  • 中国最大的网站建设公司百度广告联盟点击一次多少钱
  • wordpress单页主题营销seo手机关键词网址
  • dedecms做电影网站韩国最新新闻
  • 哪个网站做废旧好如何在百度上发布自己的广告
  • 网站表单及商品列表详情模板如何搭建自己的网站
  • 网站域名登记证明百度高级搜索怎么用
  • 国外网站在国内做镜像站点网站搭建费用
  • 网站后台如何添加关键词软件开发公司
  • 手机做网站的网站windows优化大师卸载不了
  • 万网速成网站有哪些 功能自己的网站怎么推广
  • 邯郸哪有做网站的河南百度推广公司
  • 我是做环保类产品注册哪些浏览量大的网站推销自己的产品比较好呢西安网站seo优化公司
  • 网页传奇游戏排行昆明网络推广优化
  • 商城模板网站模板网站软文是什么
  • 校园网站推广方案怎么做网站排名推广工具
  • 深圳罗湖企业网站建设报价网络媒体发稿平台
  • 用别人公司域名做网站线下推广的渠道和方法
  • php mysql的网站开发外贸推广平台
  • 济南网站建设认可搜点网络能百度指数有三个功能模块
  • 网上商城网站建设意义在线代理浏览网页
  • 网站图片切换代码百度下载并安装最新版
  • 微信公众平台号申请注册入口杭州seo公司
  • 本周实时热点新闻事件seo文章代写一篇多少钱
  • 旺店通app手机企业版下载网站seo如何优化
  • 宝山区建设用地事务所网站网络公司有哪些
  • 用sql做简单的博客网站大连谷歌seo