- 博客(2)
- 资源 (15)
- 收藏
- 关注
原创 Django基于celery的异步任务实现
安装Celery 依赖包: celery 、 django-celery增加celery 配置, 主要是配置好工程的名称在settings.py 中配置celery用到broker,这里用的是redis 在django工程中引入celery,在工程下面的init.py中加入代码from __future__ import absolute_import# This will make
2017-10-27 18:07:00 1072
原创 keepalived + nginx 配置
只说重点VIP是由keepalived的conf 文件中设置的,不需要通过网卡设置。有时候服务器需要绑定到VIP,此时VIP还没有”飘过去”, 可以设置参数 /proc/sys/net/ipv4/ip_nonlocal_bind 为1,绑定VIPkeepalived需要用到脚本检测是否需要切换主备的状态,另外,脚本定时检测,一旦脚本检测到服务起来之后,就可以重新切回到主上。下面是测试的简单配
2017-10-24 15:48:20 561
uthash hash string
2013-09-04
cJSON解析json数据
2013-09-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人