环境:Windows 8.1+MySQL 5.6.19首先要说明的是Windows下MySQL的my.ini所在位置为:盘符\ProgramData\MySQL\MySQL Server 5.6下,也就是下图的Data Path下,如果是系统盘,ProgramData的文件夹是隐藏的;非系统盘此文件...
分类:
数据库 时间:
2014-07-22 08:07:37
阅读次数:
233
选 项 说 明-H, --hostname=ADDRESS 主机名或域名-I, --IP-address=ADDRESS server的IP地址,用于在不能DNS的情况下-p, --port=INTEGER 端口号,默认80-u, --url=PATH url,默认是/-w, --warning=D...
分类:
其他好文 时间:
2014-07-22 00:33:37
阅读次数:
354
import osimport sysROOT = 'settings.py所在目录'sys.path.append(ROOT)from django.core.management import setup_environimport settingssetup_environ(settings)...
分类:
编程语言 时间:
2014-07-22 00:31:38
阅读次数:
207
在Linux里设置环境变量的方法(export PATH)一般来说,配置交叉编译工具链的时候需要指定编译工具的路径,此时就需要设置环境变量。例如我的mips-linux-gcc编译器在“/opt/au1200_rm/build_tools/bin”目录下,build_tools就是我的编译工具,则有...
分类:
系统相关 时间:
2014-07-22 00:09:36
阅读次数:
343
#!/usr/bin/python#-*-encoding=utf-8-*-####################################fromSimpleXMLRPCServerimportSimpleXMLRPCServerfromSocketServerimportThreadingMixInimportsubprocess,os.path,os,statimportre,getopt,sysERR_INSECURE=‘[INSECURE_NAME]‘ERR_NO_SCRIPT=‘[NO_S..
分类:
编程语言 时间:
2014-07-21 15:26:17
阅读次数:
300
#!/bin/sh#POST-COMMITHOOK##Thepost-commithookisinvokedafteracommit.Subversionruns#thishookbyinvokingaprogram(script,executable,binary,etc.)#named‘post-commit‘(forwhichthisfileisatemplate)withthe#followingorderedarguments:##[1]REPOS-PATH(thepathtothisreposit..
分类:
其他好文 时间:
2014-07-21 15:25:17
阅读次数:
284
1.首先将settings设置debug=false。2.STATICFILES_DIRS = ( 'static', os.path.join(os.path.dirname(__file__), '..', 'static'), # Put strings here, like "/home/h...
分类:
其他好文 时间:
2014-07-21 14:33:09
阅读次数:
189
最近在学习用Python开发web,使用的是web框架,在win8.1平台下安装SAE和Flask的时候总是在ntpath.py这个UnicodeDecodeError模块报错。84行 result_path = result_path+ p_path 显示的错误就是UnicodeDecode...
分类:
其他好文 时间:
2014-07-21 08:20:06
阅读次数:
212
一直想看tornado源码,今天看了Application类,Application的主要作用是接收来自httpserver的httprequest,然后根据httprequest中的host和path来寻找匹配的RequestHandler。首先Application的构造函数有很多参数handl...
分类:
移动开发 时间:
2014-07-21 00:02:17
阅读次数:
343
1.puppet之主动推送功能使用puppetkick进行推送,但kick功能无法支撑大规模puppetagent同时并发请求,所以当agent规模较大时,请使用MCollective1.1设置puppetagent所有节点的pupet.conf在【agent】增加“listen=true”1.2开启防火墙8139端口1.3在puppetagent的auth.conf的path..
分类:
其他好文 时间:
2014-07-20 23:11:43
阅读次数:
541