摘要:
基于类的装饰器,思路跟基于函数的装饰器类似,但是需要注意类中的 getattr return 下面看一个示例: def authentication(func): class Auth(object): def __init__(self, *args, **kwargs): print("Pre- 阅读全文
posted @ 2017-02-20 18:03
Vincen_shen
阅读(267)
评论(0)
推荐(0)
摘要:
WEB架构 阐述各服务器用途: 1、haproxy 实现后端Web服务器负载均衡 2、keepalived 实现对haproxy的高可用 3、apache static 实现静态页面的访问 4、aoache dynamic 实现动态页面的访问 What is Keepalived ? Keepali 阅读全文
posted @ 2017-02-20 00:48
Vincen_shen
阅读(437)
评论(0)
推荐(0)

浙公网安备 33010602011771号