上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: #!/bin/sh echo "----------------------------------start install php -----------------------------" yum -y install gcc make gd-devel libjpeg-devel libpng-devel libxml2-devel bzip2-devel libcurl-devel ... 阅读全文
posted @ 2016-08-11 17:19 巫谢 阅读(2397) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh if [ -s /etc/my.cnf ];then rm -rf /etc/my.cnf fi echo "----------------------------------start install mysql -----------------------------" yum install -y ncurses gcc gcc-c++ ncurses ncurs... 阅读全文
posted @ 2016-08-11 17:18 巫谢 阅读(5720) 评论(0) 推荐(0) 编辑
摘要: 最近使用uwsgi+nginx经常程序执行一般就跳转到nginx报错页面,查看停止时程序日志还在写,nginx报错upstream timeout排查怀疑是超时的问题 设置nginx uwsgi_connect timeout 600; uwsgi_ignore_client_abort off; 阅读全文
posted @ 2016-08-06 09:03 巫谢 阅读(1801) 评论(0) 推荐(0) 编辑
摘要: 用途:LINUX命令用法,不挂断地运行命令。 语法:nohup Command [ Arg ... ] [ & ] 描述:nohup 命令运行由 Command 参数和任何相关的 Arg 参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 阅读全文
posted @ 2016-08-03 17:33 巫谢 阅读(746) 评论(0) 推荐(0) 编辑
摘要: from flask import current_app config = current_app.config SITE_DOMAIN = config.get('SITE_DOMAIN') 阅读全文
posted @ 2016-07-27 13:54 巫谢 阅读(1852) 评论(0) 推荐(0) 编辑
摘要: 今天看到Python中的一个修饰符'@',不了解它的使用,查看了下官方文档,有了一点了解。 原文 PEP-318 网址:http://www.python.org/dev/peps/pep-0318/ 不得不佩服老外,治学很严谨,在python网站相关网页上把为什么使用decorator(主要为了简 阅读全文
posted @ 2016-07-27 13:24 巫谢 阅读(27676) 评论(3) 推荐(1) 编辑
摘要: With语句是什么? with如何工作 阅读全文
posted @ 2016-07-27 13:20 巫谢 阅读(341) 评论(0) 推荐(0) 编辑
摘要: for line in file.readlines(): line=line.strip('\n') 阅读全文
posted @ 2016-07-27 11:33 巫谢 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: 编辑 ~/.pip/pip.conf 文件(如果没有则创建之),将 index-url 开头的一行修改为下面一行: 如果运行 pip 时, 提示如下错误 请在 ~/.pip/pip.conf 最上方加上 [global] 这一 section header 阅读全文
posted @ 2016-07-25 15:26 巫谢 阅读(500) 评论(0) 推荐(0) 编辑
摘要: os.path模块主要用于文件的属性获取,在编程中经常用到,以下是该模块的几种常用方法。更多的方法可以去查看官方文档:http://docs.python.org/library/os.path.html 1.os.path.abspath(path) 返回path规范化的绝对路径。 >>> os. 阅读全文
posted @ 2016-06-28 14:54 巫谢 阅读(157832) 评论(3) 推荐(7) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页