摘要: 在安装scrapy过程中报错,网上找了资料,记录一下 需要安装的库 pip install lxml pip install wheelpip install pyOpenSSLpip install pywin32 安装Twisted 打开https://www.lfd.uci.edu/~gohl 阅读全文
posted @ 2020-08-01 11:19 宋健安 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 开发过程中遇到这么一个问题: 创建了一个基类控制器,需要验证登录的控制器就继承基类,基类控制器中的initialize方法判断是否登录,虽然未登录,但还是会进入业务控制器 这里使用了header函数和redirect助手函数都不管用 解决方法: 1. header和exit一起使用 2. 基类需要继 阅读全文
posted @ 2020-07-23 10:11 宋健安 阅读(909) 评论(0) 推荐(0) 编辑
摘要: 1. 创建虚拟用户 pure-pw useradd ftp用户名 -u 系统用户名 -d 目录 -u 是将虚拟用户与系统用户关联起来,使用虚拟用户登录后会以系统用户身份读写 -d 是指定家目录,使虚拟用户只能访问指定的目录 2. 创建用户信息数据库(创建完后必须操作) pure-pw mkdb 3. 阅读全文
posted @ 2020-07-15 10:58 宋健安 阅读(2199) 评论(0) 推荐(0) 编辑
摘要: last 停止rewrite,如果没有匹配到,会继续向下匹配,如果匹配到,会重新发起匹配 break 停止rewrite,如果没有匹配到,则不会向下匹配,返回404 root /wwwlocation /break/ { default_type text/html; rewrite ^/break 阅读全文
posted @ 2020-07-15 10:38 宋健安 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 查看MySQL服务器最大连接数 show global variables like 'max_connections'; 查看MySQL服务器最大并发连接数(MySQL服务启动到现在,同一时刻并行连接数的最大值) show global status like 'Max_used_connecti 阅读全文
posted @ 2020-06-23 11:11 宋健安 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 原因是https页面去发送http请求报错(浏览器阻止https发送http请求) 解决方法:页面中的http换成https 阅读全文
posted @ 2020-06-22 16:09 宋健安 阅读(9905) 评论(0) 推荐(0) 编辑
摘要: ##### 国内镜像源 ##### # 清华:https://pypi.tuna.tsinghua.edu.cn/simple/ # 阿里云:http://mirrors.aliyun.com/pypi/simple/ # 中国科技大学 https://pypi.mirrors.ustc.edu.c 阅读全文
posted @ 2020-06-02 16:56 宋健安 阅读(3163) 评论(0) 推荐(1) 编辑
摘要: //当你在iframe页面关闭自身时 var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引 parent.layer.close(index); //再执行关闭 阅读全文
posted @ 2020-06-02 11:59 宋健安 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: 如在弹框中获取父级勾选的id var checkedArr = []; parent.window.$('input.checkboxItem[type="checkbox"]:checked').each(function (index, elem) { checkedArr.push($(ele 阅读全文
posted @ 2020-06-02 11:54 宋健安 阅读(3476) 评论(0) 推荐(0) 编辑
摘要: 原因是在nginx配置文件中加入了http重定向到https导致的,解决方法是在.env中加入 ADMIN_HTTPS=true即可 阅读全文
posted @ 2020-06-02 10:43 宋健安 阅读(1862) 评论(0) 推荐(0) 编辑