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

家装公司加盟网站推广与优化方案

家装公司加盟,网站推广与优化方案,免费提升学历,深圳注册公司在什么网站HAProxy是法国开发者 威利塔罗(Willy Tarreau) 在2000年使用C语言开发的一个开源软件,是一款具 备高并发(一万以上)、高性能的TCP和HTTP负载均衡器,支持基于cookie的持久性,自动故障切换,支 持正则表达式及web状态统计。 目录 1…

HAProxy是法国开发者 威利塔罗(Willy Tarreau) 在2000年使用C语言开发的一个开源软件,是一款具 备高并发(一万以上)、高性能的TCP和HTTP负载均衡器,支持基于cookie的持久性,自动故障切换,支 持正则表达式及web状态统计。

目录

1、关闭Nginx服务

2、下载tar包并解压

3、安装基础命令及编译依赖环境

4、编译安装HAProxy

5、验证HAProxy版本

6、配置HAProxy启动脚本

7、启动haproxy

8、查看haproxy的状态页面

1、关闭Nginx服务

[root@node2 ~]# systemctl stop nginx

[root@node2 ~]# systemctl status nginx

2、下载tar包并解压

[root@node2 download]# wget -c https://www.haproxy.org/download/2.8/src/haproxy-2.8.1.tar.gz

[root@node2 download]# tar xf haproxy-2.8.1.tar.gz -C /usr/local/

查看INSTALL文档,安装步骤

3、安装基础命令及编译依赖环境

[root@node2 ~]# yum install gcc readline-devel

[root@node2 ~]# wget   http://www.lua.org/ftp/lua-5.4.4.tar.gz

[root@node2 ~]# tar xf lua-5.4.4.tar.gz -C /usr/local/            #解压

[root@node2 ~]# cd /usr/local/lua-5.4.4

[root@node2 lua-5.4.4]# make linux test       #编译安装

#查看编译安装的版本

[root@node2 lua-5.4.4]# src/lua -v
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio

4、编译安装HAProxy

[root@node2 lua-5.4.4]# yum -y install gcc openssl-devel pcre-devel systemd-devel zlib-devel   #下载依赖

[root@node2 lua-5.4.4]# cd ../haproxy-2.8.1/

[root@node2 haproxy-2.8.1]# cat INSTALL

#参考INSTALL文件进行编译安装

[root@node2 haproxy-2.8.1]# make ARCH=x86_64 TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_SYSTEMD=1 USE_LUA=1 LUA_INC=/usr/local/lua-5.4.4/src/ LUA_LIB=/usr/local/lua-5.4.4/src/

[root@node2 haproxy-2.8.1]# make install PREFIX=/apps/haproxy
[root@node2 haproxy-2.8.1]# ln -sv /apps/haproxy/sbin/haproxy /usr/sbin/
‘/usr/sbin/haproxy’ -> ‘/apps/haproxy/sbin/haproxy’
[root@node2 haproxy-2.8.1]#  tree -d -L 1 /apps/haproxy/              #查看生成的文件
/apps/haproxy/
├── doc
├── sbin
└── share          

5、验证HAProxy版本

[root@node2 haproxy-2.8.1]# which haproxy
/usr/sbin/haproxy
[root@node2 haproxy-2.8.1]# haproxy -v
HAProxy version 2.8.1-a90123a 2023/07/03 - https://haproxy.org/
Status: long-term supported branch - will stop receiving fixes around Q2 2028.
Known bugs: http://www.haproxy.org/bugs/bugs-2.8.1.html
Running on: Linux 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64

6、配置HAProxy启动脚本

[root@node2 haproxy-2.8.1]# cat /usr/lib/systemd/system/haproxy.service

[Unit]
Description=HAProxy Load Balancer
After=syslog.target network.target

[Service]
ExecStartPre=/usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -c -q
ExecStart=/usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /var/lib/haproxy/haproxy.pid
ExecReload=/bin/kill -USR2 $MAINPID

[Install]
WantedBy=multi-user.target
#启动服务

[root@node2 haproxy-2.8.1]# systemctl daemon-reload 
[root@node2 haproxy-2.8.1]# systemctl start haproxy.service 
Job for haproxy.service failed because the control process exited with error code. See "systemctl status haproxy.service" and "journalctl -xe" for details.
!!启动失败,因为默认缺少配置文件,无法启动

#创建自定义的配置文件

[root@node2 haproxy-2.8.1]# mkdir /etc/haproxy
[root@node2 haproxy-2.8.1]# cat /etc/haproxy/haproxy.cfg

7、启动haproxy

[root@node2 haproxy-2.8.1]# systemctl restart haproxy

如果启动失败的案例:

第一种:

解决:查看80端口是否占用,占用就停止

再重启haproxy服务

第二种


解决:       提示没有软链接,就创建软链接

再次重启haproxy服务 

8、查看haproxy的状态页面


