上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页
摘要: 最近自己搭个系统,发现Mezzanine很快,先搞个python 2.7, pip. 然后两个方法: 1. $ pip install mezzanine 2. Git下载,解压 后进入目录,创建项目: 但是,这个url必须在Setting.py里面修改ALLOWED_HOST 然后,再启动一下,就 阅读全文
posted @ 2017-12-05 11:10 JokerJason 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: 报错: 原因:Windows的cmd环境默认为GBK编码,pip默认用UTF-8编码。但是在Linux和Mac中,terminal环境默认的是UTF-8编码,所以不会报错。 解决方案: python目录 Python27\Lib\site-packages 建一个文件sitecustomize.py 阅读全文
posted @ 2017-12-04 10:46 JokerJason 阅读(3316) 评论(0) 推荐(0) 编辑
摘要: 注意:centos6上就不要装mongo3了,容易出错。 1. 下载 curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.3.tgz 2.解压 tar -zxvf mongodb-linux-x86_64-2.6.3 阅读全文
posted @ 2017-11-22 09:39 JokerJason 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: Node.js选择 1.下载 wget https://nodejs.org/dist/v8.4.0/node-v8.4.0-linux-x86.tar.gz 2.解压 tar zxvf node-v8.4.0-linux-x86.tar.gz 3. 移到通用的软件安装目录 /opt/ mv nod 阅读全文
posted @ 2017-11-20 15:54 JokerJason 阅读(4141) 评论(0) 推荐(0) 编辑
摘要: (一)依赖包安装 首先,gcc,pcre,zlib,openssl安装一边(可以用非-devel,但是嫌麻烦....用非-devel的看这个链接) yum -y install gcc (再次执行./configure ./configure: error: the HTTP rewrite mod 阅读全文
posted @ 2017-11-20 13:19 JokerJason 阅读(3822) 评论(0) 推荐(0) 编辑
摘要: 进行静态加载数据到集合的过程中可能会出现。 假设建立一个任务(Job):在MongoDB中进行千条更新操作,开始后迅速终止任务,终止所有更新操作,但依然发现新的更新任务在不断出现,即使任务已经停止。 原因是:如果使用非应答式写入(unacknowledge write)加载数据,应用触发写入操作的速 阅读全文
posted @ 2017-11-16 09:55 JokerJason 阅读(335) 评论(0) 推荐(0) 编辑
摘要: NodeJs中Express框架使用morgan中间件记录日志 Express中的app.js文件已经默认引入了该中间件var logger = require('morgan'); 使用app.use(logger('dev'));可以将请求信息打印在控制台,便于开发调试,但实际生产环境中,需要将 阅读全文
posted @ 2017-11-10 15:47 JokerJason 阅读(13028) 评论(0) 推荐(1) 编辑
摘要: SchemaTypes 数据类型 SchemaTypes handle definition of path defaults, validation, getters, setters, field selection defaults for queries and other general 阅读全文
posted @ 2017-11-08 14:03 JokerJason 阅读(12693) 评论(0) 推荐(2) 编辑
摘要: 今天安装mongoose一直报错,上图 具体的错误记录: 看下面,发现是npm 的 shasum check failed,查资料发现,可能是因为NPM未更换国内淘宝镜像所致....换一下 镜像使用方法(三种办法任意一种都能解决问题,建议使用第三种,将配置写死,下次用的时候配置还在): 1.通过co 阅读全文
posted @ 2017-11-07 15:27 JokerJason 阅读(3231) 评论(0) 推荐(0) 编辑
摘要: MongoDB 支持 Capped Collection,一种固定大小的集合,当集合的大小达到指定大小时,新数据覆盖老数据,MongoDB Replica set 中的 oplog 就是 Capped Collection 类型。 1 查看 oplog 是否是 Capped Collection 备 阅读全文
posted @ 2017-11-03 09:01 JokerJason 阅读(2920) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things