2019年7月16日
摘要: import requests requests.get('http://xxx.xxx.xxx.xxx/configfiles/json/yunwei/default/application').json() 1,通过带缓存的Http接口从Apollo读取配置 该接口会从缓存中获取配置,适合频率较 阅读全文
posted @ 2019-07-16 16:04 灼眼者 阅读(3153) 评论(0) 推荐(0) 编辑
  2019年6月23日
摘要: 1,安装pytz和django 2,django-admin startproject szgd django-admin startapp chatlog mkdir template 3,vim szgd/setting.py ..... INSTALLED_APPS = [ 'django.c 阅读全文
posted @ 2019-06-23 23:18 灼眼者 阅读(201) 评论(0) 推荐(0) 编辑
  2019年4月16日
摘要: 报错: [2019-04-16T15:54:07,827][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SystemCallError: Unknown error (SystemCallError) - <ST 阅读全文
posted @ 2019-04-16 16:12 灼眼者 阅读(1061) 评论(0) 推荐(0) 编辑
  2019年4月12日
摘要: 启动失败一 ERROR: [2] bootstrap checks failed [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] [2]: max 阅读全文
posted @ 2019-04-12 20:41 灼眼者 阅读(1147) 评论(0) 推荐(0) 编辑
  2019年4月10日
摘要: 产生原因: 上传文件的大小超出了 Nginx 允许的最大值,默认是1M; 解决方法: 修改Nginx的配置文件(一般是:nginx/nginx.conf),在 http{} 段中增大nginx上传文件大小限制 #根据实际设置上传的内容大小,此处设置为8M client_max_body_size 8 阅读全文
posted @ 2019-04-10 15:21 灼眼者 阅读(241) 评论(0) 推荐(0) 编辑
  2019年4月7日
摘要: 1,nginx限制IP访问,允许IP访问 1.1 模块:nginx_http_access_module 注意:检测顺序是按配置顺序进行的,匹配首条规则将会被使用,所以要注意在配置文件配置的顺序。 a,指令:allow 语法:allow [address|CIDR|all] 默认:none 使用环境 阅读全文
posted @ 2019-04-07 22:34 灼眼者 阅读(478) 评论(0) 推荐(0) 编辑