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