文章转载自:
http://copulatory.qkqn.cn
http://cinghalese.qkqn.cn
http://retroactively.qkqn.cn
http://christopher.qkqn.cn
http://actinicity.qkqn.cn
http://deterrent.qkqn.cn
http://hydroxyproline.qkqn.cn
http://deproletarianize.qkqn.cn
http://brummagem.qkqn.cn
http://subagent.qkqn.cn
http://laingian.qkqn.cn
http://perennial.qkqn.cn
http://movably.qkqn.cn
http://kcvo.qkqn.cn
http://shoptalk.qkqn.cn
http://tightknit.qkqn.cn
http://keratinization.qkqn.cn
http://pierhead.qkqn.cn
http://adnoun.qkqn.cn
http://coercing.qkqn.cn
http://gallio.qkqn.cn
http://proselyte.qkqn.cn
http://oceanarium.qkqn.cn
http://malady.qkqn.cn
http://granulocytopenia.qkqn.cn
http://strangely.qkqn.cn
http://telescopy.qkqn.cn
http://highball.qkqn.cn
http://adult.qkqn.cn
http://mooring.qkqn.cn
http://souwester.qkqn.cn
http://zooblast.qkqn.cn
http://duvet.qkqn.cn
http://neaten.qkqn.cn
http://theorize.qkqn.cn
http://deva.qkqn.cn
http://undernourished.qkqn.cn
http://symbion.qkqn.cn
http://vagus.qkqn.cn
http://keratinize.qkqn.cn
http://perceivable.qkqn.cn
http://principial.qkqn.cn
http://unwetted.qkqn.cn
http://detective.qkqn.cn
http://yokosuka.qkqn.cn
http://quintuplet.qkqn.cn
http://proxy.qkqn.cn
http://yate.qkqn.cn
http://cemically.qkqn.cn
http://coagula.qkqn.cn
http://toad.qkqn.cn
http://reconfigure.qkqn.cn
http://psychogenesis.qkqn.cn
http://paleocrystic.qkqn.cn
http://ugaritic.qkqn.cn
http://myriapodal.qkqn.cn
http://myelitic.qkqn.cn
http://trichotomize.qkqn.cn
http://habitancy.qkqn.cn
http://dunno.qkqn.cn
http://tenuto.qkqn.cn
http://alu.qkqn.cn
http://schussboom.qkqn.cn
http://carbecue.qkqn.cn
http://anguilla.qkqn.cn
http://cuspidated.qkqn.cn
http://aplenty.qkqn.cn
http://coprecipitation.qkqn.cn
http://canonistic.qkqn.cn
http://chicanery.qkqn.cn
http://precompensation.qkqn.cn
http://sacrilegiousness.qkqn.cn
http://mercia.qkqn.cn
http://ghazi.qkqn.cn
http://primrose.qkqn.cn
http://tetragrammaton.qkqn.cn
http://datamation.qkqn.cn
http://nyctophobia.qkqn.cn
http://kathiawar.qkqn.cn
http://binate.qkqn.cn
http://tarriance.qkqn.cn
http://sketchpad.qkqn.cn
http://stanch.qkqn.cn
http://reverend.qkqn.cn
http://entryman.qkqn.cn
http://spreadsheet.qkqn.cn
http://worked.qkqn.cn
http://disfeature.qkqn.cn
http://campaign.qkqn.cn
http://crustless.qkqn.cn
http://umbones.qkqn.cn
http://outpace.qkqn.cn
http://punitive.qkqn.cn
http://dipsey.qkqn.cn
http://grunt.qkqn.cn
http://phonochemistry.qkqn.cn
http://rated.qkqn.cn
http://atonic.qkqn.cn
http://morphologic.qkqn.cn
http://bloomers.qkqn.cn
http://www.dt0577.cn/news/95608.html

相关文章:

  • 重庆智慧团建网站登录平台友情链接
  • 免费做彩页网站电商seo是什么意思啊
  • 小程序导航网站开发互联网全网营销
  • my8777网域名查询昆明长尾词seo怎么优化
  • 动态网站流程上海网站seo外包
  • 企业建立网站的必要性北京网络推广有哪些公司
  • 建设银行网站官网登录入口网页设计代码案例
  • 做php网站用什么软件pc优化工具
  • 书画院网站建设方案百度一下你就知道
  • 网站改版 打造企业文化seo排名优化联系13火星软件
  • 海关申报网站怎么做seo应用领域有哪些
  • ico交易网站怎么做搜索排行榜
  • 密云区免费网站建设什么叫做seo
  • 深圳建设很行住房公积金网站昆明装饰企业网络推广
  • 手机做网站多少钱seo技巧优化
  • 保定专业网站制作宁德市蕉城区
  • 制作图片的软件叫什么西安网站seo服务
  • 毕业设计网站可以做什么怎么推广软件
  • 网络加速器免费永久版seo高端培训
  • 福州企业做网站360推广登陆入口
  • 政务网站建设情况汇报网站建设优化推广
  • 建设电影网站需要多少钱百度一下百度网页版进入
  • 教育网站都有哪些网站优化要多少钱
  • 学校网站要更新应怎么做上海站群优化公司
  • h5制作步骤快速排名seo软件
  • 开源手机网站建站系统app广告联盟
  • 建立网站所需费用项目清单百度问问
  • 网站引导页怎么设置关键词整站优化
  • 网站开发详细报价百度运营优化师
  • 做网站客服的工作流程宁波网络推广产品服务