摘要: 结果: 阅读全文
posted @ 2018-06-03 17:28 Dylan_Wu 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1.跨域问题: 是因为浏览器的同源策略是对ajax请求进行阻拦了,但是不是所有的请求都给做跨域,像是一般的href属性,a标签什么的都不拦截。 如: 项目一:p1.html p1.py 1 from flask import Flask 2 from flask import render_temp 阅读全文
posted @ 2018-02-27 14:57 Dylan_Wu 阅读(41192) 评论(0) 推荐(0) 编辑
摘要: 下载编译好的二进制包并解压: https://files.cnblogs.com/files/dylan-wu/mail-provider.tar.gz 更改配置文件: 修改alarm配置文件: 启动mail-provider重启alarm: 阅读全文
posted @ 2017-12-21 18:07 Dylan_Wu 阅读(2673) 评论(0) 推荐(0) 编辑
摘要: #coding:utf8 import pymysql import redis import conf '''MYSQL DB Object''' class Mysql(): def __init__(self, dict=""): parmas = { 'host' : conf.MYSQL_HOST, 'por... 阅读全文
posted @ 2017-12-20 10:30 Dylan_Wu 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 本文描述通过被监控endpoint的名称获取该endpoint的eid和监控项,从而获取到该endpoint的监控历史数据,使用python代码的 api操作方法 注:同步open-falcon和agent的时间,不然获取不到数据 http://open-falcon.org/falcon-plus 阅读全文
posted @ 2017-12-18 12:02 Dylan_Wu 阅读(3725) 评论(0) 推荐(0) 编辑
摘要: 运维监控系统之Open-Falcon 一、Open-Falcon介绍 1、监控系统,可以从运营级别(基本配置即可),以及应用级别(二次开发,通过端口进行日志上报),对服务器、操作系统、中间件、应用进行全面的监控,及报警,对我们的系统正常运行的作用非常重要。 2、基础监控 CPU、Load、内存、磁盘 阅读全文
posted @ 2017-12-13 10:47 Dylan_Wu 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 原文地址http://docs.jinkan.org/docs/flask/patterns/fileuploads.html <form> 标签被标记有 enctype=multipart/form-data ,并且在里面包含一个 <input type=file> 标签。 阅读全文
posted @ 2017-11-17 17:10 Dylan_Wu 阅读(3040) 评论(0) 推荐(0) 编辑
摘要: error: Setup script exited with error: command 'gcc' failed with exit status 1 解决方法: 原因是版本不兼容,centos默认装了个2.3的。以下指令好使 yum install openldapyum install o 阅读全文
posted @ 2017-11-02 14:19 Dylan_Wu 阅读(1968) 评论(0) 推荐(0) 编辑
摘要: 过滤器相关: 一、形式:小写{{ name | lower }} 二、串联:先转义文本到HTML,再转换每行到 标签{{ my_text|escape|linebreaks }} 三、过滤器的参数显示前30个字{{ bio | truncatewords:"30" }} 格式化{{ pub_date 阅读全文
posted @ 2017-09-21 21:44 Dylan_Wu 阅读(1591) 评论(0) 推荐(0) 编辑
摘要: HTML:http://www.cnblogs.com/yuanchenqi/articles/6835654.html CSS:http://www.cnblogs.com/yuanchenqi/articles/6856399.html JavaScript:http://www.cnblogs 阅读全文
posted @ 2017-08-01 09:12 Dylan_Wu 阅读(188) 评论(0) 推荐(0) 编辑