#上课的时候咩有听太懂,模糊再学习一边
原文件
global log 127.0.0.1 local2 daemon maxconn 256 log 127.0.0.1 local2 info defaults log global mode http timeout connect 5000ms timeout client 50000ms timeout server 50000ms option dontlognull listen stats :8888 stats enable stats uri /admin stats auth admin:1234 frontend oldboy.org bind 0.0.0.0:80 option httplog option httpclose option forwardfor log global acl www hdr_reg(host) -i www.oldboy.org use_backend www.oldboy.org if www backend www.oldboy1.org server 101.1000.7.9 101.1000.7.9 weight 20 maxconn 30 server 2.2.2.7 2.2.2.7 weight 30 maxconn 4000 server 10.10.10.1 10.10.10.1 weight 22 maxconn 2000 server 2.2.2.5 2.2.2.5 weight 30 maxconn 4000 backend www.oldboy2.org server 3.3.3.3 3.3.3.3 weight 20 maxconn 3000 backend www.oldboy20.org server 10.10.0.10 10.10.0.10 weight 9999 maxconn 33333333333
目的:1.对制定标题进行查询,并且找到标题下的所有内容
2.对制定条目进行修改为特定内容
# [{‘backend‘:‘www.oldboy1.org‘,‘record‘:{‘server‘:‘2.2.2.4‘,‘weight‘:20,‘maxconn‘:3000}}, 修改为 {‘backend‘:‘www.oldboy1.org‘,‘record‘:{‘server‘:‘2.2.2.5‘,‘weight‘:30,‘maxconn‘:4000}}]
-----没头绪ing
2018-06-24-Python全栈开发day21-part1-文件的增删改查
原文:https://www.cnblogs.com/hai125698/p/9222005.html