socat管理haproxy配置
2019-01-04 09:49
1626 查看
haproxy是可以通过socat命令管理haproxy.cfg文件的;
1.安装socat
yum install socat -y
2.配置haproxy.cfg,启动socket
修改:stats socket /var/lib/haproxy/stats 修改为:stats socket /var/lib/haproxy/stats mode 600 level admin
注:level为admin,否则使用socat时会提示权限拒绝
3.soca
5b4
t使用方法
a.获取使用帮助 echo "help" | socat stdio /var/lib/haproxy/stats b.获取常用信息 echo "show info" | socat stdio /var/lib/haproxy/stats c.把某个backend的主机设置为维护 echo "disable server web_port/10.10.5.146" | socat stdio /var/lib/haproxy/stats d.取消维护 echo "enable server web_port/10.10.5.146" | socat stdio /var/lib/haproxy/stats
相关文章推荐
- Saltstack配置管理-业务引用haproxy
- HAProxy 之 页面管理配置
- Saltstack配置管理功能模块-haproxy
- Python-day3作业-haproxy配置文件管理脚本
- SQO2008配置管理工具服务显示远程过程调用失败
- 多重环境下web.config配置管理解决方案
- 利用 ssh 的用户配置文件 config 管理 ssh 会话
- Linux useradd与用户管理相关的配置文件
- RESTEasy通过接口管理配置
- SVN+HOOK -- 配置管理钩子
- haproxy安装及负载均衡配置
- Spring声明式事务配置管理方法
- Windows服务器配置与管理DHCP服务器搭建与管理
- ZooKeeper 统一配置管理
- Skytools安装配置管理(六)
- Ansible@一个高效的配置管理工具--Ansible configure management--翻译(七)
- Domino服务器的安装和配置管理
- Spring 事务配置管理,简单易懂,详细 [声明式]
- Spring, MyBatis 多数据源的配置和管理
- haproxy配置