字典的操作:

见连接:

http://www.cnblogs.com/alex3714/articles/5717620.html

 

 

 

第二天作业,修改haproxy配置文件。

程序练习  

程序1: 实现简单的shell sed替换功能

程序2:修改haproxy配置文件 

需求:

1、查
    输入:www.oldboy.org
    获取当前backend下的所有记录

2、新建
    输入:
        arg = {
            'bakend': 'www.oldboy.org',
            'record':{
                'server': '100.1.7.9',
                'weight': 20,
                'maxconn': 30
            }
        }

3、删除
    输入:
        arg = {
            'bakend': 'www.oldboy.org',
            'record':{
                'server': '100.1.7.9',
                'weight': 20,
                'maxconn': 30
            }
        }

需求
需求

相关文章:

  • 2022-12-23
  • 2022-02-06
  • 2021-05-20
  • 2021-12-18
  • 2021-09-10
  • 2021-05-19
  • 2022-02-09
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2021-08-09
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案