上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 修改Nginx核心配置文件nginx.conf 核心参数设置说明:worker_processes指明了nginx要开启的进程数,据官方说法,一般开一个就够了,多开几个,可以减少机器io带来的影响。 一般为当前机器总cpu核心数的1到2倍。如,我的机器为双核,那么开4个足够了。worker_proc 阅读全文
posted @ 2016-04-23 13:03 weiokx 阅读(862) 评论(0) 推荐(0) 编辑
摘要: 一、Mysql 各个版本区别:1、MySQL Community Server 社区版本,开源免费,但不提供官方技术支持。2、MySQL Enterprise Edition 企业版本,需付费,可以试用30天。3、MySQL Cluster 集群版,开源免费。可将几个MySQL Server封装成一 阅读全文
posted @ 2016-04-10 02:53 weiokx 阅读(36224) 评论(1) 推荐(2) 编辑
摘要: 第一步 下载centoshttps://www.centos.org/download/CentOS-7.0-1406-x86_64-DVD.iso:这个镜像(DVD image)包括了那些可以用安装程序(installer)安装的所有安装包,这个为大多数用户使用的推荐镜像 第二步 安装过程中会提示 阅读全文
posted @ 2016-04-09 15:56 weiokx 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 写入excel, 保存的过程中需要注意,保存格式xls后缀,如果用xlsx会报错 读取excel . 阅读全文
posted @ 2016-04-08 19:41 weiokx 阅读(505) 评论(0) 推荐(0) 编辑
摘要: django 1.8 日志配置 以下为setings配置logging代码片段 下面专门讲解一下: 其实这个配置与python 传统的logging 很类似.formatters 用来配置 日志打印的格式handlers ,用来定义具体处理日志的方式,可以定义很多种,"default" 就是默认方式 阅读全文
posted @ 2016-04-07 23:21 weiokx 阅读(437) 评论(0) 推荐(0) 编辑
摘要: uwsgi yourfile.ini # 配置文件 [uwsgi] http = 127.0.0.1:3106 socket = 127.0.0.1:3006 chdir = /www/studentapitest/zhishidian pythonpath = /www/studentapites 阅读全文
posted @ 2016-04-07 19:03 weiokx 阅读(4140) 评论(0) 推荐(0) 编辑
摘要: 安装fabric $ pip install fabric 官网帮助文档:http://docs.fabfile.org/en/1.6/tutorial.html 阅读全文
posted @ 2016-04-07 19:02 weiokx 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 第一步 创建项目启动脚本 第二步 配置uwsgi $ pip install uwsgi # 如未安装则先安装uwsgi 第三步 配置nginx . 阅读全文
posted @ 2016-04-07 16:10 weiokx 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 字符串在Python内部的表示是unicode 编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 decode的作用是将其他编码的字符串转换成unicode编码,如str 阅读全文
posted @ 2016-03-30 02:41 weiokx 阅读(431) 评论(0) 推荐(0) 编辑
摘要: python中对文件、文件夹(文件操作函数)的操作需要涉及到os模块和shutil模块。 得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd() 返回指定目录下的所有文件和目录名:os.listdir(path) 函数用来删除一个文件:os.remove(file) 删除多 阅读全文
posted @ 2016-03-30 00:28 weiokx 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页